unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Highlighting whitespace at EOL.
@ 2002-04-02 17:07 Murray Stokely
  2002-04-03 18:40 ` Chuck Siska
  2002-04-03 19:07 ` Greg Hill
  0 siblings, 2 replies; 4+ messages in thread
From: Murray Stokely @ 2002-04-02 17:07 UTC (permalink / raw)


  I'm interested in writing a minor mode for marking up man pages with
the mdoc macros.  One of the things I would like to do is have
whitespace characters at the end of a nonblank line show up in a
different color, so I can easily notice (and remove) these stray marks
(which can easily be done with a macro, but thats not the point).

  I don't need to setup a syntax table for something so trivial, do I?
Is there a good example minor mode to help learn some of this stuff?

   - Murray

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Highlighting whitespace at EOL.
  2002-04-02 17:07 Highlighting whitespace at EOL Murray Stokely
@ 2002-04-03 18:40 ` Chuck Siska
  2002-04-03 19:07 ` Greg Hill
  1 sibling, 0 replies; 4+ messages in thread
From: Chuck Siska @ 2002-04-03 18:40 UTC (permalink / raw)


murray --

if all you want to do is remove them, there is a simple "command"
to do this:  C-c i C-c C-c.  i use this extensively working with 
funnelweb source code, which doesn't like trailing whitespace.
this is actually two separate commands.  the first, C-c i, enters
picture-mode and the second, C-c C-c, exits it.  it is exiting
picture-mode which does the trailing whitespace removal.
good luck.

-- chuck

Murray Stokely wrote:
> 
>   I'm interested in writing a minor mode for marking up man pages with
> the mdoc macros.  One of the things I would like to do is have
> whitespace characters at the end of a nonblank line show up in a
> different color, so I can easily notice (and remove) these stray marks
> (which can easily be done with a macro, but thats not the point).
> 
>   I don't need to setup a syntax table for something so trivial, do I?
> Is there a good example minor mode to help learn some of this stuff?
> 
>    - Murray

-- 
                                           |\_/\_.-'""``:-._       
What is life without looking for           . . `; -._      )-;-,_`)
the next cute little bug to play with?     v_,-    _  ),(,.\  ``-' 
                                          _.- _.,-_/ /  ((.'       
-- chuck.siska@conexant.com  `<}:..     ((,.-'   ((,/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Highlighting whitespace at EOL.
  2002-04-02 17:07 Highlighting whitespace at EOL Murray Stokely
  2002-04-03 18:40 ` Chuck Siska
@ 2002-04-03 19:07 ` Greg Hill
  2002-04-04 22:42   ` Murray Stokely
  1 sibling, 1 reply; 4+ messages in thread
From: Greg Hill @ 2002-04-03 19:07 UTC (permalink / raw)


Murray,

Just last night I ran across a customization variable named 
"show-trailing-whitespace" in chapter 38 of the GNU Emacs Lisp 
Reference Manual.
It seems to be new with Emacs-21.

At 9:07 AM -0800 4/2/02, Murray Stokely wrote:
>   I'm interested in writing a minor mode for marking up man pages with
>the mdoc macros.  One of the things I would like to do is have
>whitespace characters at the end of a nonblank line show up in a
>different color, so I can easily notice (and remove) these stray marks
>(which can easily be done with a macro, but thats not the point).
>
>   I don't need to setup a syntax table for something so trivial, do I?
>Is there a good example minor mode to help learn some of this stuff?
>
>    - Murray
>
>_______________________________________________
>Help-gnu-emacs mailing list
>Help-gnu-emacs@gnu.org
>http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Highlighting whitespace at EOL.
  2002-04-03 19:07 ` Greg Hill
@ 2002-04-04 22:42   ` Murray Stokely
  0 siblings, 0 replies; 4+ messages in thread
From: Murray Stokely @ 2002-04-04 22:42 UTC (permalink / raw)
  Cc: Murray Stokely, help-gnu-emacs

On Wed, Apr 03, 2002 at 11:07:03AM -0800, Greg Hill wrote:
> Just last night I ran across a customization variable named 
> "show-trailing-whitespace" in chapter 38 of the GNU Emacs Lisp 
> Reference Manual.
> It seems to be new with Emacs-21.

  That's exactly what I was looking for, thanks!  I also found a great
.emacs posted online that does some cool stuff with this variable :

  http://www-xray.ast.cam.ac.uk/~gmorris/dotemacs.html

  - Murray

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-04 22:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-02 17:07 Highlighting whitespace at EOL Murray Stokely
2002-04-03 18:40 ` Chuck Siska
2002-04-03 19:07 ` Greg Hill
2002-04-04 22:42   ` Murray Stokely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).