From c9ede465de7e1aaa692f12538adf2e35b9ed2748 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Braun=20G=C3=A1bor?= Date: Thu, 14 Nov 2019 06:45:37 +0100 Subject: [PATCH] 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 --- lisp/simple.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5