GNU bug report logs - #39190
28.0.50; two buffers with same buffer-file-name (diff-syntax-fontify-props)

Previous Next

Package: emacs;

Reported by: Felician Nemeth <felician.nemeth <at> gmail.com>

Date: Sun, 19 Jan 2020 11:15:02 UTC

Severity: normal

Found in version 28.0.50

Full log


Message #86 received at 39190 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Juri Linkov <juri <at> linkov.net>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 39190 <at> debbugs.gnu.org, Felician Nemeth <felician.nemeth <at> gmail.com>
Subject: Re: bug#39190: 28.0.50; two buffers with same buffer-file-name
 (diff-syntax-fontify-props)
Date: Fri, 31 Jan 2020 02:31:18 +0300
On 31.01.2020 1:50, Juri Linkov wrote:
> Maybe safer would be to use just (delay-mode-hooks (set-auto-mode))

That would be my choice as well.

BTW, xref--collect-matches uses buffer-file-name in a similar way, 
curious how a problem with Eglot (or etc) never came up.

Also, see the comment there why it couldn't use delay-mode-hooks at the 
time (maybe it can now, if we're okay with entirely unsupporting 
syntax-propertize-via-font-lock).




This bug report was last modified 5 years and 83 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.