From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#7534: 24.0.50; G-g within Isearch regexp mode Date: Thu, 02 Dec 2010 22:31:48 +0000 Organization: JURTA Message-ID: <878w0724dn.fsf@mail.jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291329934 10267 80.91.229.12 (2 Dec 2010 22:45:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Dec 2010 22:45:34 +0000 (UTC) Cc: 7534@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 02 23:45:29 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 1POHu2-0006h7-G0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Dec 2010 23:45:27 +0100 Original-Received: from localhost ([127.0.0.1]:38804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POHu1-0007mb-T6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Dec 2010 17:45:26 -0500 Original-Received: from [140.186.70.92] (port=50088 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POHtr-0007jj-AJ for bug-gnu-emacs@gnu.org; Thu, 02 Dec 2010 17:45:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POHtq-0006V1-3d for bug-gnu-emacs@gnu.org; Thu, 02 Dec 2010 17:45:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POHtq-0006Ux-1w for bug-gnu-emacs@gnu.org; Thu, 02 Dec 2010 17:45:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1POHf9-0001lh-3I; Thu, 02 Dec 2010 17:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Dec 2010 22:30: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.12913289686736 (code B ref 7534); Thu, 02 Dec 2010 22:30:02 +0000 Original-Received: (at 7534) by debbugs.gnu.org; 2 Dec 2010 22:29:28 +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 1POHea-0001kb-6k for submit@debbugs.gnu.org; Thu, 02 Dec 2010 17:29:28 -0500 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1POHeR-0001kA-Ml for 7534@debbugs.gnu.org; Thu, 02 Dec 2010 17:29:27 -0500 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 84EAA6E8089; Thu, 2 Dec 2010 14:35:01 -0800 (PST) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id EBE0C451C05F; Thu, 2 Dec 2010 14:34:59 -0800 (PST) In-Reply-To: (Dani Moncayo's message of "Thu, 2 Dec 2010 20:47:16 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 02 Dec 2010 17:30:03 -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:42089 Archived-At: > Recipe: > 0) Start Emacs (-Q) > 1) Place point at the beginning of the *scratch* buffer. > 2) Search for the regexp "iss" (C-M-s iss) --> The last `s' is > unmatched as expected, OK. > 3) Type C-g --> The unmatched part disappears. Everything OK so far. > 4) Now repeat steps #2 and #3 with the regexp "is[". --> This time C-g > behaves differently. Instead of deleting the unmatched part, it ends > Isearch mode. > > The fail seems to appear whenever `[' is the first character in the > unmatched part. For instance: > * C-M-s iss[ C-g --> Works as expected (unmatched part deleted). > * C-M-s is[blablabla --> Doesn't work as expected (Isearch cancelled). IMO, this is consistent behavior. As 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"