From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexis Praga Newsgroups: gmane.emacs.bugs Subject: bug#48625: 28.0.50; Cannot replace more than one match in wdired mode Date: Mon, 24 May 2021 17:38:27 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000008ab5405c31534f7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6677"; mail-complaints-to="usenet@ciao.gmane.io" To: 48625@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 24 17:44:17 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 1llCkU-0001KB-PM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 May 2021 17:44:10 +0200 Original-Received: from localhost ([::1]:45686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llCkT-0003v2-S0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 May 2021 11:44:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llCkM-0003uo-Gq for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 11:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60391) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llCkM-0008Dm-96 for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 11:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llCkM-0006pz-7G for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 11:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexis Praga Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 May 2021 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48625 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162187102726247 (code B ref -1); Mon, 24 May 2021 15:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 May 2021 15:43:47 +0000 Original-Received: from localhost ([127.0.0.1]:43702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llCk7-0006pF-6o for submit@debbugs.gnu.org; Mon, 24 May 2021 11:43:47 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llCfD-0006hf-Bf for submit@debbugs.gnu.org; Mon, 24 May 2021 11:38:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llCfC-0001JK-NO for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 11:38:43 -0400 Original-Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]:33540) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llCfA-000679-K7 for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 11:38:42 -0400 Original-Received: by mail-oi1-x231.google.com with SMTP id b25so27485644oic.0 for ; Mon, 24 May 2021 08:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=y/VZWmVO/laQtUOXvXx8LAWdg3v9ola9cxN4T/eTc5E=; b=dgQgKPkWCOZbEvyuxArZEBKNdKiMvilKXJs7J/rGvquAiIo0bx0/Do59gHYlNkqw1s 9RrX/vR67VuYWGWIOTOwj485IrkgFW406W03p2udEZSN3o/F5YsOm9w1aOg4OCl7ScEZ mGBfv5e5nNAktqz6vATtwOcDkvrnSQvBUz/zxw6mFHqVI65h3pbmjD+gkOLesMkaccog paKCHKr3dJ6TsJTEjTwy5h0/hLb4akT3WTAxVkv9+u0nSCFuhr0RL/rDkTzJkpx6ihEj ibf+TxPeYt+ggs/o1c9THOJ63Tknz52Lvj/WZz/4zPMcf53GCShVcTDbxPt1n0BI4aSq nsog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=y/VZWmVO/laQtUOXvXx8LAWdg3v9ola9cxN4T/eTc5E=; b=DhfQcp66TUg1T2C1K+F9IIGZUOttUiMML1MIfQfuGzzP/mPZGnBEcpGKxqjOoOAk2T mp6Ca+GnO0bGPqiXBHe9Ew2ySNNCdzLBT3DPNgOTEAAYtVunRmzQ2PaUIAF1jebJ58+E 6stRmnMtJcFR3zLqDl8cWQ6ry3HU0AukQNupUjjnkdcTOgJmhVG23meQ4B2ziql5ou48 1OfJrFb0P/97rGnC7y4Frz98+UOu7l86YCPiGrV/S/WABSZt9/W9B2IFkRUlvEkpyU8Y KFMYpf0CR8BqYe6+XNsJnDqld4H7pWX5Ml7vRp8IGSqMGO4VjR+N+YL8hvcGKpNu7oZA ZmZA== X-Gm-Message-State: AOAM530tu7pR9bdGAtquzbfjgzehFfWj5KGxpOImfyKRG7H6A8CSie9r R18xmyWcZk/+n9uTmja50r3YmA/ofKZl6GQ3augZdocv X-Google-Smtp-Source: ABdhPJzQF9bB4PPDdAONfQpm5dl1uz/jpKrnG1zQFie85W6GHnxcquhmHowRqTvcAD8zwDYfFUdp/OYyyKmcVIGrOEU= X-Received: by 2002:aca:5f8b:: with SMTP id t133mr3824855oib.163.1621870718264; Mon, 24 May 2021 08:38:38 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::231; envelope-from=alexis.praga@gmail.com; helo=mail-oi1-x231.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 24 May 2021 11:43:46 -0400 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:207128 Archived-At: --00000000000008ab5405c31534f7 Content-Type: text/plain; charset="UTF-8" Hi, In wdired-mode, it looks like I only replace the first match. Steps to reproduce : 1. Open a folder in wdired-mode 2. M-x replace-string This should only replace the first occurences and fails for other with the backtrace below: Debugger entered--Lisp error: (error "Match data clobbered by buffer modification hooks") replace-match-maybe-edit("LOL" nil t nil (1992 1994 #>) nil) perform-replace("py" "LOL" nil nil nil nil nil nil nil nil nil) replace-string("py" "LOL" nil nil nil nil nil) funcall-interactively(replace-string "py" "LOL" nil nil nil nil nil) command-execute(replace-string record) execute-extended-command(nil "replace-string" nil) funcall-interactively(execute-extended-command nil "replace-string" nil) command-execute(execute-extended-command) My setup is below. Thanks ! 8<------------------------------------------------------------------------------- In GNU Emacs 28.0.50 (build 1, x86_64-unknown-freebsd13.0, GTK+ Version 3.24.27, cairo version 1.16.0) of 2021-04-20 built on ecchi Repository revision: b5c76530fab4b99e76249bfb9a105b30bef4ce67 Repository branch: feature/native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: 13.0-RELEASE Configured using: 'configure --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: (only . t) Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-print debug backtrace find-func cus-edit pp wid-edit cus-start cus-load help-fns radix-tree thingatpt wdired dired-aux comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind kqueue lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process nativecomp emacs) Memory information: ((conses 16 127769 8508) (symbols 48 9903 1) (strings 32 28404 3154) (string-bytes 1 966479) (vectors 16 20433) (vector-slots 8 353075 22979) (floats 8 42 108) (intervals 56 2965 0) (buffers 992 16)) -- Alexis Praga --00000000000008ab5405c31534f7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

