mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 01:34:21 +00:00
Make apropos-print-doc more resilient
* lisp/apropos.el (apropos-print-doc): Don't bug out on doc strings that have invalid command key syntaxes.
This commit is contained in:
parent
3b0d848b54
commit
a37da91a09
1 changed files with 3 additions and 1 deletions
|
|
@ -1276,7 +1276,9 @@ as a heading."
|
|||
(cond ((equal doc "")
|
||||
(setq doc "(not documented)"))
|
||||
(do-keys
|
||||
(setq doc (substitute-command-keys doc))))
|
||||
(setq doc (or (ignore-errors
|
||||
(substitute-command-keys doc))
|
||||
doc))))
|
||||
(insert doc)
|
||||
(if (equal doc "(not documented)")
|
||||
(put-text-property opoint (point) 'font-lock-face 'shadow))
|
||||
|
|
|
|||
Loading…
Reference in a new issue