mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Fix *Help* text when a command is bound to a single key
* lisp/help-fns.el (help-fns--key-bindings): Don't insert redundant period. (Bug#78905)
This commit is contained in:
parent
2bdcf0250a
commit
80cb688b04
1 changed files with 5 additions and 1 deletions
|
|
@ -632,7 +632,11 @@ the C sources, too."
|
||||||
(format-message "`%s'" remapped)
|
(format-message "`%s'" remapped)
|
||||||
"an anonymous command"))
|
"an anonymous command"))
|
||||||
(princ "as well.\n"))
|
(princ "as well.\n"))
|
||||||
(or remapped (princ "."))
|
;; The (= (point) start) condition tests whether
|
||||||
|
;; 'help-fns--insert-menu-bindings' inserted anything;
|
||||||
|
;; if it didn't, we already have a period from the
|
||||||
|
;; previous 'princ' call.
|
||||||
|
(or remapped (= (point) start) (princ "."))
|
||||||
(fill-region-as-paragraph start (point))))
|
(fill-region-as-paragraph start (point))))
|
||||||
(ensure-empty-lines)))))))
|
(ensure-empty-lines)))))))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue