[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e068775: [el-search] Enhance docstring of el-search-occur-
From: |
Michael Heerdegen |
Subject: |
[elpa] master e068775: [el-search] Enhance docstring of el-search-occur-mode |
Date: |
Sun, 17 Feb 2019 15:45:05 -0500 (EST) |
branch: master
commit e068775a89885bbbce8bf80043366d61cd758161
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>
[el-search] Enhance docstring of el-search-occur-mode
* packages/el-search/el-search.el (el-search-occur-mode-map-1): New
helper variable holding only the non-inherited bindings.
(el-search-occur-mode-map): Use it.
(el-search-occur-mode): Add docstring. Use
'el-search-occur-mode-map-1' to describe the essential key bindings.
---
packages/el-search/el-search.el | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/packages/el-search/el-search.el b/packages/el-search/el-search.el
index d671e0c..7328ec7 100644
--- a/packages/el-search/el-search.el
+++ b/packages/el-search/el-search.el
@@ -3608,7 +3608,7 @@ Prompt for a new pattern and revert."
#'hs-toggle-hiding
#'outline-toggle-children)))
-(defvar el-search-occur-mode-map
+(defvar el-search-occur-mode-map-1
(let ((map (make-sparse-keymap)))
(define-key map [tab] #'el-search-occur-tab-command)
(define-key map "\t" #'el-search-occur-tab-command)
@@ -3625,10 +3625,23 @@ Prompt for a new pattern and revert."
(define-key map [?c ?d] #'el-search-occur-defun-context)
(define-key map [?c ?a] #'el-search-occur-defun-context)
(define-key map [?c ?s] #'el-search-occur-some-context)
+ map))
+
+(defvar el-search-occur-mode-map
+ (let ((map (copy-keymap el-search-occur-mode-map-1)))
(set-keymap-parent map (make-composed-keymap special-mode-map
emacs-lisp-mode-map))
map))
(define-derived-mode el-search-occur-mode emacs-lisp-mode "El-Occur"
+ "Major mode for El-Occur buffers.
+
+This mode provides the following key bindings:
+
+\\{el-search-occur-mode-map-1}
+The mode's keymap inherits from `emacs-lisp-mode-map' and in
+addition from `special-mode-map':
+
+\\{special-mode-map}"
(setq-local revert-buffer-function #'el-search-occur-revert-function)
(setq buffer-read-only t)
(setq-local hs-hide-comments-when-hiding-all nil)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] master e068775: [el-search] Enhance docstring of el-search-occur-mode,
Michael Heerdegen <=