Fix error editing multisession variables (bug#59710)

* lisp/emacs-lisp/multisession.el (multisession-edit-value):
Do not use `bound-and-true-p' on a non-symbol.  This reverts
commit bd586121ac.
This commit is contained in:
Juanma Barranquero 2022-12-02 14:14:26 +01:00
parent 24ca490d7d
commit e5b0141b0d

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