[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: visible-whitespace-mode
From: |
Miles Bader |
Subject: |
Re: visible-whitespace-mode |
Date: |
27 Nov 2001 09:45:29 +0900 |
Richard Stallman <address@hidden> writes:
> There is already a feature show-trailing-whitespace
> which does something similar. I think it is better to extend that
> that to make a completely different feature.
I think from a user's point of view, if they want to make all whitespace
`visible', it doesn't make much sense to tell them "simply set
show-trailing-whitespace to 'all"; the name of the variable
`show-trailing-whitespace' is simply too specific. [and this particular
request is quite common on the emacs support groups]
The next question is, would it make sense to have visible-whitespace-mode
be a wrapper that uses `show-trailing-whitespace' internally to do it's work?
I don't think it does. show-trailing-whitespace is a built-in feature
of the display engine, that changes the _face_ of trailing whitespace.
visible-whitespace-mode, on the other hand changes the display-table to
add a visual-marker to each whitespace character (and this property is
important, because it makes adjacent whitespace characters easily
distinguishable).
>From a quick look at the implementation of show-trailing-whitespace, it
seems as if it would be fairly difficult to extend it to do what
visible-whitespace-mode does, and certainly much harder than simply
using the display-table.
-Miles
--
Quidquid latine dictum sit, altum viditur.
- Re: visible-whitespace-mode, (continued)
- Re: visible-whitespace-mode, Richard Stallman, 2001/11/26
- Re: visible-whitespace-mode,
Miles Bader <=