[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#38179: 26.1; clone-buffer globally unsets locally void variable
From: |
Braun Gábor |
Subject: |
bug#38179: 26.1; clone-buffer globally unsets locally void variable |
Date: |
Wed, 13 Nov 2019 11:17:27 +0100 |
Hi Noam,
> > (with-temp-buffer
> > (makunbound (make-local-variable var))
>
> That will unbind the global value and local values, not just the local
> one.
My Emacs 26.1 does not seem to behave that way.
For example, evaluating the following form returns 2:
(with-temp-buffer
(setq-default test 2)
(makunbound (make-local-variable 'test))
(default-value 'test))
Neither the info documentation nor the docstring of makunbound say how
makunbound behaves for buffer-local variables, so my assumption was that
like other Lisp forms it acts on the buffer-local value of local
variables.
Best wishes,
Gábor