all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roman Decker <roman.decker@gmail.com>
To: 24904@debbugs.gnu.org
Subject: bug#24904: 25.1; whitespace-mode ignores file- and dir-locals
Date: Tue, 08 Nov 2016 18:59:19 +0000	[thread overview]
Message-ID: <CAF1Dr3QmiGJG8OtV0VvZomLPs_rZdNfJQOPzx+daA_zsAqycFQ@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2016-11-08 18:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-08 18:59 Roman Decker [this message]
2020-11-30 11:46 ` bug#24904: 25.1; whitespace-mode ignores file- and dir-locals Lars Ingebrigtsen
2020-11-30 16:01   ` Roman Decker
2020-11-30 16:11     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAF1Dr3QmiGJG8OtV0VvZomLPs_rZdNfJQOPzx+daA_zsAqycFQ@mail.gmail.com \
    --to=roman.decker@gmail.com \
    --cc=24904@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.