From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: automatic selection during search Date: Thu, 26 Sep 2013 08:43:19 -0700 (PDT) Message-ID: <67ac7987-7f15-4603-a34f-7e5dbc366265@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 1380210232 1363 80.91.229.3 (26 Sep 2013 15:43:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Sep 2013 15:43:52 +0000 (UTC) To: Barry Margolin , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 26 17:43:55 2013 Return-path: Envelope-to: geh-help-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 1VPDjK-0005YI-LM for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 17:43:50 +0200 Original-Received: from localhost ([::1]:58535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPDjK-00059m-AP for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 11:43:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPDj1-00053I-Im for help-gnu-emacs@gnu.org; Thu, 26 Sep 2013 11:43:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPDiu-0001lQ-2W for help-gnu-emacs@gnu.org; Thu, 26 Sep 2013 11:43:31 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:40007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPDit-0001lE-SF for help-gnu-emacs@gnu.org; Thu, 26 Sep 2013 11:43:23 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r8QFhKjE019886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 26 Sep 2013 15:43:21 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 r8QFhKG8006686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Sep 2013 15:43:20 GMT Original-Received: from abhmt110.oracle.com (abhmt110.oracle.com [141.146.116.62]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r8QFhKGa026429; Thu, 26 Sep 2013 15:43:20 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93609 Archived-At: > > > But, the same behaviour is also shown in emacs -Q: When something is > > > selected and the point is inside this selection and you start isearch= , > > > then the selection is automatically extended. I could imagine that an > > > isearch hook could help which first switches off the selection=C3=A2= =E2=82=AC=C2=A6 > > > > Yes, (add-hook 'isearch-mode-hook 'deactivate-mark) seems to do the tri= ck. >=20 > That will break the common sequence C-@ C-s which *should* mark the > region from where you started to where the search completes. Yes. It's fine for a given user to add such behavior via a hook, if s?he wants. But the behavior of extending the active region during Isearch should not b= e considered a bug. A priori, Isearch should make no decisions about changin= g the region activation. Leave it up to the user. FWIW, Isearch+ gives you choices in behavior wrt the active region, decided= by options `isearchp-deactivate-region-flag' and `isearchp-restrict-to-region-= flag'. * Non-nil `isearchp-deactivate-region-flag' means deactivate the region bef= ore searching, so you can better see the text etc. If nil, you get the ordina= ry Isearch behavior: no deactivation. * Non-nil `isearchp-restrict-to-region-flag' limits searching to the active region. If nil, you get the ordinary Isearch behavior: no restriction of searching to the region. Isearch+ is here (and on MELPA): Code: http://www.emacswiki.org/emacs-en/download/isearch%2b.el Description: http://www.emacswiki.org/IsearchPlus