In wdired-mode, it looks like I only replace th= e first match.
Steps to reproduce :

1. Open a folder in wdired-mo= de
2. M-x replace-string

This should only replace the first occur= ences and fails for other with
the backtrace below:

Debugger ente= red--Lisp error: (error "Match data clobbered by buffer modification h= ooks")
=C2=A0 replace-match-maybe-edit("LOL" nil t nil (1= 992 1994 #<buffer alex<home>>) nil)
=C2=A0 perform-replace(&= quot;py" "LOL" nil nil nil nil nil nil nil nil nil)
=C2= =A0 replace-string("py" "LOL" nil nil nil nil nil)
= =C2=A0 funcall-interactively(replace-string "py" "LOL" = nil nil nil nil nil)
=C2=A0 command-execute(replace-string record)
= =C2=A0 execute-extended-command(nil "replace-string" nil)
=C2= =A0 funcall-interactively(execute-extended-command nil "replace-string= " nil)
=C2=A0 command-execute(execute-extended-command)

My s= etup is below. Thanks !


8<-----------------------------------= --------------------------------------------

In GNU Emacs 28.0.50 (b= uild 1, x86_64-unknown-freebsd13.0, GTK+ Version 3.24.27, cairo version 1.1= 6.0)
=C2=A0of 2021-04-20 built on ecchi
Repository revision: b5c76530= fab4b99e76249bfb9a105b30bef4ce67
Repository branch: feature/native-comp<= br>Windowing system distributor 'The X.Org Foundation', version 11.= 0.12011000
System Description: 13.0-RELEASE

Configured using:
= =C2=A0'configure --with-native-compilation'

Configured featu= res:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG= JSON
LCMS2 LIBOTF LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY KQUEUE PD= UMPER
PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM G= TK3
ZLIB

Important settings:
=C2=A0 value of $LANG: en_US.UTF-= 8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system= : utf-8-unix

Major mode: Debugger

Minor modes in effect:
= =C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-in= dent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
= =C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global= -font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode:= t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 lin= e-number-mode: t
=C2=A0 transient-mark-mode: (only . t)

Load-path= shadows:
None found.

Features:
(shadow sort mail-extr emacsbu= g message rmc puny rfc822 mml mml-sec epa
derived epg epg-config gnus-ut= il rmail rmail-loaddefs auth-source eieio
eieio-core eieio-loaddefs pass= word-cache json map text-property-search
time-date mm-decode mm-bodies m= m-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc= 2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils cl-print debug bac= ktrace find-func cus-edit pp
wid-edit cus-start cus-load help-fns radix-= tree thingatpt wdired
dired-aux comp comp-cstr warnings subr-x rx cl-seq= cl-macs cl-extra
help-mode seq byte-opt gv bytecomp byte-compile cconv = cl-loaddefs cl-lib
dired dired-loaddefs iso-transl tooltip eldoc electri= c uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-winterm/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tab= ulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode = register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select= scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors fr= ame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese = tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek = romanian slovak czech european ethiopic indian
cyrillic chinese composit= e charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbr= ev obarray cl-preloaded nadvice button
loaddefs faces cus-face macroexp = files window text-properties overlay
sha1 md5 base64 format env code-pag= es mule custom widget
hashtable-print-readable backquote threads dbusbin= d kqueue lcms2
dynamic-setting system-font-setting font-render-setting c= airo
move-toolbar gtk x-toolkit x multi-tty make-network-process nativec= omp
emacs)

Memory information:
((conses 16 127769 8508)
=C2= =A0(symbols 48 9903 1)
=C2=A0(strings 32 28404 3154)
=C2=A0(string-by= tes 1 966479)
=C2=A0(vectors 16 20433)
=C2=A0(vector-slots 8 353075 2= 2979)
=C2=A0(floats 8 42 108)
=C2=A0(intervals 56 2965 0)
=C2=A0(b= uffers 992 16))

--
Alexis Praga
--00000000000008ab5405c31534f7--