1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

Fix 'python-util-clone-local-variables'

* lisp/progmodes/python.el (python-util-clone-local-variables):
Avoid signaling an error when a local variable is unbound.
Patch by Ernesto Alfonso <erjoalgo@gmail.com>.  (Bug#63818)
This commit is contained in:
Eli Zaretskii 2023-06-03 10:20:08 +03:00
parent 6b2c8dc905
commit 4897c98b6c

View File

@ -6094,7 +6094,8 @@ Optional argument REGEXP selects variables to clone and defaults
to \"^python-\"." to \"^python-\"."
(mapc (mapc
(lambda (pair) (lambda (pair)
(and (symbolp (car pair)) (and (consp pair)
(symbolp (car pair))
(string-match (or regexp "^python-") (string-match (or regexp "^python-")
(symbol-name (car pair))) (symbol-name (car pair)))
(set (make-local-variable (car pair)) (set (make-local-variable (car pair))