aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Aranda2025-03-13 15:19:05 -0300
committerMauro Aranda2025-03-13 15:19:05 -0300
commit8298bbada4fdef9415c552e691d2d4791d0e51ca (patch)
tree7ac6ca39b7c169b5fdf49a197bd13e88303083bf
parentf9d805cef3ef9a9818ef09e77c4379d23c2afb55 (diff)
downloademacs-8298bbada4fdef9415c552e691d2d4791d0e51ca.tar.gz
emacs-8298bbada4fdef9415c552e691d2d4791d0e51ca.zip
Fix error when trying to recommend setopt
* lisp/help-fns.el (help--recommend-setopt): Don't assume that variable-documentation stores only strings. (Bug#76994)
-rw-r--r--lisp/help-fns.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 2d0da178a4c..1af37df3792 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -875,7 +875,8 @@ the C sources, too."
875 (when (and (get symbol 'custom-set) 875 (when (and (get symbol 'custom-set)
876 ;; Don't override manually written documentation. 876 ;; Don't override manually written documentation.
877 (not (string-match (rx word-start "setopt" word-end) 877 (not (string-match (rx word-start "setopt" word-end)
878 (get symbol 'variable-documentation)))) 878 (documentation-property
879 symbol 'variable-documentation))))
879 ;; FIXME: `princ` removes text properties added by s-c-k. 880 ;; FIXME: `princ` removes text properties added by s-c-k.
880 (princ (substitute-command-keys "\ 881 (princ (substitute-command-keys "\
881Setting this variable with `setq' has no effect; use either `setopt' 882Setting this variable with `setq' has no effect; use either `setopt'