emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master bd586121ac: Make the test for existing multisession variables mor


From: Lars Ingebrigtsen
Subject: master bd586121ac: Make the test for existing multisession variables more sensible
Date: Sat, 22 Jan 2022 05:56:51 -0500 (EST)

branch: master
commit bd586121ac21e046f60f75eeb0200866c38d6f9f
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make the test for existing multisession variables more sensible
    
    * lisp/emacs-lisp/multisession.el (multisession-edit-value):
    Unconfuse the code.
---
 lisp/emacs-lisp/multisession.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/multisession.el b/lisp/emacs-lisp/multisession.el
index 4a293796a8..25307594c6 100644
--- a/lisp/emacs-lisp/multisession.el
+++ b/lisp/emacs-lisp/multisession.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]