[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: user has no relief (other than lynx) when text is too wide



In [emacs-w3m : No.11999] jidanni@xxxxxxxxxxx wrote:
> http://kml4earth.appspot.com/kmlBestPractice.html goes off the edge of
> the screen and there is nothing the user can hit to fix it.
> My screen is *only* 123 characters wide.
[...]
> doesn't work either.

Try this

(eval-after-load "w3m-filter"
  '(add-to-list 'w3m-filter-rules '(".*" w3m-filter-no-render-table)))

instead of:

> (eval-after-load "w3m-filter"
>   '(nconc w3m-filter-rules '((".*" w3m-filter-no-render-table))))

Why yours doesn't modify w3m-filter-rules is because the default
value of w3m-filter-rules was made nil[1] in 2012-10-17.  All the
built-in filters are in w3m-filter-configuration now (try performing
`M-x customize-option' for it).

Anyway, I confirmed your `no-table' filter works nicely. :)

[1] To make sure nconc works as expected, do

  (setq VAR (nconc VAR (list VAL)))

rather than

  (nconc VAR (list VAL))

(The side effect of nconc won't occur if VAR is an empty list.)

But to do so for this case is not a good idea, since it adds VAL
to VAR whenever evaluating the form (i.e., loading w3m-filter.elc).
Contrarily add-to-list does not add VAL to VAR if the same VAL
already exists in VAR.