From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#15513: 24.2; isearch should clear selection in transient-mark-mode Date: Thu, 3 Oct 2013 13:56:35 -0700 (PDT) Message-ID: <2caeaf90-276b-4312-9ece-a38776b8eae9@default> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1380833845 7906 80.91.229.3 (3 Oct 2013 20:57:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Oct 2013 20:57:25 +0000 (UTC) To: Yuri Khan , 15513@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 03 22:57:27 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VRpxc-0008Mx-TQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2013 22:57:25 +0200 Original-Received: from localhost ([::1]:45178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRpxc-0000Kg-EZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2013 16:57:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRpxP-00007n-Ty for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 16:57:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRpxH-0005Rp-BT for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 16:57:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRpxH-0005RR-8S for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 16:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VRpxG-0007Hx-Ed for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 16:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Oct 2013 20:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15513-submit@debbugs.gnu.org id=B15513.138083380527992 (code B ref 15513); Thu, 03 Oct 2013 20:57:02 +0000 Original-Received: (at 15513) by debbugs.gnu.org; 3 Oct 2013 20:56:45 +0000 Original-Received: from localhost ([127.0.0.1]:52427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRpwy-0007HO-2I for submit@debbugs.gnu.org; Thu, 03 Oct 2013 16:56:44 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:42959) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRpwt-0007HD-BE for 15513@debbugs.gnu.org; Thu, 03 Oct 2013 16:56:40 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r93KubaE013098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 3 Oct 2013 20:56:38 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r93KuatF000562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Oct 2013 20:56:37 GMT Original-Received: from abhmt118.oracle.com (abhmt118.oracle.com [141.146.116.70]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r93Kuaxa028181; Thu, 3 Oct 2013 20:56:36 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78905 Archived-At: > 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. >=20 > 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-'? 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-', 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.