]> git.eshelyaron.com Git - emacs.git/commitdiff
Make clone-buffer not unbind global variable
authorBraun Gábor <braungb88@gmail.com>
Thu, 14 Nov 2019 05:45:37 +0000 (06:45 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Nov 2019 05:45:37 +0000 (06:45 +0100)
* lisp/simple.el (clone-buffer): Make clone-buffer not globally
unset locally void variable (bug#38179).

Copyright-paperwork-exempt: yes

lisp/simple.el

index 872fb13237a3e6fd22c53c43b2ca3265f673c811..e3ac7094088dc2e61ac78af09ddfeae95f5f10d8 100644 (file)
@@ -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)