GNU bug report logs - #5312
Why is ‘show-trailing-whitespace’ considered unsafe?

Previous Next

Package: emacs;

Reported by: ludo <at> gnu.org (Ludovic Courtès)

Date: Tue, 5 Jan 2010 14:09:07 UTC

Severity: minor

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 5312 <at> debbugs.gnu.org
Subject: bug#5312: Why is ‘show-trailing-whitespace’ considered unsafe?
Date: Wed, 06 Jan 2010 09:24:03 -0500
>>> I find it inconvenient since adding it to a per-file or per-directory
>>> local variable list will (by default) ask users whether they want to
>>> apply the dreaded setting.
>> Arguably this var is more a personal user preference than a property of
>> a file, so maybe the lack of a `safe-local-variable' property is
>> actually a feature ;-0
> Yeah, I see what you mean.  OTOH the same could be said of, say,
> ‘indent-tabs-mode’, which /is/ safe.  I don’t find
> ‘show-trailing-whitespace’ any different.

You might be right.  But I do know of several file formats where TABs
are seriously problematic so you could argue that indent-tabs-mode in
those files is linked to the file's content rather than some mere
user preference.
Of course, maybe you can come up with file formats where trailing
whitespaces are seriously problematic as well.  I just can't think of
any off the top of my head.


        Stefan




This bug report was last modified 15 years and 132 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.