bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#39190: 28.0.50; two buffers with same buffer-file-name (diff-syntax-


From: Stefan Monnier
Subject: bug#39190: 28.0.50; two buffers with same buffer-file-name (diff-syntax-fontify-props)
Date: Mon, 27 Jan 2020 20:30:31 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> This requires more testing, but at least such patch
> basically would look like this:

This looks pretty good to me.  I wonder what Eli thinks about it.

> +(defvar-local buffer-file-name-for-mode nil)

Clearly we'd need a docstring here.

> +      (if (or buffer-file-name buffer-file-name-for-mode)

And now that I think about it, maybe

    (or buffer-file-name-for-mode buffer-file-name)

would be preferable (in case we want to set the major mode of a file
buffer based o a different file name).


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]