unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: 15513@debbugs.gnu.org, cyd@gnu.org
Subject: bug#15513: 24.2; isearch should clear selection in transient-mark-mode
Date: Thu, 03 Oct 2013 17:19:32 -0400	[thread overview]
Message-ID: <jwv8uyaf45q.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <CAP_d_8XKGO9TAnsNip0ffk4nPi54Z_xwV7AOD8fkAqBSP0fLzw@mail.gmail.com> (Yuri Khan's message of "Wed, 2 Oct 2013 10:00:22 +0700")

retitle 15513 Isearch should clear shift-selected region
thanks

> 3. Select the word This by pressing Ctrl+Shift+Right arrow.
> 4. Invoke isearch by pressing Ctrl+S.
[...]
> Observed behavior:
> * Selection is extended to include the word that was found by isearch.
> 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.
> * 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.

Actually, any highlighted region is a transient region.  Motion commands
deactivate the current selection only in the case where the selection
was made with shifted motion commands.

So C-s should only deactivate the region if it has been activated by
shifted motion commands.

> * Additionally, it might be nice if pressing Ctrl+Shift+S behaved
> similarly to Shift+arrow keys, unconditionally activating the selection
> and extending/shrinking it to include the match.

Yes, that would make a lot of sense, although C-S-s in my setup seems
never to reach Emacs (probably caught by something like
a window-manager).


        Stefan





  parent reply	other threads:[~2013-10-03 21:19 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
2013-10-03 21:19 ` Stefan Monnier [this message]
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=jwv8uyaf45q.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=15513@debbugs.gnu.org \
    --cc=cyd@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).