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:
parent
6b2c8dc905
commit
4897c98b6c
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user