[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 01e5bcd 22/24: Clean up el-search-read-expression-map; ad

From: Michael Heerdegen
Subject: [elpa] master 01e5bcd 22/24: Clean up el-search-read-expression-map; add some doc
Date: Thu, 19 May 2016 20:46:38 +0000 (UTC)

branch: master
commit 01e5bcdc4998f64f2feeed1a8bd938280b2d6c4a
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>

    Clean up el-search-read-expression-map; add some doc
 packages/el-search/el-search.el |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/packages/el-search/el-search.el b/packages/el-search/el-search.el
index 2d032e6..77faf7b 100644
--- a/packages/el-search/el-search.el
+++ b/packages/el-search/el-search.el
@@ -162,8 +162,12 @@
 ;;    (define-key isearch-mode-map [(control ?S)] 
 ;;    (define-key isearch-mode-map [(control ?%)] 
+;;    (define-key el-search-read-expression-map [(control ?S)] 
 ;; The bindings in `isearch-mode-map' let you conveniently switch to
-;; "el-search" searching from isearch.
+;; "el-search" searching from isearch.  The binding in
+;; `el-search-read-expression-map' allows you to hit C-S twice to
+;; start a search for the last search pattern.
 ;; Bugs, Known Limitations
@@ -303,8 +307,7 @@ error."
     (define-key map [(control ?g)] #'abort-recursive-edit)
     (define-key map [up]   nil)
     (define-key map [down] nil)
-    (define-key map [(control meta backspace)] #'backward-kill-sexp)
-    (define-key map [(control ?S)] #'exit-minibuffer)
+    (define-key map [(control ?j)] #'newline)
   "Map for reading input with `el-search-read-expression'.")
@@ -950,6 +953,12 @@ Search current buffer for expressions that are matched by 
 PATTERN.  Use `read' to transform buffer contents into
+Use `emacs-lisp-mode' for reading input.  Some keys in the
+minibuffer have a special binding: to make it possible to edit
+multi line input, C-j inserts a newline, and up and down move the
+cursor vertically - see `el-search-read-expression-map' for more
 Additional `pcase' pattern types to be used with this command can
 be defined with `el-search-defpattern'.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]