all messages for Emacs-related lists mirrored at yhetil.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

* bug#24904: 25.1; whitespace-mode ignores file- and dir-locals
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-30 11:46 UTC (permalink / raw)
  To: Roman Decker; +Cc: 24904

Roman Decker <roman.decker@gmail.com> writes:

> whitespace-mode seems to ignore file- and dir-locals when enabled
> via `global-whitespace-mode`.
>
> To reproduce:

[...]

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

(This bug report unfortunately got no response at the time.)

I'm unable to reproduce this in Emacs 26.1 and Emacs 28.  Are you still
seeing this problem in more recent Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#24904: 25.1; whitespace-mode ignores file- and dir-locals
  2020-11-30 11:46 ` Lars Ingebrigtsen
@ 2020-11-30 16:01   ` Roman Decker
  2020-11-30 16:11     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Roman Decker @ 2020-11-30 16:01 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 24904

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

just tested again with my current setup of 26.1 and indeed it seems the
issue is resolved.

Am Mo., 30. Nov. 2020 um 12:46 Uhr schrieb Lars Ingebrigtsen <larsi@gnus.org
>:

> Roman Decker <roman.decker@gmail.com> writes:
>
> > whitespace-mode seems to ignore file- and dir-locals when enabled
> > via `global-whitespace-mode`.
> >
> > To reproduce:
>
> [...]
>
> > 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.
>
> (This bug report unfortunately got no response at the time.)
>
> I'm unable to reproduce this in Emacs 26.1 and Emacs 28.  Are you still
> seeing this problem in more recent Emacs versions?
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no
>

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

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

* bug#24904: 25.1; whitespace-mode ignores file- and dir-locals
  2020-11-30 16:01   ` Roman Decker
@ 2020-11-30 16:11     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-30 16:11 UTC (permalink / raw)
  To: Roman Decker; +Cc: 24904

Roman Decker <roman.decker@gmail.com> writes:

> just tested again with my current setup of 26.1 and indeed it seems
> the issue is resolved.

Thanks for checking; closing the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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