[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60787: setq-mode-local doesn't work for buffers not visiting files
From: |
Sean Whitton |
Subject: |
bug#60787: setq-mode-local doesn't work for buffers not visiting files |
Date: |
Wed, 18 Jan 2023 15:42:42 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hello,
On Tue 17 Jan 2023 at 09:31AM +02, Juri Linkov wrote:
>> (setq-mode-local diff-mode view-read-only nil)
>>
>> doesn't affect *vc-diff* buffers, but it should, according to the docstring
>> of
>> setq-mode-local.
>
> Is this because of the condition `(buffer-file-name b)`
> in mode-local-map-file-buffers?
Yes, but also how setq-mode-local relies on find-file-hook.
--
Sean Whitton