]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix error editing multisession variables (bug#59710)
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 2 Dec 2022 13:14:26 +0000 (14:14 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 2 Dec 2022 13:25:35 +0000 (14:25 +0100)
* lisp/emacs-lisp/multisession.el (multisession-edit-value):
Do not use `bound-and-true-p' on a non-symbol.  This reverts
commit bd586121ac21e046f60f75eeb0200866c38d6f9f.

lisp/emacs-lisp/multisession.el

index 9d6e8c0d88d7f83e52ddf2b5d57eb91cd4f8a677..78d4137317d6ece0a800f49fe008058bee6564f9 100644 (file)
@@ -447,8 +447,9 @@ storage method to list."
   (let* ((object (or
                   ;; If the multisession variable already exists, use
                   ;; it (so that we update it).
-                  (and (intern-soft (cdr id))
-                       (bound-and-true-p (intern (cdr id))))
+                  (if-let (sym (intern-soft (cdr id)))
+                      (and (boundp sym) (symbol-value sym))
+                    nil)
                   ;; Create a new object.
                   (make-multisession
                    :package (car id)