Hi,
attached is a new version of whitespace-mode.el which additionally contains
an option to highlight only trailing whitespace.
Unlike in gnu emacs I did not find something buildin in xemacs to highlight
trailing whitespace in a buffer. But I found the whitespace-mode and
desided that this mode is the right place to add this functionality
anyway.
See attachement for my patch (actually it's the complete ziped
whitespace-mode.el cause the diff would have been already half in size).
The patch contains:
1) Support to highlight trailing whitespace only. This is done by adding
"trailing" to the variable whitespace-chars and introducing a new regular
expression to look for in variable "whitespace-trailing-search-string".
Most of the hightlight and custom functions needed adjustments as well.
2) Bugfix: The changing of a buffer (inserting whitespace) did not have any
effect in whitespace-incremental-mode. Now it has, see function:
(whitespace-highlight-buffer)
3) I changed the use of "make-local-variable" into "make-local-hook"
according to the documentation. (But I'm not sure about this one)
4) I changed the parent menu for whitespace settings from "Apps" to
"Options". (But I'm not sure about this one eather. There might be
conventions I'm not aware of ).
I hope you agree with this suggestion. Could someone review this patch? Any
comments are wellcome. (I'm not subscribed to xemacs-beta)
Greetings
Heiko
Show replies by date