[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/isearch-mb c38032c 09/20: Display error messages occurr
From: |
Stefan Monnier |
Subject: |
[elpa] externals/isearch-mb c38032c 09/20: Display error messages occurring at the beginning of search |
Date: |
Sun, 16 May 2021 17:21:13 -0400 (EDT) |
branch: externals/isearch-mb
commit c38032c308b82f203c5034315ac2a0aa4a2367ca
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>
Display error messages occurring at the beginning of search
---
isearch-mb.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/isearch-mb.el b/isearch-mb.el
index bf15b18..8ac3ce8 100644
--- a/isearch-mb.el
+++ b/isearch-mb.el
@@ -124,7 +124,8 @@ Intended as an advice for Isearch commands."
(defun isearch-mb--after-exit (fn &rest args)
"Call FN with ARGS, after quitting Isearch-Mb.
-Intended as an advice for commands that quit Isearch."
+Intended as an advice for commands that quit Isearch and use the
+minibuffer."
(if (and (minibufferp)
(not (eq (current-buffer) isearch--current-buffer)))
(throw 'isearch-mb--after-exit (cons fn args))
@@ -145,10 +146,13 @@ Intended as an advice for commands that quit Isearch."
(add-hook 'post-command-hook 'isearch-mb--post-command-hook
nil 'local)
(setq isearch-mb--prompt-overlay (make-overlay (point-min)
(point-min)
(current-buffer) t t))
- (isearch-mb--prompt))
+ (isearch-mb--prompt)
+ (when isearch-error
+ (message (propertize (concat " [" isearch-error "]")
+ 'face 'minibuffer-prompt))))
(read-from-minibuffer
"I-search: "
- isearch-string
+ nil
isearch-mb-minibuffer-map
nil
(if isearch-regexp 'regexp-search-ring 'search-ring)
- [elpa] externals/isearch-mb dc603a9 03/20: Lazily highlight the whole buffer, to avoid missing overlays, (continued)
- [elpa] externals/isearch-mb dc603a9 03/20: Lazily highlight the whole buffer, to avoid missing overlays, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb 40add97 01/20: Initial commit, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb 8566108 02/20: Many changes, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb 223b1b9 04/20: Introduce a buffer-local minor mode, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb 5805f13 07/20: Add keybinding for newline, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb d075efe 06/20: Rename minor modes, move a test to the timer function, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb 9f11fda 05/20: Several improvements, reorganization, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb a8d2a15 10/20: Provide future history, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb fccf1b7 08/20: Fix post-command hook for the failed search case, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb 01fdc36 19/20: Update Readme, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb c38032c 09/20: Display error messages occurring at the beginning of search,
Stefan Monnier <=
- [elpa] externals/isearch-mb 4aa89c1 13/20: Define only a global minor mode., Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb 0b58b14 14/20: Require cl-lib when compiling, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb c491220 11/20: Use after-change-functions, Stefan Monnier, 2021/05/16
- [elpa] externals/isearch-mb c270809 20/20: Pad lazy count so that it only grows, Stefan Monnier, 2021/05/16