GNU bug report logs - #15513
Isearch should clear shift-selected region

Previous Next

Package: emacs;

Reported by: Yuri Khan <yuri.v.khan <at> gmail.com>

Date: Thu, 3 Oct 2013 20:28:02 UTC

Severity: normal

Tags: moreinfo

Found in version 24.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 15513 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Yuri Khan <yuri.v.khan <at> gmail.com>
Cc: 15513 <at> debbugs.gnu.org, cyd <at> gnu.org
Subject: Re: bug#15513: 24.2;
 isearch should clear selection in transient-mark-mode
Date: Thu, 03 Oct 2013 17:19:32 -0400
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




This bug report was last modified 3 years and 303 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.