From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#73018: 31.0.50; wdired + replace-regexp only modifies the visible portion of the buffer Date: Thu, 05 Sep 2024 19:51:48 +0300 Organization: LINKOV.NET Message-ID: <86ed5yujq3.fsf@mail.linkov.net> References: <20240904.080321.1100373523429404965.enometh@meer.net> <87seug85hh.fsf@web.de> <86y147gzx0.fsf@mail.linkov.net> <874j6uz4d8.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16181"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: Madhu , 73018@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 05 19:05:15 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 1smFv0-00042K-Nd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Sep 2024 19:05:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smFul-0004N6-SV; Thu, 05 Sep 2024 13:05: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 1smFuj-0004Jv-0K for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2024 13:04:57 -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 1smFui-0007AD-Ms for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2024 13:04:56 -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:Date:References:In-Reply-To:From:To:Subject; bh=TWdnXBg9Mq0TwH5FzE8qg507n5ruzextgEdzUVJJIqw=; b=uIYzJmXTDywNyY9MC0ucNUygTm/EeELvydq563JId/j4vYyBg0Y4mToAM3AKo4KGlGAG7qDGIIiWB9EqlBWkaqNwxin08tJcrjTCBAMiFRfiGwQwXwAI5mIcGepynT8uFPi9FFd4oGzkrcE/pPfgTdbaT1vZNmEqDEKK1yiF0ouNpxqIIXvFLna1ZrIKHekTv2U290cdHaP7EakwM8B0Q747qX3e3zbmM7udVozc+a9aCRsb1qMKIzudjvFau4+VvPUcrUHmo6+3+C2DM3bVpGs8zbXD/FG281+D1FRJeeFPAwzU+/k0yZGpTL8aDwvuN5aU6mlLlZVAOPFjdP5V9A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smFvl-00013k-SW for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2024 13:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Sep 2024 17:06: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.17255559484025 (code B ref 73018); Thu, 05 Sep 2024 17:06:01 +0000 Original-Received: (at 73018) by debbugs.gnu.org; 5 Sep 2024 17:05:48 +0000 Original-Received: from localhost ([127.0.0.1]:38137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smFvY-00012r-4a for submit@debbugs.gnu.org; Thu, 05 Sep 2024 13:05:48 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:49915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smFvV-00012Y-F0 for 73018@debbugs.gnu.org; Thu, 05 Sep 2024 13:05:45 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id AD3431C0002; Thu, 5 Sep 2024 17:04:32 +0000 (UTC) In-Reply-To: <874j6uz4d8.fsf@web.de> (Michael Heerdegen's message of "Thu, 05 Sep 2024 14:12:19 +0200") X-GND-Sasl: juri@linkov.net 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:291281 Archived-At: >> So you prefer to slow down only when the user types C-s? >> This is possible by adding a local hook in >> wdired-change-to-wdired-mode: >> >> (add-hook 'isearch-mode-hook #'font-lock-ensure nil t) > > A step back: I now tried to reproduce the recipe, but I only see the > clobbered match data error (randomly) - I don't see only the visible > buffer portion operated on. With other words: I can't reproduce the > issue, at least not with the "visible buffer portion" interpretation, > and I don't see that we would need to call `font-lock-ensure' at all. Maybe this is reproducible only on very long Dired buffers? > Second: I'm confused. Apparently, when `dired-isearch-filenames-mode' > is on, why do `search-forward-regexp' and `replace-regexp' behave > differently? `search-forward-regexp' does find matches outside of file > names that `replace-regexp' ignores. `replace-regexp' uses Isearch functions, `search-forward-regexp' is a core function that doesn't use Isearch.