From: Braun Gábor Date: Thu, 14 Nov 2019 05:45:37 +0000 (+0100) Subject: Make clone-buffer not unbind global variable X-Git-Tag: emacs-27.0.90~635 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c9ede465de7e1aaa692f12538adf2e35b9ed2748;p=emacs.git Make clone-buffer not unbind global variable * lisp/simple.el (clone-buffer): Make clone-buffer not globally unset locally void variable (bug#38179). Copyright-paperwork-exempt: yes --- diff --git a/lisp/simple.el b/lisp/simple.el index 872fb13237a..e3ac7094088 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -8658,7 +8658,7 @@ after it has been set up properly in other respects." (mapc (lambda (v) (condition-case () (if (symbolp v) - (makunbound v) + (makunbound (make-local-variable v)) (set (make-local-variable (car v)) (cdr v))) (setting-constant nil))) ;E.g. for enable-multibyte-characters. lvars)