From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#7534: 24.0.50; G-g within Isearch regexp mode Date: Fri, 3 Dec 2010 08:57:23 +0100 Message-ID: References: <878w0724dn.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291364133 29309 80.91.229.12 (3 Dec 2010 08:15:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2010 08:15:33 +0000 (UTC) Cc: 7534@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 03 09:15:25 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1POQna-0004Q7-AR for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Dec 2010 09:15:23 +0100 Original-Received: from localhost ([127.0.0.1]:51818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POQnZ-0008W4-Ik for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Dec 2010 03:15:21 -0500 Original-Received: from [140.186.70.92] (port=40936 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POQnR-0008Uf-R7 for bug-gnu-emacs@gnu.org; Fri, 03 Dec 2010 03:15:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POQnO-0003R0-VF for bug-gnu-emacs@gnu.org; Fri, 03 Dec 2010 03:15:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POQnO-0003Qs-Ro for bug-gnu-emacs@gnu.org; Fri, 03 Dec 2010 03:15:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1POQR0-0002WH-40; Fri, 03 Dec 2010 02:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Dec 2010 07:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7534 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7534-submit@debbugs.gnu.org id=B7534.12913627029630 (code B ref 7534); Fri, 03 Dec 2010 07:52:02 +0000 Original-Received: (at 7534) by debbugs.gnu.org; 3 Dec 2010 07:51:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1POQQg-0002VG-Ax for submit@debbugs.gnu.org; Fri, 03 Dec 2010 02:51:42 -0500 Original-Received: from mail-gx0-f172.google.com ([209.85.161.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1POQQe-0002Uu-Ml for 7534@debbugs.gnu.org; Fri, 03 Dec 2010 02:51:41 -0500 Original-Received: by gxk28 with SMTP id 28so4118752gxk.3 for <7534@debbugs.gnu.org>; Thu, 02 Dec 2010 23:57:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XnZKqzFXjzE+dGVdQikbLRskxB59lDh+zEqB5JZYDZc=; b=W0muLJnn79WDCUVeOOx0saup1KF3+Lq6KMAnH8XeFvsXptz2HFEPk/YwffnKhY25W3 sf4dyWnpprjDWC4ojx3ZC+lvtYcLQkzHE5vwWS9V/BPoQu8c2GjF84f6REkYTjC22K8i CJpwnxFWu+r17bIRDAjQBzUUe8NrfLhx11/5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=sl6BuFwCcVZiWFcmDcwkWGwWsU8g+ONTnn76jX9SVVVz6y913IJnmQYq2Lj9HcdZTY XhXhFBTF/fi32wwwyJzg6HVyPHRHkqM4933dMtfq1qpN8OOI1dDuCCbvt57OOhOFU6Xe nps5tkOtFhNBDy4F0eSHkUfT67pOageEjXlHY= Original-Received: by 10.91.11.3 with SMTP id o3mr2695385agi.148.1291363044013; Thu, 02 Dec 2010 23:57:24 -0800 (PST) Original-Received: by 10.90.227.16 with HTTP; Thu, 2 Dec 2010 23:57:23 -0800 (PST) In-Reply-To: <878w0724dn.fsf@mail.jurta.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 03 Dec 2010 02:52:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42099 Archived-At: On Thu, Dec 2, 2010 at 23:31, Juri Linkov wrote: [...] > > IMO, this is consistent behavior. =A0As the message says after typing `[' > it's incomplete input, so C-g behaves exactly like if there is no input > for `[' (and an unfinished sequence of characters that follows it). > > So the main principle here is that "incomplete input" means "no input" > for Isearch, and given this rule all your examples work as expected, i.e. > > "C-M-s is[ C-g" works like "C-M-s is C-g" > "C-M-s iss[ C-g" works like "C-M-s iss C-g" > "C-M-s is[blablabla C-g" works like "C-M-s is C-g" > Thanks for thinking on this, Juri. Indeed, the current behaviour seems to be like you mentioned ("incomplete input" means "no input"), but IMO that doesn't fit well user's needs. If the user is searching for "is[blablabla", and suddenly changes his(her) mind, I think C-g should allow to get rid of the unmatched part. So, IMO, the main principle for C-g (within Isearch mode) should be: * if there is unmatched and/or incomplete input --> Delete it. * Otherwise --> Exit Isearch mode. --=20 Dani Moncayo