projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24ca490
)
Fix error editing multisession variables (bug#59710)
author
Juanma Barranquero
<lekktu@gmail.com>
Fri, 2 Dec 2022 13:14:26 +0000
(14:14 +0100)
committer
Juanma 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
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/multisession.el
b/lisp/emacs-lisp/multisession.el
index 9d6e8c0d88d7f83e52ddf2b5d57eb91cd4f8a677..78d4137317d6ece0a800f49fe008058bee6564f9 100644
(file)
--- a/
lisp/emacs-lisp/multisession.el
+++ b/
lisp/emacs-lisp/multisession.el
@@
-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)