unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Yuri Khan <yuri.v.khan@gmail.com>, 15513@debbugs.gnu.org
Subject: bug#15513: 24.2; isearch should clear selection in transient-mark-mode
Date: Thu, 3 Oct 2013 13:56:35 -0700 (PDT)	[thread overview]
Message-ID: <2caeaf90-276b-4312-9ece-a38776b8eae9@default> (raw)
In-Reply-To: <CAP_d_8XKGO9TAnsNip0ffk4nPi54Z_xwV7AOD8fkAqBSP0fLzw@mail.gmail.com>

> 3. Select the word This by pressing Ctrl+Shift+Right arrow.
> 4. Invoke isearch by pressing Ctrl+S.
> 5. Enter `notes' as the search string.
> 
> Observed behavior:
> * Selection is extended to include the word that was found by isearch.

Yes, that is the expected (designed, documented) behavior.  This was
discussed in help-gnu-emacs, in (your) thread "automatic selection
during search".

> Expected behavior:
> * Since isearch is a point movement command and such commands deactivate
> the selection in transient-mark-mode, I expect selection to be
> deactivated.

Isearch is a lot more than just a point movement command.  And it might
or might not actually move point, in the end.  And there is no rule that
I know of that says that all point-movement commands (meaning what? any
command that moves point?) must deactivate the region before it acts.
What about `S-<right>'?  That's a point movement command - should it
too deactivate the region?

> * If I press Ctrl+Space before searching, this indicates an explicit
> request for persistent selection. In this case, the current behavior of
> isearch is correct.

You activated the region by doing `C-S-<right>', indicating an explicit
request for an active region.  Isearch extends the active region.
If you don't want that, then don't activate the region (or else deactivate
it) before invoking Isearch.

IOW, if it hurts, just don't do that.





  reply	other threads:[~2013-10-03 20:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-02  3:00 bug#15513: 24.2; isearch should clear selection in transient-mark-mode Yuri Khan
2013-10-03 20:56 ` Drew Adams [this message]
2013-10-03 21:19 ` Stefan Monnier
2021-07-15  5:48   ` bug#15513: Isearch should clear shift-selected region Lars Ingebrigtsen
2021-08-12 15:07     ` Lars Ingebrigtsen

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=2caeaf90-276b-4312-9ece-a38776b8eae9@default \
    --to=drew.adams@oracle.com \
    --cc=15513@debbugs.gnu.org \
    --cc=yuri.v.khan@gmail.com \
    /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).