GNU bug report logs - #24904
25.1; whitespace-mode ignores file- and dir-locals

Previous Next

Package: emacs;

Reported by: Roman Decker <roman.decker <at> gmail.com>

Date: Tue, 8 Nov 2016 19:10:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Roman Decker <roman.decker <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; whitespace-mode ignores file- and dir-locals
Date: Tue, 08 Nov 2016 18:59:19 +0000
[Message part 1 (text/plain, inline)]
whitespace-mode seems to ignore file- and dir-locals when enabled
via `global-whitespace-mode`.

To reproduce:

1. Create a file with the following contents (use everything between the
   dashes, the dashes themselves are not part of the file):
-----------------------------test-file.txt--------------------------------------
Only open this file after global-whitespace-mode was enabled.

This is where highlighting of the line should start if everyhing went as
expected: right here  ---->|<----
However, if whitespace-mode incorrectly used the default of 80: right here
---->|<----

;; Local Variables:
;; whitespace-line-column: 100
;; End:
--------------------------------------------------------------------------------

Then:

2. Run `emacs -Q`

3. Execute the following commands from the scratch buffer:

(setq whitespace-style '(face lines-tail))
(global-whitespace-mode)

4. Open the created file using `M-x find-file test-file.txt`

whitespace-mode will highlight long lines starting at 80 characters
instead of 100, which is what the file-local variable says.

If whitespace-mode is enabled locally, after the file-local variables
are set, everything works as expected.

The same issue is explained here:
http://emacs.stackexchange.com/questions/7743/whitespace-mode-ignores-whitespace-line-column

I'm merely referring it to this bugtracker.
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 172 days ago.

Previous Next


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