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: C-g from Isearch Date: Tue, 2 Oct 2012 10:18:05 -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 1349198341 915 80.91.229.3 (2 Oct 2012 17:19:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Oct 2012 17:19:01 +0000 (UTC) Cc: 'Nix' , emacs-devel@gnu.org To: "'Stefan Monnier'" , "'Dani Moncayo'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 02 19:19:04 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 1TJ671-00067z-KS for ged-emacs-devel@m.gmane.org; Tue, 02 Oct 2012 19:18:27 +0200 Original-Received: from localhost ([::1]:54392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ66v-0005hT-Ut for ged-emacs-devel@m.gmane.org; Tue, 02 Oct 2012 13:18:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ66s-0005hC-Kj for emacs-devel@gnu.org; Tue, 02 Oct 2012 13:18:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJ66r-0004Vy-I3 for emacs-devel@gnu.org; Tue, 02 Oct 2012 13:18:18 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:38563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ66r-0004Vu-BY for emacs-devel@gnu.org; Tue, 02 Oct 2012 13:18:17 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q92HI7oZ030658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 2 Oct 2012 17:18:08 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q92HI613021215 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Oct 2012 17:18:07 GMT Original-Received: from abhmt110.oracle.com (abhmt110.oracle.com [141.146.116.62]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q92HI6qr016060; Tue, 2 Oct 2012 12:18:06 -0500 Original-Received: from dradamslap1 (/130.35.178.248) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 02 Oct 2012 10:18:06 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac2gwElyvHbefYx6TpeelEJzrXWaMwAAEFnQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:153937 Archived-At: > > 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. > > I don't think the difference is terribly important, but a > configuration option for that is acceptable. Coming from someone who often resists adding yet another user option, this is a bit surprising to me. IMHO, this is a case where your more usual stance wrt new options (YAGNI) would be appropriate. It is trivial for a user to bind C-g to `isearch-cancel'. (And that command already has another simple binding.) I would, however, support documenting this in the manual, where we discuss the out-of-the-box behavior of C-g. Just mention that ESC ESC ESC (command `isearch-cancel') always cancels isearch (and you can bind it to another key if you want).