[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Definition reasoning of revert-buffer-function, should it be defvar-
From: |
Andreas Schwab |
Subject: |
Re: Definition reasoning of revert-buffer-function, should it be defvar-local? |
Date: |
Tue, 10 Aug 2021 16:34:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
On Aug 10 2021, Daniel Nagy wrote:
> I want to understand the reasoning behind the definition and the intention of
> the variable `revert-buffer-function`.
>
> In `files.el` I see the following definition:
>
>> (put 'revert-buffer-function 'permanent-local t)
>> (defvar revert-buffer-function #'revert-buffer--default)
>
> The first line suggests to me, that the intention of the variable is that it
> is
> supposed to be buffer-local, but `defvar-local` was not used.
When these lines were written, defvar-local didn't exist.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."