diff --git a/lisp/org.el b/lisp/org.el index 2c491687c..6187e5e07 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9626,7 +9626,7 @@ Optional argument REGEXP selects variables to clone." (`(,name . ,value) ;ignore unbound variables (when (and (not (memq name org-unique-local-variables)) (or (null regexp) (string-match-p regexp (symbol-name name)))) - (set (make-local-variable name) value)))))) + (ignore-errors (set (make-local-variable name) value))))))) ;;;###autoload (defun org-run-like-in-org-mode (cmd)