From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.devel Subject: C-g from Isearch (was: Isearch: retrieve last successful search string from when you quit (`C-g')) Date: Tue, 2 Oct 2012 17:42:34 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1349192604 10766 80.91.229.3 (2 Oct 2012 15:43:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Oct 2012 15:43:24 +0000 (UTC) Cc: Nix , Stefan Monnier , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 02 17:43:26 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 1TJ4cX-0001l3-1i for ged-emacs-devel@m.gmane.org; Tue, 02 Oct 2012 17:42:53 +0200 Original-Received: from localhost ([::1]:45649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ4cR-0003le-AA for ged-emacs-devel@m.gmane.org; Tue, 02 Oct 2012 11:42:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ4cG-0003k9-3Z for emacs-devel@gnu.org; Tue, 02 Oct 2012 11:42:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJ4cF-00029v-93 for emacs-devel@gnu.org; Tue, 02 Oct 2012 11:42:36 -0400 Original-Received: from mail-oa0-f41.google.com ([209.85.219.41]:57767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ4cF-00029l-4H for emacs-devel@gnu.org; Tue, 02 Oct 2012 11:42:35 -0400 Original-Received: by oagk14 with SMTP id k14so7286888oag.0 for ; Tue, 02 Oct 2012 08:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=Z17z6v1PcR6o/142BNLUS2q3obf5bxZjLG/aDyheExI=; b=RN47Dc8hsZaQ7Ytmp1WLD4qSmpkfqFdNKy61K5rb6gR1m62qNlKT9zAHcJ00kx6cNo mDS6utuhkow85k6JnHm4JPUq++dyqCI5yNjYa2i0ZparzrzC+hb/3p9Ryg5I+GaPHVfW UlfNHZcCLxPOZt3nSMIa2u7AZLt5BYfwkeM5d8ZxkkULY3t8uXhS8rP9B3yFMeZy3m65 G9ChAprkRSo4fR+VDN0cHs0MNHvo8Yq2d7RTVFgtMVLqdZGC57pzZKmmfAUtcbMlupZZ 0b5W6ED43qaIgYjnAX74Q+qmjuBKOA6r+WBaPpyIQLIyvYB0zaXq8Ba8nwEpMRyZo0aX Zyjw== Original-Received: by 10.182.111.74 with SMTP id ig10mr14999412obb.14.1349192554299; Tue, 02 Oct 2012 08:42:34 -0700 (PDT) Original-Received: by 10.60.4.132 with HTTP; Tue, 2 Oct 2012 08:42:34 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.219.41 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:153922 Archived-At: >> Quite. 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*. > > That is something very different from what this thread is about (and not a bug, > IMO). The C-g behavior in Emacs incremental search is somewhat complex (depends > on the search state), and fine as is (IMO). IIUC, the behavior of C-g from Isearch is not that complex. As documented in (info "(emacs)Error in Isearch"), `C-g' from Isearch does this: * If the current search is successful, `C-g' cancels the Isearch. * Else, `C-g' restores the last succesful search string. And I, like Nix, don't like the second case. I would like C-g to _always_ cancel the Isearch. So IMO this behavior should be configurable. -- Dani Moncayo