From 4897c98b6c496801aad2477c289a40a300eee27f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 3 Jun 2023 10:20:08 +0300 Subject: [PATCH] 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 . (Bug#63818) --- lisp/progmodes/python.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 974e07c3c6a..fd196df7550 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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)) -- 2.39.2