bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#5312: Why is ‘show-trailing-whitespace ’ considered unsafe?


From: Kevin Rodgers
Subject: bug#5312: Why is ‘show-trailing-whitespace ’ considered unsafe?
Date: Thu, 07 Jan 2010 07:17:29 -0700
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

Stefan Monnier wrote:
Stefan> Of course, maybe you can come up with file formats where trailing
Stefan> whitespaces are seriously problematic as well.  I just can't think
Stefan> of any off the top of my head.

One seen recently -- on the groff list, IIRC -- involved continuation
lines.  <\><NL> works, <\><SP><NL> does not.

That also affects C, C++, Elisp, and many other formats.  The fact that we
haven't mentioned them indicates that it's not considered "seriously
problematic" enough.
Actually, font-lock can also be used in those modes to highlight such
suspicious forms: it's more useful than show-trailing-whitespace since
it can more specifically target those trailing whitespaces that are
semantically significant.

Regardless, show-trailing-whitespace is safe.

--
Kevin Rodgers
Denver, Colorado, USA








reply via email to

[Prev in Thread] Current Thread [Next in Thread]