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:
@@ -6094,7 +6094,8 @@ Optional argument REGEXP selects variables to clone and defaults
|
||||
to \"^python-\"."
|
||||
(mapc
|
||||
(lambda (pair)
|
||||
(and (symbolp (car pair))
|
||||
(and (consp pair)
|
||||
(symbolp (car pair))
|
||||
(string-match (or regexp "^python-")
|
||||
(symbol-name (car pair)))
|
||||
(set (make-local-variable (car pair))
|
||||
|
||||
Reference in New Issue
Block a user