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


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juri Linkov <juri <at> linkov.net>
Cc: 39190 <at> debbugs.gnu.org, Felician Nemeth <felician.nemeth <at> gmail.com>
Subject: bug#39190: 28.0.50; two buffers with same buffer-file-name (diff-syntax-fontify-props)
Date: Tue, 18 Feb 2020 08:33:48 -0500
> (defun conf-mode ()
>   ...
>   ;; `conf-mode' plays two roles: it's the parent of several sub-modes
>   ;; but it's also the function that chooses between those submodes.
>   ;; To tell the difference between those two cases where the function
>   ;; might be called, we check `delay-mode-hooks'.
>   ;; (adopted from tex-mode.el)
>   (if (not delay-mode-hooks)
>       ;; try to guess sub-mode of conf-mode based on buffer content

The Right Thing™ to do is of course to split `conf-mode` into two
functions, one for the generic entry point and the other for the shared
parent mode.

How easy/realistic this is, I don't know.


        Stefan





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.