From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Isearch: retrieve last successful search string from when you quit (`C-g') Date: Mon, 1 Oct 2012 08:18:35 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1349104767 26543 80.91.229.3 (1 Oct 2012 15:19:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2012 15:19:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Stefan Monnier'" , "'Dani Moncayo'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 01 17:19:29 2012 Return-path: Envelope-to: ged-emacs-devel@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 1TIhmH-00023l-6r for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 17:19:25 +0200 Original-Received: from localhost ([::1]:35021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIhmB-0007ko-NK for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 11:19:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIhm1-0007Sm-JL for emacs-devel@gnu.org; Mon, 01 Oct 2012 11:19:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIhll-00063m-6U for emacs-devel@gnu.org; Mon, 01 Oct 2012 11:19:09 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:49658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIhlk-00063f-U2 for emacs-devel@gnu.org; Mon, 01 Oct 2012 11:18:53 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q91FInbN025362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Oct 2012 15:18:50 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q91FInWQ025196 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Oct 2012 15:18:49 GMT Original-Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q91FIn0H028804; Mon, 1 Oct 2012 10:18:49 -0500 Original-Received: from dradamslap1 (/10.159.219.190) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 01 Oct 2012 08:18:48 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac2f5QhZij+9uhnTTRCoHmGvH2AK3wAAI/Gw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 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:153840 Archived-At: > > As you say, someone might want that last successful search string to > > be stored in the search ring (I've sometimes expected it). > > Yes, I actually prefer to have it in the history (and skip it when > I don't want it) Folly. See my reply to Dani. > than to fail to find it. Today, you do fail to find it. It is completely lost. But I cannot imagine that you really want to be able to find _all_ such unvisited search strings on your search rings. To me, being able to retrieve just the last such string is adequate - TRT. I've used this feature (what I proposed). I suggest you try it, and you try also your suggestion of systematically adding all successful searches to the rings, and then compare. If you do decide to do what you are proposing, please provide us users a way out - a way to keep the sane search histories of today, without their pollution by umpteen zillion abandoned searches.