mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
* lisp/help.el (describe-bindings): Use the outline-default-rules feature.
Set buffer-local outline-default-state to 1, and outline-default-rules to match "Key translations", instead of searching and hiding this section explicitly.
This commit is contained in:
parent
5f9b587e80
commit
7a4f524314
1 changed files with 5 additions and 4 deletions
|
|
@ -747,14 +747,15 @@ or a buffer name."
|
|||
(setq-local outline-level (lambda () 1))
|
||||
(setq-local outline-minor-mode-cycle t
|
||||
outline-minor-mode-highlight t
|
||||
outline-minor-mode-use-buttons 'insert)
|
||||
outline-minor-mode-use-buttons 'insert
|
||||
;; Hide the longest body.
|
||||
outline-default-state 1
|
||||
outline-default-rules
|
||||
'((match-regexp . "Key translations")))
|
||||
(outline-minor-mode 1)
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
(let ((inhibit-read-only t))
|
||||
;; Hide the longest body.
|
||||
(when (re-search-forward "Key translations" nil t)
|
||||
(outline-hide-subtree))
|
||||
;; Hide ^Ls.
|
||||
(while (search-forward "\n\f\n" nil t)
|
||||
(put-text-property (1+ (match-beginning 0)) (1- (match-end 0))
|
||||
|
|
|
|||
Loading…
Reference in a new issue