From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nix Newsgroups: gmane.emacs.devel Subject: Re: Isearch: retrieve last successful search string from when you quit (`C-g') Date: Thu, 04 Oct 2012 12:37:14 +0100 Message-ID: <87ehle1n9x.fsf@spindle.srvr.nix> References: <0860CD16FA6A43A7B3FB40FE34C6B934@us.oracle.com> <87obkl5d42.fsf@spindle.srvr.nix> <83y5joakh7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349402031 26257 80.91.229.3 (5 Oct 2012 01:53:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2012 01:53:51 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, drew.adams@oracle.com, dmoncayo@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 05 03:53:47 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 1TJx4t-0005tv-AR for ged-emacs-devel@m.gmane.org; Fri, 05 Oct 2012 03:51:47 +0200 Original-Received: from localhost ([::1]:56423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJjkC-0001bN-6O for ged-emacs-devel@m.gmane.org; Thu, 04 Oct 2012 07:37:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJjk9-0001bF-OD for emacs-devel@gnu.org; Thu, 04 Oct 2012 07:37:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJjk5-0003lz-QQ for emacs-devel@gnu.org; Thu, 04 Oct 2012 07:37:29 -0400 Original-Received: from icebox.esperi.org.uk ([81.187.191.129]:55909 helo=mail.esperi.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJjk3-0003l9-SF; Thu, 04 Oct 2012 07:37:24 -0400 Original-Received: from spindle.srvr.nix (nix@spindle.srvr.nix [192.168.14.15]) by mail.esperi.org.uk (8.14.5/8.14.5) with ESMTP id q94BbEeC013555; Thu, 4 Oct 2012 12:37:14 +0100 Emacs: because Hell was full. In-Reply-To: <83y5joakh7.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 02 Oct 2012 18:48:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-DCC-URT-Metrics: spindle 1060; Body=5 Fuz1=5 Fuz2=5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 81.187.191.129 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:154062 Archived-At: On 2 Oct 2012, Eli Zaretskii verbalised: >> From: Nix >> Emacs: (setq software-quality (/ 1 number-of-authors)) >> Date: Tue, 02 Oct 2012 12:26:21 +0100 >> Cc: Stefan Monnier , >> Drew Adams , emacs-devel@gnu.org >> >> Perhaps I'm just an idiot, but I always thought the current >> isearch behaviour of not immediately quitting when C-g was stuck on a >> failed search was a *bug*. Only now, after Drew commented on it, do I >> notice that it's removing the unfound component of the failed search: >> i.e., it's a feature, but unless you spend your time looking at the echo >> area while isearching (and who does that?) they'll never notice it. > > They could read the manual. Yeah. I did say that it was documented. That's not the problem. The problem is that changing the behaviour of C-g to not quit is surprising. (Nothing else does it, modulo short-term setting of inhibit-quit, and there is no obvious reason why searching should be different.) But, as Drew and others have pointed out, this behaviour is easy to customize -- once you become aware that it's not a simple bug. -- NULL && (void)