From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.bugs Subject: bug#19710: 24.4.51; Isearch is broken in comints which relly on regexp Date: Thu, 05 Feb 2015 11:03:41 +0100 Message-ID: <877fvwvfnm.fsf@gmail.com> References: <87oapjmfth.fsf@gmail.com> <874mrawgcu.fsf@mail.linkov.net> <87oapi6m3v.fsf@gmail.com> <87vbjhdvas.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423130660 12101 80.91.229.3 (5 Feb 2015 10:04:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 10:04:20 +0000 (UTC) Cc: 19710-done@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 05 11:04:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1YJJIB-0004Th-Qv for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Feb 2015 11:04:11 +0100 Original-Received: from localhost ([::1]:40979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJJIB-0000qt-6i for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Feb 2015 05:04:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJJI7-0000ph-Eb for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 05:04:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJJI2-0004gg-DX for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 05:04:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJJI2-0004ga-AM for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 05:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YJJI1-0000L7-Qq for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 05:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vitalie Spinu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Feb 2015 10:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19710 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19710-done@debbugs.gnu.org id=D19710.14231306311287 (code D ref 19710); Thu, 05 Feb 2015 10:04:01 +0000 Original-Received: (at 19710-done) by debbugs.gnu.org; 5 Feb 2015 10:03:51 +0000 Original-Received: from localhost ([127.0.0.1]:34519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJJHq-0000Kg-O5 for submit@debbugs.gnu.org; Thu, 05 Feb 2015 05:03:50 -0500 Original-Received: from mail-wi0-f170.google.com ([209.85.212.170]:48175) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJJHp-0000KT-Fs for 19710-done@debbugs.gnu.org; Thu, 05 Feb 2015 05:03:50 -0500 Original-Received: by mail-wi0-f170.google.com with SMTP id bs8so1317231wib.1 for <19710-done@debbugs.gnu.org>; Thu, 05 Feb 2015 02:03:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=NWkwEae2CgEYqfTVY6Qn5zM0wAnQUj/Huc95yn9hlYo=; b=TBzvhnPIbmiDtsuyj2/dEo9AQYprY5eFdd3ckBL7u6dZa28+6jZSoIIBIKBc0mG+1O lntRvIvMPiFVjuFzLSVr51d6QVlect6KyDS30i/y3M79PjKeIjEVuy9LFbc8iOoWKlTG nX8u/mhwFgEM9j5/JuTtMuIlosb9ufOUKpas0FSIulcAn3Pvee8RUg3K1AZqUOfJ2HWq hYxs0DHe9pigCpL4TNEQNhooXt4U3JcRB8Y9rKtesrZW0JF90KjRWsdO/faBHWlNVQdF nSy1cQNTMv2sF4QjULZxEbDV5RUm1ZXxqR0UVy46wfLU6imbdVBFVQzscpOEv3o9cV6U QFGA== X-Received: by 10.180.99.42 with SMTP id en10mr45793502wib.26.1423130623783; Thu, 05 Feb 2015 02:03:43 -0800 (PST) Original-Received: from localhost (dhcp-077-251-128-242.chello.nl. [77.251.128.242]) by mx.google.com with ESMTPSA id n6sm6623888wjy.8.2015.02.05.02.03.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Feb 2015 02:03:42 -0800 (PST) In-Reply-To: <87vbjhdvas.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 05 Feb 2015 02:57:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.51 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99055 Archived-At: Thanks. It works. Vitalie >>> Juri Linkov on Thu, 05 Feb 2015 02:57:07 +0200 wrote: >> >> Recent changes to commit to allow for multiline search assume fields >> >> throughout. The common case when comint-use-prompt-regexp is non-nil is >> >> not captured. >> >> >> >> To see the problem start shell and issue a couple of commands. Then >> >> (setq comint-use-prompt-regexp t), and add a couple of RETs. Then try M-r. >> >> >> >> You should see "Regexp history I-search backward:" several lines above >> >> where it should be and isearch will not work as expected. >> >> >> >> If you restart your shell, you will not even see the "Regexp history >> >> I-search backward:" as there are no fields in the buffer. >> >> > Thanks for the report. This can be fixed by the patch that >> > reverts the change of callers, and instead modifies >> > `comint-line-beginning-position' to support multi-line input >> > for both cases of comint-use-prompt-regexp = t/nil: >> >> Thanks Juri, this patch solves the problem indeed. > I fixed this on the emacs-24 branch because bug#19572 backported > previous changes to emacs-24.