aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2024-08-14 08:47:40 -0400
committerEli Zaretskii2024-08-17 12:43:33 +0300
commitbfe07eca5981fe80ddc8a54b18dd9340ad5ec2be (patch)
tree92043e2820db9c24765a879625a640624d94d3b6
parent5c1bd991396ff92cf0b81996f63c378c115f5b86 (diff)
downloademacs-bfe07eca5981fe80ddc8a54b18dd9340ad5ec2be.tar.gz
emacs-bfe07eca5981fe80ddc8a54b18dd9340ad5ec2be.zip
Fix 'apropos-library' for 'define-symbol-props'
* lisp/apropos.el (apropos-library): Sanitize data to avoid signaling errors when 'define-symbol-props' is seen. (Bug#72616)
-rw-r--r--lisp/apropos.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 6c6cd0b593d..0655fecd0e8 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -734,7 +734,10 @@ the output includes key-bindings of commands."
734 ;; FIXME: Print information about each individual method: both 734 ;; FIXME: Print information about each individual method: both
735 ;; its docstring and specializers (bug#21422). 735 ;; its docstring and specializers (bug#21422).
736 ('cl-defmethod (push (cadr x) provides)) 736 ('cl-defmethod (push (cadr x) provides))
737 (_ (push (or (cdr-safe x) x) symbols)))) 737 ;; FIXME: Add extension point (bug#72616).
738 (_ (let ((sym (or (cdr-safe x) x)))
739 (and sym (symbolp sym)
740 (push sym symbols))))))
738 (let ((apropos-pattern "") ;Dummy binding for apropos-symbols-internal. 741 (let ((apropos-pattern "") ;Dummy binding for apropos-symbols-internal.
739 (text 742 (text
740 (concat 743 (concat