Subject: bug#36837: 26.2; whitespace-mode: whitespace-line-column is not set to local fill-column

From: Andreas Schwab <[email-masked]>
Date: Fri, 02 Aug 2019 23:54:21 +0200

On Aug 02 2019, Štěpán Němec <[email-masked]> wrote:

> Yes, but OP's case is a bit more subtle, as I described in my very
> first e-mail. Maybe a more visual representation will help. Here's
> what happens (simplified) when visiting test.cfg during OP's recipe:
>
> 1. fill-column is at default value
> 2. `run-mode-hooks' is called
> 3. `conf-mode-hook' is run
> 4. `whitespace-mode' is called
> 5. `whitespace-color-on' is called, which sets up whitespace-font-lock-keywords,
>     still with the default value of fill-column
> 6. `hack-local-variables' is called to parse and apply file-local settings
> 7. fill-column is set to 200
>
> If what's really intended is that file-local settings prevail as much
> as possible, this is a failure.

It's a failure in whitespace-mode, not in hack-local-variables.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."