From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.bugs Subject: bug#73018: 31.0.50; wdired + replace-regexp only modifies the visible portion of the buffer Date: Wed, 04 Sep 2024 14:28:31 +0530 (IST) Message-ID: <20240904.142831.1583368143272051709.enometh@meer.net> References: <20240904.080321.1100373523429404965.enometh@meer.net> <87seug85hh.fsf@web.de> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_Sep__4_14_28_31_2024_624)--" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3331"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73018@debbugs.gnu.org To: michael_heerdegen@web.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 04 11:01:36 2024 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 1slltP-0000cX-8v for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Sep 2024 11:01:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sllsq-0002kQ-O3; Wed, 04 Sep 2024 05:01:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sllso-0002jv-SW for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 05:00:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sllso-0005Zg-Jm for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 05:00:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Mime-Version:References:In-Reply-To:From:Date:To:Subject; bh=8uuY8ly03wsMwYF/d09EhtPwP4iOUNQnXlmSP6FIZCg=; b=npPz+F8Q2kj1kPvxBTuxspA94mE4km6eJNAmY0+2ZoilHvCLtAr/oZHHcF0In0ItxefBFcduZ0DGaqG+2rIcHeXuFqXdMEZS8UsEM+oYeO3rEM5jQJcIEnWiPJ/BBE9tlIU8Ef8EflrNnf8idZlFhiBy4uJ4pyhWCHT069xXUCgSQSC3DWknskfGL5MiTzUO3AHbrOQ1nFs64Bpoa6WSiyHhQoN0dAzkkcCGrFrQ2JPReOWCHVM3LCfFb/TjZU7W9CZQ2Uf+fnuB1phjWjcOr3vQVyg1RcBdKwFLrnakbhgUyyXZhaxP9dniG/8hDzo5fcbr7ELuQnr9ey49/oil0w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slltp-0002L7-NO for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 05:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Madhu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Sep 2024 09:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73018 X-GNU-PR-Package: emacs Original-Received: via spool by 73018-submit@debbugs.gnu.org id=B73018.17254405048966 (code B ref 73018); Wed, 04 Sep 2024 09:02:01 +0000 Original-Received: (at 73018) by debbugs.gnu.org; 4 Sep 2024 09:01:44 +0000 Original-Received: from localhost ([127.0.0.1]:33483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slltX-0002KY-V5 for submit@debbugs.gnu.org; Wed, 04 Sep 2024 05:01:44 -0400 Original-Received: from smtp0.ctinetworks.com ([205.166.61.207]:39738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slltV-0002KI-4L for 73018@debbugs.gnu.org; Wed, 04 Sep 2024 05:01:42 -0400 Original-Received: from localhost (unknown [117.254.37.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: enometh@meer.net) by smtp0.ctinetworks.com (Postfix) with ESMTPSA id C2D59306F085; Wed, 4 Sep 2024 05:00:27 -0400 (EDT) In-Reply-To: <87seug85hh.fsf@web.de> X-Mailer: Mew version 6.9 on Emacs 31.0.50 X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: C2D59306F085.A1CBA X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-Watermark: 1726304431.8639@uXd9Iz9XIH3x6lsiUPiZ+Q 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291186 Archived-At: ----Next_Part(Wed_Sep__4_14_28_31_2024_624)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit No problem, * Michael Heerdegen <87seug85hh.fsf@web.de> Wrote on Wed, 04 Sep 2024 05:25:46 +0200 > Could you please post a recipe and a backtrace for this second problem? ``` emacs -Q -l f.el ``` produces the backtrace in the file backtrace.txt with the match-data clobbered error. At this point (i.e. after the error occurs) if I do "M-x load-library wdired", then a subsequent replace-regexp operation succeeds. However in a long running emacs I believe I still see the match-data clobbered error crops up again, I'm keeping a lookout on what might be triggering that. ----Next_Part(Wed_Sep__4_14_28_31_2024_624)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="backtrace.txt" Debugger entered--Lisp error: (error "Match data clobbered by buffer modification hooks") replace-match("bar" nil nil) replace-match-maybe-edit("bar" nil nil nil (170 173 #) nil) perform-replace("foo" "bar" nil t nil nil nil nil nil nil nil) replace-regexp("foo" "bar") eval-buffer(# nil "/dev/shm/f.el" nil t) ; Reading at buffer position 359 load-with-code-conversion("/dev/shm/f.el" "/dev/shm/f.el" nil t) load("/dev/shm/f.el" nil t) command-line-1(("-l" "/dev/shm/f.el")) command-line() normal-top-level() ----Next_Part(Wed_Sep__4_14_28_31_2024_624)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="f.el" (setq $test-foo-dir "/tmp/test-foo/") (ignore-errors (make-directory $test-foo-dir)) (ignore-errors (loop for i below 40 for target = (format "/foo/%d" i) for link-name = (format "%s%d" $test-foo-dir i) do (make-symbolic-link target link-name))) (dired $test-foo-dir) (wdired-change-to-wdired-mode) (load-library "wdired") (toggle-debug-on-error t) (replace-regexp "foo" "bar") ----Next_Part(Wed_Sep__4_14_28_31_2024_624)----