From: tastytea <tastytea@tastytea.de>
To: "Štěpán Němec" <stepnem@gmail.com>
Cc: 36837@debbugs.gnu.org
Subject: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column
Date: Sat, 3 Aug 2019 09:50:56 +0200 [thread overview]
Message-ID: <20190803095056.75166d14@ventiloplattform.tastytea.de> (raw)
In-Reply-To: <87k1bvfwda.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1183 bytes --]
On Fri, 02 Aug 2019 16:57:37 +0200
Štěpán Němec <stepnem@gmail.com> wrote:
> On Mon, 29 Jul 2019 11:17:56 +0200
> tastytea@tastytea.de wrote:
>
> > whitespace-mode will highlight long lines starting at 70 characters
> > instead of what fill-column is set to, if whitespace-line-column is
> > set to nil.
> > […]
>
> Yes, unfortunately, file-local variables are only setup (via
> `hack-local-variables') _after_ the mode hooks are run (cf.
> `run-mode-hooks'), so `whitespace-color-on' still sees the original
> `fill-column' the first time.
Maybe whitespace-mode could watch fill-column for changes, at least
until the file-local variables are loaded?
There is also the possibility that fill-column is changed afterwards by
the user, but I guess that's not too common…
> You can work around this by hacking^W having `hack-local-variables'
> also run in your hook function:
>
> (add-hook 'conf-mode-hook
> (lambda () (hack-local-variables) (whitespace-mode))
Thanks, that's a better workaround than my solution of setting
whitespace-line-column and restarting whitespace-mode in
find-file-hook. :-)
Kind regards, tastytea
[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2019-08-03 7:50 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-29 9:17 bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column tastytea
2019-08-02 14:57 ` Štěpán Němec
2019-08-02 15:04 ` Andreas Schwab
2019-08-02 15:11 ` Štěpán Němec
2019-08-02 15:15 ` Andreas Schwab
2019-08-02 15:22 ` Štěpán Němec
2019-08-02 15:33 ` Andreas Schwab
2019-08-02 15:20 ` Eli Zaretskii
2019-08-02 15:30 ` Štěpán Němec
2019-08-02 18:51 ` Eli Zaretskii
2019-08-02 19:10 ` Štěpán Němec
2019-08-02 19:39 ` Eli Zaretskii
2019-08-02 19:28 ` Noam Postavsky
2019-08-02 19:45 ` Štěpán Němec
2019-08-02 21:14 ` Noam Postavsky
2019-08-02 21:50 ` Štěpán Němec
2019-08-02 21:54 ` Andreas Schwab
2019-08-03 7:50 ` tastytea [this message]
2019-08-03 9:23 ` Štěpán Němec
2020-02-24 19:56 ` Noam Postavsky
2020-02-24 20:12 ` Štěpán Němec
2020-02-26 0:38 ` Noam Postavsky
2020-02-28 5:01 ` Eli Zaretskii
2020-02-28 8:14 ` Štěpán Němec
2020-03-02 3:58 ` Noam Postavsky
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=20190803095056.75166d14@ventiloplattform.tastytea.de \
--to=tastytea@tastytea.de \
--cc=36837@debbugs.gnu.org \
--cc=stepnem@gmail.com \
/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.