From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#5620: 23.1.92.1; next-error no longer takes into account buffer modifications Date: Sat, 04 Dec 2021 22:00:20 +0100 Message-ID: <87a6hg2ihn.fsf@gnus.org> References: <201004281805.58350.p.pogonyshev@anakreon.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2809"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 5620@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 04 22:01:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtc9f-0000ZW-Hx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 22:01:11 +0100 Original-Received: from localhost ([::1]:45198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtc9e-0003UG-Gn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 16:01:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtc9W-0003S0-Oz for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:01:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtc9W-0005tU-Ff for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtc9W-0004nj-EG for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2021 21:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5620 X-GNU-PR-Package: emacs Original-Received: via spool by 5620-submit@debbugs.gnu.org id=B5620.163865163216799 (code B ref 5620); Sat, 04 Dec 2021 21:01:02 +0000 Original-Received: (at 5620) by debbugs.gnu.org; 4 Dec 2021 21:00:32 +0000 Original-Received: from localhost ([127.0.0.1]:55259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtc92-0004Mc-6Y for submit@debbugs.gnu.org; Sat, 04 Dec 2021 16:00:32 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:41232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtc90-0004FI-5m for 5620@debbugs.gnu.org; Sat, 04 Dec 2021 16:00:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3EArZioE9mxWZbxyaOp0lOI2c5qzTCaYD1W5R4w+3CM=; b=lBgrXr87HV0t0XePCg4kN/mJ3t UAtPwmEnDLJOvcs/EcT3k5GabPNGxtJKUA45a5mG4MK7h8YWjGfm26YE14gjVJvAIsTBE3a9QGpbG 5k13y2XLBoot0UpcxOYmqjIZLNP3oq0xe0pyBUDfdUMDmDXhIG0TX9ov5JtNEHC3GziY=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtc8r-0000RO-1O; Sat, 04 Dec 2021 22:00:23 +0100 X-Now-Playing: King Crimson's _USA_: "Exiles" In-Reply-To: <201004281805.58350.p.pogonyshev@anakreon.net> (Paul Pogonyshev's message of "Wed, 28 Apr 2010 18:05:58 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221510 Archived-At: Paul Pogonyshev writes: > I wonder if the supposed fix was checked at all. It fixes neither the > original test case in the bug report, nor compilation error messages. (I'm going through old bug reports that unfortunately weren't resolved at the time.) The problem (as demonstrated by the original test case) is still present in Emacs to this day. But it does seem to work sometimes, in my vague recollection? Let's see... Right, this is supposed to work by setting markers in the buffers where you have the hits, so if you change the buffer in a way that doesn't make the markers move, then you'll get the wrong line. In this case: foo bar baz The marker is a 9, the start of the "baz" line. Then we yank two lines: foo bar spam ham baz But this doesn't make the "baz" marker move -- we're inserting before that marker. So I'm not sure how this could be fixed in general, as this is just the way markers work. We could set the marker on the second char of the line, perhaps, and that'd be marginally less likely to have this effect (since people commonly insert new lines), but that seems like a pretty gross hack. So I don't know what, if anything, could be done here. Anybody? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no