[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: global-whitespace-mode should show whitespace when switching to new
From: |
Stefan Monnier |
Subject: |
Re: global-whitespace-mode should show whitespace when switching to new buffer |
Date: |
Sat, 31 Mar 2018 00:06:11 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Problem was, with global-whitespace-mode enabled, when I switched to a new
> buffer (say C-x b asdf <RET>), whitespace was not visible.
> The `whitespacesturn-on-if-enabled' function is already added to
> after-change-major-mode-hook, but apparently that isn't triggered when a new
> buffer is created in fundamental-mode. If I turn global-whitespace-mode off
> and back on again, or if I type "M-x
> fundamental-mode", then whitespace is visible.
Looks like a bug. When C-x b switches to a new buffer, it should run
the major mode function of the default major mode (typically
fundamental-mode).
Stefan