From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40254: 26.1; sgml-mode: Match data clobbered by buffer modification hooks Date: Sat, 28 Mar 2020 11:32:19 +0300 Message-ID: <83wo747ucs.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="111981"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40254@debbugs.gnu.org To: Vladimir Alexiev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 28 09:34:50 2020 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 1jI6vZ-000T0w-1E for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Mar 2020 09:34:49 +0100 Original-Received: from localhost ([::1]:51180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jI6vX-0007IL-W1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Mar 2020 04:34:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57550) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jI6tr-0006ri-0G for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 04:33:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jI6tq-0001Qj-1c for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 04:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55899) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jI6tp-0001QL-Un for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 04:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jI6tp-0007p5-Ro for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 04:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Mar 2020 08:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40254 X-GNU-PR-Package: emacs Original-Received: via spool by 40254-submit@debbugs.gnu.org id=B40254.158538434530015 (code B ref 40254); Sat, 28 Mar 2020 08:33:01 +0000 Original-Received: (at 40254) by debbugs.gnu.org; 28 Mar 2020 08:32:25 +0000 Original-Received: from localhost ([127.0.0.1]:33639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jI6tF-0007o3-AZ for submit@debbugs.gnu.org; Sat, 28 Mar 2020 04:32:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jI6tD-0007no-Ad for 40254@debbugs.gnu.org; Sat, 28 Mar 2020 04:32:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jI6t7-0000m4-WB; Sat, 28 Mar 2020 04:32:18 -0400 Original-Received: from [176.228.60.248] (port=1715 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jI6t5-0002S1-Rk; Sat, 28 Mar 2020 04:32:17 -0400 In-Reply-To: (message from Vladimir Alexiev on Fri, 27 Mar 2020 20:16:29 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177801 Archived-At: > From: Vladimir Alexiev > Date: Fri, 27 Mar 2020 20:16:29 +0200 > > When sgml-electric-tag-pair-mode is enabled in nxml-mode > and I try query-replace of a tag name, the first match is replaced and > then I get this error: > > Debugger entered--Lisp error: (error "Match data clobbered by buffer modification hooks") > replace-match("name" nil t) > replace-match-maybe-edit("name" nil t nil (1803 1814 #) nil) > perform-replace("designation" "name" t nil nil nil nil nil nil nil nil) > query-replace("designation" "name" nil nil nil nil nil) > funcall-interactively(query-replace "designation" "name" nil nil nil nil nil) > call-interactively(query-replace nil nil) > command-execute(query-replace) Could you please provide the file which you used in this case? I tried reproducing this with some random XML file I had on my system, but the problem didn't happen. Also, does this happen in "emacs -Q"? If not, then some of your customizations might be relevant as well (or even be the root cause). Thanks.