From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: isearch highlighting with zero-length match
Date: Sat, 04 Sep 2004 00:53:28 +0300 [thread overview]
Message-ID: <87oekndnon.fsf@mail.jurta.org> (raw)
In-Reply-To: <wlllftf3k4.wl@church.math.s.chiba-u.ac.jp> (YAMAMOTO Mitsuharu's message of "Thu, 02 Sep 2004 18:00:43 +0900")
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> writes:
> Could someone please take care of the following issue that I posted to
> emacs-pretest-bug in January? Carbon Emacs no longer hangs with this,
> but waste of CPU time would occur in any platform.
I looked at this patch. It really fixes all mentioned problems and I think
it should be installed.
I was surprised that `isearch-lazy-highlight-update' is called even
for empty search strings. This means that every time users type C-s
it iterates over all characters in the window. This may be not noticeable
on fast machines, but still is useless. If the search string is "",
it is guaranteed that nothing is going to be highlighted. I think
`isearch-lazy-highlight-new-loop' should prevent lazy highlighting for
empty search strings (I mean if isearch-string is "", not other cases
with zero-length matches where there is no such guarantee).
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2004-09-03 21:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-02 9:00 isearch highlighting with zero-length match YAMAMOTO Mitsuharu
2004-09-03 21:53 ` Juri Linkov [this message]
2004-09-04 22:12 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oekndnon.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.