mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-03 10:53:23 +00: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)
|
||||
"an anonymous command"))
|
||||
(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))))
|
||||
(ensure-empty-lines)))))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue