]> git.eshelyaron.com Git - emacs.git/commitdiff
Make the test for existing multisession variables more sensible
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 22 Jan 2022 10:56:13 +0000 (11:56 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 22 Jan 2022 10:56:36 +0000 (11:56 +0100)
* lisp/emacs-lisp/multisession.el (multisession-edit-value):
Unconfuse the code.

lisp/emacs-lisp/multisession.el

index 4a293796a8309d7c7760dacf5e19f73d1e79d9ef..25307594c6ddf58963c4352e0be4944deab8779c 100644 (file)
@@ -437,8 +437,8 @@ storage method to list."
   (let* ((object (or
                   ;; If the multisession variable already exists, use
                   ;; it (so that we update it).
-                  (and (boundp (intern-soft (cdr id)))
-                       (symbol-value (intern (cdr id))))
+                  (and (intern-soft (cdr id))
+                       (bound-and-true-p (intern (cdr id))))
                   ;; Create a new object.
                   (make-multisession
                    :package (car id)