unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61601: [PATCH] * lisp/isearch.el (minibuffer-lazy-highlight-setup): Use cursor-in-echo-area
@ 2023-02-18 11:30 Augusto Stoffel
  2023-02-18 18:44 ` Juri Linkov
  0 siblings, 1 reply; 9+ messages in thread
From: Augusto Stoffel @ 2023-02-18 11:30 UTC (permalink / raw)
  To: 61601; +Cc: Juri Linkov

[-- Attachment #1: Type: text/plain, Size: 173 bytes --]

Tags: patch

I wasn't aware of the variable cursor-in-echo-area when I originally
wrote this function, but it's a much less drastic measure than setting
inhibit-redisplay.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-isearch.el-minibuffer-lazy-highlight-setup-Use-.patch --]
[-- Type: text/patch, Size: 920 bytes --]

From 68fd9e85dc56ada87dea647d6b71dbf9ecde7391 Mon Sep 17 00:00:00 2001
From: Augusto Stoffel <arstoffel@gmail.com>
Date: Sat, 18 Feb 2023 12:26:54 +0100
Subject: [PATCH] * lisp/isearch.el (minibuffer-lazy-highlight-setup): Use
 cursor-in-echo-area

---
 lisp/isearch.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/isearch.el b/lisp/isearch.el
index bb46c89ae20..14b8a259ea4 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -4466,7 +4466,7 @@ minibuffer-lazy-highlight-setup
                 (lazy-highlight-cleanup))))
       (fset after-change
             (lambda (_beg _end _len)
-              (let ((inhibit-redisplay t) ;; Avoid cursor flickering
+              (let ((cursor-in-echo-area t) ;; Avoid cursor flickering
                     (string (minibuffer-contents)))
                 (with-minibuffer-selected-window
                   (let* ((isearch-forward t)
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-02-19 15:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-18 11:30 bug#61601: [PATCH] * lisp/isearch.el (minibuffer-lazy-highlight-setup): Use cursor-in-echo-area Augusto Stoffel
2023-02-18 18:44 ` Juri Linkov
2023-02-18 19:05   ` Augusto Stoffel
2023-02-18 19:18   ` Eli Zaretskii
2023-02-18 21:40     ` Augusto Stoffel
2023-02-18 22:43       ` Drew Adams
2023-02-19 12:16         ` Augusto Stoffel
2023-02-19 15:53           ` Drew Adams
2023-02-19  6:16       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).