From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.devel Subject: Re: Isearch should store aborted search strings too Date: Wed, 7 Dec 2011 16:28:13 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1323275323 17797 80.91.229.12 (7 Dec 2011 16:28:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2011 16:28:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 07 17:28:38 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RYKMI-0006Os-1R for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2011 17:28:38 +0100 Original-Received: from localhost ([::1]:43424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYKMH-0005l4-JP for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2011 11:28:37 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYKMB-0005kw-Ll for emacs-devel@gnu.org; Wed, 07 Dec 2011 11:28:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYKM6-0007ag-R5 for emacs-devel@gnu.org; Wed, 07 Dec 2011 11:28:31 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:54410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYKM6-0007Z3-M6 for emacs-devel@gnu.org; Wed, 07 Dec 2011 11:28:26 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RYKM5-0006HT-C2 for emacs-devel@gnu.org; Wed, 07 Dec 2011 17:28:25 +0100 Original-Received: from 188-143-85-144.pool.digikabel.hu ([188.143.85.144]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Dec 2011 17:28:25 +0100 Original-Received: from adatgyujto by 188-143-85-144.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Dec 2011 17:28:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 188.143.85.144 (Opera/9.80 (Windows NT 6.1; U; en) Presto/2.9.168 Version/11.52) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146557 Archived-At: Andreas Schwab linux-m68k.org> writes: > > Tom gmail.com> writes: > > > I often use isearch to check something in other parts of the > > file and then go back to the starting point by aborting isearch > > with ctrl+G. > > Alternative: type RET and then C-u C-SPC. > Yes, but it's much more typing than a simple C-g which is not a good thing in case of a frequent operation. I use isearch quite a lot to move around in buffers. As a workaround I added an advice which forces isearch to always store the search string: (defadvice isearch-done (before my-isearch-done activate) (ad-set-arg 0 nil)) With this anyone can try it how it feels in practice. I find it quite convenient that I can quickly repeat an isearch with C-s C-s regardless if I exited the search normally or aborted it.