Make the test for existing multisession variables more sensible

* lisp/emacs-lisp/multisession.el (multisession-edit-value):
Unconfuse the code.
This commit is contained in:
Lars Ingebrigtsen 2022-01-22 11:56:13 +01:00
parent a604e877cd
commit bd586121ac

View 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)