From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer Date: Fri, 06 Nov 2015 17:23:41 +0200 Message-ID: <83twozqhhe.fsf@gnu.org> References: <83611hvl0w.fsf@gnu.org> <8337wktols.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1446823462 31937 80.91.229.3 (6 Nov 2015 15:24:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2015 15:24:22 +0000 (UTC) Cc: 21824@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 06 16:24:12 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 1Zuis7-0000JG-B1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Nov 2015 16:24:11 +0100 Original-Received: from localhost ([::1]:39356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zuis6-0003T8-9n for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Nov 2015 10:24:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zuis2-0003Su-AE for bug-gnu-emacs@gnu.org; Fri, 06 Nov 2015 10:24:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zuiry-0006e8-B4 for bug-gnu-emacs@gnu.org; Fri, 06 Nov 2015 10:24:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zuiry-0006e4-8X for bug-gnu-emacs@gnu.org; Fri, 06 Nov 2015 10:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zuirx-0005ud-VE for bug-gnu-emacs@gnu.org; Fri, 06 Nov 2015 10:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Nov 2015 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21824 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 21824-submit@debbugs.gnu.org id=B21824.144682343622713 (code B ref 21824); Fri, 06 Nov 2015 15:24:01 +0000 Original-Received: (at 21824) by debbugs.gnu.org; 6 Nov 2015 15:23:56 +0000 Original-Received: from localhost ([127.0.0.1]:55985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zuirr-0005uG-EM for submit@debbugs.gnu.org; Fri, 06 Nov 2015 10:23:55 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:35778) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zuiro-0005u6-5m for 21824@debbugs.gnu.org; Fri, 06 Nov 2015 10:23:53 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NXE00J00FKXZA00@mtaout24.012.net.il> for 21824@debbugs.gnu.org; Fri, 06 Nov 2015 17:17:06 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXE009HSFSIDY90@mtaout24.012.net.il>; Fri, 06 Nov 2015 17:17:06 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il 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: 208.118.235.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:108498 Archived-At: > Date: Thu, 5 Nov 2015 22:14:28 -0500 > From: Noam Postavsky > Cc: 21824@debbugs.gnu.org > > Okay, turned out flycheck was basically irrelevant except that it > calls message a lot. And highlight-parentheses' only significance is > that it makes overlays all over the place. I have a simple reproducer, > run as > > emacs -Q -l bug-21824.el -f 21824-trigger > > The required circumstances appear to be that after a modification-hook > has been run and there is an overlay in the *Messages* buffer, the > message coalescing (the "[2 times]" thing) wrongly causes runs the > modification-hook of the overlay in the 1st buffer, but with > parameters from the *Messages* buffer modification. Thanks for this. I didn't even need to run the test case to see the problem very clearly. (It sounds like a very old bug, as all the pieces of the puzzle were not touched in at least 15 years.) Please see if the original bug is solved by the latest master. Btw, any idea how come overlays wound up in *Messages* in the original scenario? Thanks again for working on this. I will see about adding a test for this tricky failure.