unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: isearch highlighting
Date: Tue, 14 Dec 2004 12:27:05 +0200	[thread overview]
Message-ID: <87pt1ddvk6.fsf@jurta.org> (raw)
In-Reply-To: <E1CdwEC-0005Rk-MR@fencepost.gnu.org> (Richard Stallman's message of "Mon, 13 Dec 2004 14:51:28 -0500")

Richard Stallman <rms@gnu.org> writes:
> I just installed the code for while-no-input.  I think you should
> use that.

I will see how well it works with isearch lazy highlighting timer.

>     This could be fixed in `isearch-lazy-highlight-update' by selecting
>     the window where isearch was activated.
>
> That seems reasonable, but if the idea is to call the
> isearch-lazy-highlight code from query-replace as well, please verify
> that this fix is correct for that case too.  I have no specific reason
> to think it is wrong, I'm just asking you to double-check.

When I proposed this fix, one of the reasons was to make it work
with query-replace too, where the minibuffer is often activated.
So yes, it works with query-replace.

>     3. While typing a sequence of a multi-character input method in the
>     isearch minibuffer, the first part of the isearch string is
>     highlighted in `minibuffer-prompt' face, because it is used as the
>     part of the prompt.  Instead, it could be inserted into the minibuffer
>     as initial-contents.
>
> I suppose you've tested that patch; but I wonder, does this lead
> to a danger of being able to edit that initial contents?

No danger because input method functions don't allow to delete
more previous characters than typed after invocation of the
current input method.

There is also another `read-string' in `isearch-process-search-multibyte-characters'.
but I haven't added `isearch-message' as an initial contents for it,
because I think that no more than one character can be entered
with keyboard-coding-system, and this one character is pushed to
unread-command-events, so `read-string' exits immediately after
starting, and users will not see an incomplete search string
in the minibuffer.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2004-12-14 10:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-10  2:06 isearch highlighting Juri Linkov
2004-12-10  3:21 ` Stefan Monnier
2004-12-10  5:22   ` Juri Linkov
2004-12-13 19:51 ` Richard Stallman
2004-12-14 10:27   ` Juri Linkov [this message]
2004-12-15 14:58     ` Richard Stallman
2004-12-17 15:29   ` Juri Linkov
2004-12-20 10:56     ` Richard Stallman
2004-12-20 20:57       ` Juri Linkov
2005-01-06  7:54         ` Juri Linkov
2005-01-09  3:23           ` Richard Stallman
2005-01-09 21:40           ` Stefan Monnier
2005-01-11 14:30             ` Richard Stallman
2005-01-12  1:52               ` Juri Linkov
  -- strict thread matches above, loose matches on Subject: below --
2004-12-10  7:00 klaus.berndl

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=87pt1ddvk6.fsf@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 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).