all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Dani Moncayo'" <dmoncayo@gmail.com>, "'Juri Linkov'" <juri@jurta.org>
Cc: 9972@debbugs.gnu.org
Subject: bug#9972: 24.0.90; "C-s/C-r" from the minibuffer don't clear the current text
Date: Sun, 6 Nov 2011 10:01:31 -0800	[thread overview]
Message-ID: <42725507B3BE47B7A349C08F3F7B7FDC@us.oracle.com> (raw)
In-Reply-To: <CAH8Pv0j2bwuNEKLs-2N_UTtGoG3-qVU3DXZcQUisKnrZVK75Og@mail.gmail.com>

> Actually, what I don't like in the current behavior of C-s (and the
> other 3) when invoked from the minibuffer is the fact that the current
> minibuffer text remains there after hitting C-s (like if I were typed
> it, but even being read-only!).

Dunno what you mean about the text being read-only.

The reason the minibuffer text remains there is that it is the text to be
searched.  It is not there as the current search string (or search "entry" as
you have referred to it).  It is there as the text to be searched.

Think of the minibuffer as an ordinary buffer with some text in it.  The text
that is in the minibuffer is text that you typed.  Or it is text that you
retrieved from a history cycle or search.  Or it is text that you retrieved by
cycling among the current completion candidates.

However the current minibuffer text got there, it is the text that gets searched
by C-s/C-r/C-M-s/C-M-r.

> That scenario is not like users are used to when the
> type `C-s'.

Yes it is.  The text you see is _not_ the search string.
It is the text to be searched.

> They expect to see a clean minibuffer
> prompt "I-search: ", with the cursor after it.

I agree that things can be a bit confusing because the minibuffer is used for
both the Isearch prompt and as the buffer to be searched.

Perhaps you or Juri has a suggestion how to make this clearer.  But your idea of
emptying the minibuffer doesn't fly because it is precisely the minibuffer text
that is to be searched.

> So, what about making the Isearch commands start that way, but
> considering the current minibuffer text (the one present before C-s
> was invoked) as the first entry for the search, as you pointed out?

The minibuffer content (text) is not an Isearch "entry".  It is the text to be
searched.






  parent reply	other threads:[~2011-11-06 18:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-06 14:22 bug#9972: 24.0.90; "C-s/C-r" from the minibuffer don't clear the current text Dani Moncayo
2011-11-06 14:37 ` Juri Linkov
2011-11-06 14:47   ` Dani Moncayo
2011-11-06 15:10     ` Juri Linkov
2011-11-06 15:57       ` Dani Moncayo
2011-11-06 16:04         ` Dani Moncayo
2011-11-06 16:16         ` Juri Linkov
2011-11-06 16:37           ` Dani Moncayo
2011-11-06 17:01             ` Juri Linkov
2011-11-06 17:42               ` Dani Moncayo
2011-11-06 17:53                 ` Dani Moncayo
2011-11-06 18:11                   ` Drew Adams
2011-11-06 18:20                   ` Juri Linkov
2011-11-06 19:07                     ` Andreas Schwab
2011-11-09 15:27                       ` Dani Moncayo
2011-11-09 16:17                         ` Juri Linkov
2011-11-06 18:01                 ` Drew Adams [this message]
2011-11-06 17:17             ` Drew Adams

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=42725507B3BE47B7A349C08F3F7B7FDC@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=9972@debbugs.gnu.org \
    --cc=dmoncayo@gmail.com \
    --cc=juri@jurta.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.