unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24904: 25.1; whitespace-mode ignores file- and dir-locals
@ 2016-11-08 18:59 Roman Decker
  2020-11-30 11:46 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Roman Decker @ 2016-11-08 18:59 UTC (permalink / raw)
  To: 24904

[-- Attachment #1: Type: text/plain, Size: 1353 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 2930 bytes --]

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

end of thread, other threads:[~2020-11-30 16:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08 18:59 bug#24904: 25.1; whitespace-mode ignores file- and dir-locals Roman Decker
2020-11-30 11:46 ` Lars Ingebrigtsen
2020-11-30 16:01   ` Roman Decker
2020-11-30 16:11     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).