Subject: Re: bug#39190: 28.0.50; two buffers with same buffer-file-name (diff-syntax-fontify-props)

From: Dmitry Gutov <[email-masked]>
Date: Tue, 28 Jan 2020 17:54:23 +0300

On 28.01.2020 16:58, Stefan Monnier wrote:
> it can cause
> problems because hooks are run during this time (e.g. major mode hooks)
> which may take action under the mistaken assumption that this buffer
> really correspond to the file

I think diff-mode could also use delay-mode-hooks and then run them (or 
not) outside of that let binding.