unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Augusto Stoffel <arstoffel@gmail.com>
To: 61601@debbugs.gnu.org
Cc: Juri Linkov <juri@linkov.net>
Subject: bug#61601: [PATCH] * lisp/isearch.el (minibuffer-lazy-highlight-setup): Use cursor-in-echo-area
Date: Sat, 18 Feb 2023 12:30:02 +0100	[thread overview]
Message-ID: <87edqnyzwl.fsf@gmail.com> (raw)

[-- 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


             reply	other threads:[~2023-02-18 11:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-18 11:30 Augusto Stoffel [this message]
2023-02-18 18:44 ` bug#61601: [PATCH] * lisp/isearch.el (minibuffer-lazy-highlight-setup): Use cursor-in-echo-area 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87edqnyzwl.fsf@gmail.com \
    --to=arstoffel@gmail.com \
    --cc=61601@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).