From unknown Sat Jun 21 12:35:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Apr 2019 03:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35354 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 35354@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155581765022662 (code B ref -1); Sun, 21 Apr 2019 03:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Apr 2019 03:34:10 +0000 Received: from localhost ([127.0.0.1]:47251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hI3F4-0005tS-A1 for submit@debbugs.gnu.org; Sat, 20 Apr 2019 23:34:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hI3F1-0005tE-Sp for submit@debbugs.gnu.org; Sat, 20 Apr 2019 23:34:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:57551) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hI3Es-0008LX-37 for submit@debbugs.gnu.org; Sat, 20 Apr 2019 23:33:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hI3Er-0002Oy-3P for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 23:33:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hI33k-0003jG-3n for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 23:22:28 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:47504) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hI33j-0003if-TO for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 23:22:28 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3L3J3nt003986 for ; Sun, 21 Apr 2019 03:22:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=FKxZIHz/77PWY8L6nPip0Fr/qgf4Ydz1g68EaWlsQzs=; b=IhpZg6asm3jmtkYyADKYgTaeMqFswA1Vv1T+uM+TS7mf15Mz253cK8jRvl9FdHXM2lOL KHtHZpB2QywXBcO4MBEjrpLr5eikKuMhnGMZ+BRoEaAH1hOyDk+20VfTzMEVO4RRML/+ unSuQ/AoASP/wb8R+NTjhUEaj56Ac4RJUdpjTOkYSMgdOfD0D31c992Z3UF08TYs54Ul iXmZUsXorKYcahMQKZC0Oba4uOTLlZST+UdCCOykda7+9Z/W0O9SE3JXOWWLpz34UaHb ieCIvJ5nGURHdZ/bfKGu1bMJ+pkG09rxPB7/cLN44YURBskJMG0JImVr3Qxlf8vYp2KJ kA== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 2ryrxcj8cg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 21 Apr 2019 03:22:26 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3L3KPe8186575 for ; Sun, 21 Apr 2019 03:20:26 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 2s0fv206yp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 21 Apr 2019 03:20:25 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x3L3KOJb032160 for ; Sun, 21 Apr 2019 03:20:24 GMT MIME-Version: 1.0 Message-ID: <08ee0770-3f50-433e-955e-f8e13547ec21@default> Date: Sat, 20 Apr 2019 20:20:23 -0700 (PDT) From: Drew Adams X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4834.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9233 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904210024 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9233 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904210024 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 141.146.126.79 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) `dired-do-query-replace-regexp' has taken the key binding of `dired-do-find-regexp-and-replace'. I was expecting that it would do all that the latter does plus more. How does a user use `dired-do-query-replace-regexp' to replace only word-delimited matches? If this isn't currently possible, please make is so. Thx. In GNU Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13 Repository revision: fd1b34bfba8f3f6298df47c8e10b61530426f749 Windowing system distributor `Microsoft Corp.', version 10.0.17134 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' From unknown Sat Jun 21 12:35:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Apr 2019 23:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35354 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams , 35354@debbugs.gnu.org Received: via spool by 35354-submit@debbugs.gnu.org id=B35354.15558881197303 (code B ref 35354); Sun, 21 Apr 2019 23:09:01 +0000 Received: (at 35354) by debbugs.gnu.org; 21 Apr 2019 23:08:39 +0000 Received: from localhost ([127.0.0.1]:49305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hILZf-0001tj-KF for submit@debbugs.gnu.org; Sun, 21 Apr 2019 19:08:39 -0400 Received: from mail-lj1-f172.google.com ([209.85.208.172]:44695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hILZe-0001tV-1a for 35354@debbugs.gnu.org; Sun, 21 Apr 2019 19:08:38 -0400 Received: by mail-lj1-f172.google.com with SMTP id h16so8841217ljg.11 for <35354@debbugs.gnu.org>; Sun, 21 Apr 2019 16:08:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DfKBBBDqnHlnw6oR2DJcnr/TkyhMLJzOPBMVI9UCjpI=; b=ebkEVbStDqSQSzFv0LA56TN2CDHP6IT+5tDxwjTKS+GGtMuVc56FvuuvMmjyegNQXX qGpjHHsFO7WZI+UDTHneoheIsYsfQKkGbcguOlFwt4H/rmdq8NGPQHtBgn/mG0xj3sQC ZKpGi3+COGDLNO9gLNokPEWDTfxnD8pm113f312AIP6IlC9OhZ4dQHjax7xu2p7+rcUI GWVPpcnuonWYKnCcNXTjdXQVL4fjw7nEnTN4vnzoUOYDS1JE01Mu7fNdk0uuohwEc928 ug6xThJ0eI/34Nub+BZ2n12To7k4B6pcq1TWKyQ2LVt/fJoRAxLZ7YNJMlKsHc9RDpZ/ 2bRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DfKBBBDqnHlnw6oR2DJcnr/TkyhMLJzOPBMVI9UCjpI=; b=h3d1OxFTeXCMkvmGiJiSU50vFL4oi9qWeOsM081t5Wck+5qmN0XIhMJhppDy/7kNUX +p8r4y52p6s4c81d1rDJ48X8Dq0M/mxkY8DWPzjYxBL2VSe+lzcp89wmtpkWRkFEutqB Hau9nrTgPrwSe8qecrmeY4Fh7kD9JBERJ7TFl0LseA6iCZdhdrQ3g7WGFEy8oUjx6ymL vk1zQyN+aaa1z4cE1KCsKxoFtHNKW80pvV43mrMKHCw0ogst1VZaL0104or/XsVt9nPj zraOwU4pihDBo+PI0IW7lG+2V31ejld7ummkNpjUSEdtmi6DM+cVfJFYVnNmrNziMlC8 RBNA== X-Gm-Message-State: APjAAAWEfiu1bKKCCQ39iNZ4L6dYF/FwJQL+UNtKmu8kdbMnBYcy1HRj 4H6tODT6NX9vbDtzlcNUPWGvjJA+ X-Google-Smtp-Source: APXvYqxmLkaglp9DITQ6uKg0vJc4OmDUxlVEch5nDQigPXl/Ocfl7dLdM3EpPGMasgpZNY63kAj8hg== X-Received: by 2002:a2e:5bdb:: with SMTP id m88mr8543039lje.9.1555888111224; Sun, 21 Apr 2019 16:08:31 -0700 (PDT) Received: from [192.168.1.3] ([185.105.174.23]) by smtp.googlemail.com with ESMTPSA id v11sm2429089ljd.3.2019.04.21.16.08.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Apr 2019 16:08:30 -0700 (PDT) References: <08ee0770-3f50-433e-955e-f8e13547ec21@default> From: Dmitry Gutov Message-ID: <8f6f6e13-c150-a09f-06e5-aed3bfa21933@yandex.ru> Date: Mon, 22 Apr 2019 02:08:28 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <08ee0770-3f50-433e-955e-f8e13547ec21@default> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) On 21.04.2019 6:20, Drew Adams wrote: > `dired-do-query-replace-regexp' has taken the key binding of > `dired-do-find-regexp-and-replace'. I was expecting that it would do > all that the latter does plus more. I don't really understand how we can both expect FROM to be a regexp and have a separate argument DELIMITED. > How does a user use `dired-do-query-replace-regexp' to replace only > word-delimited matches? How about \? From unknown Sat Jun 21 12:35:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Apr 2019 23:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35354 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov , 35354@debbugs.gnu.org Received: via spool by 35354-submit@debbugs.gnu.org id=B35354.155589108911698 (code B ref 35354); Sun, 21 Apr 2019 23:59:01 +0000 Received: (at 35354) by debbugs.gnu.org; 21 Apr 2019 23:58:09 +0000 Received: from localhost ([127.0.0.1]:49367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIMLZ-00032c-CE for submit@debbugs.gnu.org; Sun, 21 Apr 2019 19:58:09 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:57142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIMLX-00032I-3K for 35354@debbugs.gnu.org; Sun, 21 Apr 2019 19:58:07 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3LNmmWS143892; Sun, 21 Apr 2019 23:58:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=eH4iR3piNTmVnNyVvhwzsN/wQbNnJcdo9OMG2cDCIQE=; b=2qxhiKnrF8FiH85rv+fDRzZeNRGcThHz0hV20GbhheFrL3f1HfUBvzXOJei6dhIBAd1W j6bzHVADHw1ZiybPkNtJvQtFAxIojXenXqHGDFkTYnwPsxsoiEtalCyG3gh6LjCObGmI Wvy0JXOuHcD3eVzNM0ckWmwDp/RqeAKPt4edFwXG0v+DXlizz3RYxbCxeTWF1i8YID4y +KvPLqtJSwCzS2ve0OBNMXsd5ujvVC0NA0t+UOHpnNHUX0lfWqQ8jXGapNxzCB+AgqZM +QVnPD2Z2jv2+n40baHnFxoCJdUGGNbjZA/ez5i9mWckghI0d+ddH/HnVjJWBcHew6hn Tg== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 2ryrxckx2y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 21 Apr 2019 23:58:00 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3LNuOnT153760; Sun, 21 Apr 2019 23:58:00 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 2s0fv267st-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 21 Apr 2019 23:57:59 +0000 Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x3LNvw6H032657; Sun, 21 Apr 2019 23:57:58 GMT MIME-Version: 1.0 Message-ID: Date: Sun, 21 Apr 2019 16:57:57 -0700 (PDT) From: Drew Adams References: <08ee0770-3f50-433e-955e-f8e13547ec21@default> <8f6f6e13-c150-a09f-06e5-aed3bfa21933@yandex.ru> In-Reply-To: <8f6f6e13-c150-a09f-06e5-aed3bfa21933@yandex.ru> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4834.0 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9234 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=18 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904210189 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9234 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=18 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904210189 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > `dired-do-query-replace-regexp' has taken the key binding of > > `dired-do-find-regexp-and-replace'. (I obviously said that backward. The latter took the binding of the former.) > > I was expecting that it would do > > all that the latter does plus more. >=20 > I don't really understand how we can both expect FROM > to be a regexp and have a separate argument DELIMITED. Why is that a problem? That's exactly what `dired-do-query-replace-regexp' does. Its FROM is a REGEXP. Doc string: Do =E2=80=98query-replace-regexp=E2=80=99 of FROM with TO, on all marked f= iles. Third arg DELIMITED (prefix arg) means replace only word-delimited matches. If you exit (C-g, RET or q), you can resume the query replace with the command M-x tags-loop-continue. (Of course, before the loss of key bindings, the last line read simply "with the command M-,.) > > How does a user use `dired-do-query-replace-regexp' to > > replace only word-delimited matches? (Again, I meant `dired-do-find-regexp-and-replace'.) > How about \? How do you specify delimited _replacement_? It's about the 3rd element returned by `query-replace-read-args', which you're not currently using anywhere (even though it is provided). It's no different than it is for `query-replace-regexp' or other commands that use `query-replace-read-args'. But `xref-query-replace-in-results' doesn't accept that 3rd element, DELIMITED. This bug report asks it to do so. Also, args FROM and TO for `xref-query-replace-in-results' aren't even described in its doc string. They should be. The doc string of `dired-do-query-replace-regexp' refers to `query-replace-regexp', so users can tell that FROM is in fact a REGEXP. They deserve similar help for `xref-query-replace-in-results', no? `dired-do-query-replace-regexp' lets you use a prefix arg to specify word-delimiting. A prefix arg isn't even used for `dired-do-find-regexp-and-replace'. It would be simple to do the same, provided `xref-query-replace-in-results' could handle the DELIMITED arg. From unknown Sat Jun 21 12:35:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Apr 2019 09:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35354 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams , 35354@debbugs.gnu.org Received: via spool by 35354-submit@debbugs.gnu.org id=B35354.155592507319179 (code B ref 35354); Mon, 22 Apr 2019 09:25:02 +0000 Received: (at 35354) by debbugs.gnu.org; 22 Apr 2019 09:24:33 +0000 Received: from localhost ([127.0.0.1]:49687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIVBh-0004zH-Kh for submit@debbugs.gnu.org; Mon, 22 Apr 2019 05:24:33 -0400 Received: from mail-lf1-f53.google.com ([209.85.167.53]:39085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIVBf-0004z1-Ha for 35354@debbugs.gnu.org; Mon, 22 Apr 2019 05:24:32 -0400 Received: by mail-lf1-f53.google.com with SMTP id d12so8523283lfk.6 for <35354@debbugs.gnu.org>; Mon, 22 Apr 2019 02:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:subject:to:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jSGO3zT7I1OmMf3s/4A8uBbxHxEtayYveY/+plTsa3U=; b=R5TzVGj2KBBwUYp/+QdB3Ws9KpEEl0PgL8dEDCxTv/s+0XpP/mFyWjtcB3gLpNilFz wRI/sSRKVEnaOOqUCBxzV58oTyLCeu7Ub8QfTWUzO9o86JGUzNlT1+7o+NZbcGvZxdJc FopP+s2wDPh2B7AiA6VTPp2mVPBQUM2J/Slc2aLbexjr/HW+PZ9NCvXsd5gn4d/DN0pY hWvpb/voaFRCKQU3Cm2w4fWZJPI87Gm98JA1Iq8/mlGfkG3gS98REhika3+ZHOaCsHWa iZzRMixcA+WdSMWcoowg5aF6iX65xVc2eYhObPJz2zBX4dG4OHpVEXS2D1dBZhqOHAaT BOAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:subject:to:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jSGO3zT7I1OmMf3s/4A8uBbxHxEtayYveY/+plTsa3U=; b=MgPXUbowqk3hrWByEXUiVYaz4237PKOcARunHWfzUxE2pAa1jcTQy2HdAOuqW1hN6R 5r6JpF5OKDnVL3m5IGq3wWT2y1lvSwadjNa7hhCfa9784hoBYq5OwQj8IWu6O7BV2Uce lUWWGluUH1aZgr0grhZHM6WPsN0ht/BC2JH+1evuXtWPu0vyXxXjK+QIZIur409hOyuK +4HlzfBwPtab9rFb8L0i9dNnFBCztbOxtAYs+5A7yC8l+T7g/vCM18q37qHyftIgArV/ FI3ihB4QQ0exCn8hahTdjuDzsh1WuMykEt5ojNetMdpQhDshFYHql3W62tW5myA4HVuc eZvg== X-Gm-Message-State: APjAAAVQ/GVMGvOxAsHo+x/CLbMDF1XRZtsHXLXSAXSWJ2yOe77uPEn6 jZAyW1n8hecJjyGCmWAymyMsvaaE X-Google-Smtp-Source: APXvYqwwqI9SVE6yg1TM6iPnpLh3Fk3w2UCqC8VY/FM14UFv9wn9V8qW5inO95dkRh29wsoriv9ycQ== X-Received: by 2002:ac2:48bb:: with SMTP id u27mr9702408lfg.17.1555925065572; Mon, 22 Apr 2019 02:24:25 -0700 (PDT) Received: from [192.168.1.3] ([185.105.174.23]) by smtp.googlemail.com with ESMTPSA id m18sm2578232ljb.35.2019.04.22.02.24.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 02:24:24 -0700 (PDT) From: Dmitry Gutov References: <08ee0770-3f50-433e-955e-f8e13547ec21@default> <8f6f6e13-c150-a09f-06e5-aed3bfa21933@yandex.ru> Message-ID: Date: Mon, 22 Apr 2019 12:24:22 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) On 22.04.2019 2:57, Drew Adams wrote: > How do you specify delimited_replacement_? Is there a practical difference in practice between this and using a regexp with word boundaries as FROM? From unknown Sat Jun 21 12:35:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Apr 2019 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35354 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov , 35354@debbugs.gnu.org Received: via spool by 35354-submit@debbugs.gnu.org id=B35354.15559318966649 (code B ref 35354); Mon, 22 Apr 2019 11:19:02 +0000 Received: (at 35354) by debbugs.gnu.org; 22 Apr 2019 11:18:16 +0000 Received: from localhost ([127.0.0.1]:49928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIWxk-0001jB-9A for submit@debbugs.gnu.org; Mon, 22 Apr 2019 07:18:16 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:53360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIWxh-0001ix-NM for 35354@debbugs.gnu.org; Mon, 22 Apr 2019 07:18:14 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3MBExiL020516; Mon, 22 Apr 2019 11:18:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=Fo6abjGXCHJt3agsO7FSN3y2H1W7sID0FDZ00CP2qkY=; b=BrEpnqdYIWHDNHREorsIX7Jxex6J572JrCO1+s+ERWf8c2qw103sVo3VPPI5y4r7JseF U265wjw/RBbkZ+3Jluck0PtpxDGlCqhwTP5TdTlFASypyeYx/pGWZt/cZnGc55CFQyPe O0BHUdQSBqhA7T4237XFyrrEYoSniFMTtjzL43YSN8MqT2sigrgAIkVOVZ+bZJ4cU67n 5mSowgrPG/JNoERY639GyG4ICHu9g6lRHncMS9rgTUvSKaPD16LVg3Inxj9Ln6DXPVgi UZPTPIOGAowmaIERFfDZjSoHK+/bF1MyAmEcd2NX+D5zZYrglo3UWitJBJn2od1UG7H8 Xg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2rytusnr23-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 Apr 2019 11:18:07 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3MBHocp148632; Mon, 22 Apr 2019 11:18:07 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2s0dwdng1w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 Apr 2019 11:18:07 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x3MBI6T8003330; Mon, 22 Apr 2019 11:18:06 GMT MIME-Version: 1.0 Message-ID: <5fd617f4-ce88-428c-90fa-ddbf2c0a49e0@default> Date: Mon, 22 Apr 2019 04:18:05 -0700 (PDT) From: Drew Adams References: <08ee0770-3f50-433e-955e-f8e13547ec21@default> <8f6f6e13-c150-a09f-06e5-aed3bfa21933@yandex.ru> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4834.0 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9234 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=18 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904220087 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9234 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=18 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904220087 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > How do you specify delimited_replacement_? >=20 > Is there a practical difference in practice between this and using a > regexp with word boundaries as FROM? A practical difference in practice? See `query-replace-regexp'. Why do you think it has argument DELIMITED? Same question for `replace-regexp', `replace-search' (with arg REGEXP-FLAG), `query-replace-regexp-eval', `perform-replace', and `tags-query-replace'. All of those allow a "from" arg that can be a regexp, and they all accept a DELIMITED arg as well. From unknown Sat Jun 21 12:35:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? Resent-From: npostavs@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Apr 2019 19:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35354 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams Cc: 35354@debbugs.gnu.org, Dmitry Gutov Received: via spool by 35354-submit@debbugs.gnu.org id=B35354.155656565921408 (code B ref 35354); Mon, 29 Apr 2019 19:21:01 +0000 Received: (at 35354) by debbugs.gnu.org; 29 Apr 2019 19:20:59 +0000 Received: from localhost ([127.0.0.1]:39760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLBpi-0005ZE-Pl for submit@debbugs.gnu.org; Mon, 29 Apr 2019 15:20:59 -0400 Received: from mail-qt1-f174.google.com ([209.85.160.174]:43079) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLBpg-0005Yx-6O for 35354@debbugs.gnu.org; Mon, 29 Apr 2019 15:20:57 -0400 Received: by mail-qt1-f174.google.com with SMTP id g4so13291048qtq.10 for <35354@debbugs.gnu.org>; Mon, 29 Apr 2019 12:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=/6qfFpcg3eKvTSQxdaPAE/hic0jl+CfiANzv4zfShfk=; b=sGhFwlhDhmp2XfYe0XRbec7G8R65vA0OTJt/OHfdYdGeDPEAaUkKL8nybdOM5e7W0S Z9eHrSz7Yl254/0BPACAeI2Gy5Rh7B6DanWKuJgi/jIxlZXeMgQCfa/lLJATdiEhNQON 9GcysvDAahn/F0TGNeCeJQby5yDBdPzmLyUmVqzEd0DAZZvxxMVMVBp7jGW/QDPbrl1A 9GnycU089/j5PpfWdxtpj9lSh3QBFDJ52iGwhAyvk6dJgoCZrol6uTAW4RSFEGlPfxex QRrbgxiq9ATofnk19KFGyBNYS7kq7LE7hXqAA0SaaH6ZfrLlqRtGcBt3KNy0B0tkggPA Jg6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=/6qfFpcg3eKvTSQxdaPAE/hic0jl+CfiANzv4zfShfk=; b=lz1a5yH+8ekRdppUOtIj7uqHOo4VkZwWkFAzASaMUW6w3rcrjI1TNndZgorSZ072UK dMdT0B8bucohb/HI4XMJj1WclIvll0n0FZQnV5lZJsLkk3HkiOoTumJPGjZwohyPmlYX D9pC6OQ1dIZr4ovbi2Tcdv7GlRZB+NCbyWWSZKD6dJVypCCCo78bdaOobJ9VAF3bcgQK PTZb3dPmdI8k9xLqBZupBVcH4bXJuVrq2T1FbkJ+6V8lw6ODUqI+VwSWHeK8KeWCYgah 7/mEAJtR56VHPDoRu4tsXs4BErCAaKZIJWTt/ynY3mIyA1gorAK8I5nutFiOms+C9vAx ZN+Q== X-Gm-Message-State: APjAAAXhciRgFLKJAkioz0toEhxoEErS7FDogYvOd2Nm7h+LwbqikX8I GgIAaGAD9RCrm18qFBLXYuEuIl4n X-Google-Smtp-Source: APXvYqxMCgSUVsNGGuzVvsASNgtXmPf1q5GzvAP1OnRKIWv6nI01TU7FqEI7VY02DmTSD+IHend5rQ== X-Received: by 2002:ac8:35aa:: with SMTP id k39mr38736609qtb.136.1556565650478; Mon, 29 Apr 2019 12:20:50 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.googlemail.com with ESMTPSA id 8sm20200466qtr.32.2019.04.29.12.20.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Apr 2019 12:20:49 -0700 (PDT) From: npostavs@gmail.com References: <08ee0770-3f50-433e-955e-f8e13547ec21@default> <8f6f6e13-c150-a09f-06e5-aed3bfa21933@yandex.ru> Date: Mon, 29 Apr 2019 15:20:43 -0400 In-Reply-To: (Drew Adams's message of "Sun, 21 Apr 2019 16:57:57 -0700 (PDT)") Message-ID: <85d0l4mxdg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> "Drew" == Drew Adams writes: >>>>> "Dmitry" == Dmitry Gutov writes: Drew> I was expecting that it would do all that the latter does plus Drew> more. Dmitry> I don't really understand how we can both expect FROM to be a Dmitry> regexp and have a separate argument DELIMITED. Drew> Why is that a problem? It seems to give some possibly unexpected results. For example, with this buffer contents: word fooooo bar word word foo bar word C-u C-M-% foo.*bar RET replaces only the "foo bar" on the second line, not the "fooooo bar" on the first line. That is to say, it's unclear (to me at least) what DELIMITED means for regexps which can match both word and non-word characters. Drew> How does a user use `dired-do[-find]-query-replace-regexp' to replace Drew> only word-delimited matches? Dmitry> How about \? Drew> How do you specify delimited _replacement_? I understand how the match can be delimited, but I don't understand how the replacement can be delimited. Dmitry> Is there a practical difference between this and Dmitry> using a regexp with word boundaries as FROM? Drew> See `query-replace-regexp'. Why do you think it has argument Drew> DELIMITED? I think it might be just to save the user from typing `\<' and `\>'. Did you have another reason in mind? If so, please say it plainly, thanks. From unknown Sat Jun 21 12:35:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? References: <08ee0770-3f50-433e-955e-f8e13547ec21@default> In-Reply-To: <08ee0770-3f50-433e-955e-f8e13547ec21@default> Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Apr 2019 02:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35354 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: npostavs@gmail.com Cc: 35354@debbugs.gnu.org, Dmitry Gutov Received: via spool by 35354-submit@debbugs.gnu.org id=B35354.155659135212550 (code B ref 35354); Tue, 30 Apr 2019 02:30:02 +0000 Received: (at 35354) by debbugs.gnu.org; 30 Apr 2019 02:29:12 +0000 Received: from localhost ([127.0.0.1]:40307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLIW8-0003GL-AS for submit@debbugs.gnu.org; Mon, 29 Apr 2019 22:29:12 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:52766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLIW5-0003G1-Ow for 35354@debbugs.gnu.org; Mon, 29 Apr 2019 22:29:10 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3U2Nt54088030; Tue, 30 Apr 2019 02:29:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=+fnv8NK8RhXzqXj/eWmpj7lqTUUvmTigeSmZHrqHyfI=; b=PtE5ATMBknhaO/J4b4JiWm3L7QFdL6NPuy6e+1xjeTmdxL/RQXAZ1P2dLefHe8H5rSVY 9dPhzyvsNPKjw3chjAxXtKsJLdNdt03e09doQwtJiiTQDHGKVaBjMIUjFvxQOAo83qZb VuI4eaXs5kAeOZAlhJeRopUWKWG/P7uzJFQC46818CS4ZFxW8NbcESJsUamNQbJ/hzyX NHy2A0wUTwHJfxzgACl+IBlIN/gV+Ni5j5lPkfDYlujDmSY6tiy/JiqqmJWBYYZh+QWF 7dJcrZDTTjtAxGlg7bLnA3D4wbkLQHrci/lR2wGYxNjzzEGEvSrLTS4GFkO3aPlts8iN xg== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2130.oracle.com with ESMTP id 2s4ckd9yk2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Apr 2019 02:29:03 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3U2S6hC080595; Tue, 30 Apr 2019 02:29:03 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 2s4yy99max-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Apr 2019 02:29:02 +0000 Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x3U2T1Gf028345; Tue, 30 Apr 2019 02:29:01 GMT MIME-Version: 1.0 Message-ID: Date: Mon, 29 Apr 2019 19:29:00 -0700 (PDT) From: Drew Adams X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4834.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9242 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=29 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904300015 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9242 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=29 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904300014 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > >>>>> "Drew" =3D=3D Drew Adams writes: > >>>>> "Dmitry" =3D=3D Dmitry Gutov writes: >=20 > Drew> I was expecting that it would do all that the latter does plus > Drew> more. >=20 > Dmitry> I don't really understand how we can both expect FROM to be a > Dmitry> regexp and have a separate argument DELIMITED. >=20 > Drew> Why is that a problem? >=20 > It seems to give some possibly unexpected results. For example, with > this buffer contents: >=20 > word fooooo bar word > word foo bar word >=20 > C-u C-M-% foo.*bar RET replaces only the "foo bar" on the second line, > not the "fooooo bar" on the first line. That is to say, it's unclear > (to me at least) what DELIMITED means for regexps which can match both > word and non-word characters. The doc says that only the start and end of the match need be word boundaries. So I guess that Dmitry is right that in the case where the input is interpreted as a regexp non-nil DELIMITED can only be a convenience for not having to use \v. I was thinking that DELIMITED acted as a second filter, requiring not only word boundaries at beginning and end but also that all chars matched be word-constituent. That's clearly not the case though, and the doc doesn't suggest it should be. Your example points out a regression. It was introduced in Emacs 24.5. In Emacs 20-23 (and probably pre-20) it acts correctly (per the doc): both lines of your example are treated the same: fooooo bar is matched. Starting with Emacs 24.5 the doc is no longer respected. Was the change intentional, and someone forgot to update the doc? I doubt it. This change/regression coincides with the introduction of `replace-search' and `replace-highlight' and the use of `isearch-word', which later became ` isearch-regexp-function'. Before that, `perform-replace' just did this: (if delimited-flag =09(setq search-function 're-search-forward =09 search-string (concat "\\b" =09=09=09=09 (if regexp-flag from-string =09=09=09=09 (regexp-quote from-string)) =09=09=09=09 "\\b"))) > I understand how the match can be delimited, but I don't understand how > the replacement can be delimited. Right. I was wrongly thinking that non-nil DELIMITED meant that the otherwise-matches were in addition filtered by also requiring their chars to be word constituents. > Dmitry> Is there a practical difference between this and > Dmitry> using a regexp with word boundaries as FROM? >=20 > Drew> See `query-replace-regexp'. Why do you think it has argument > Drew> DELIMITED? >=20 > I think it might be just to save the user from typing `\<' and `\>'. > Did you have another reason in mind? If so, please say it plainly, > thanks. I think you must be right. Clearly for the `query-replace' case it is useful as such. For the `query-replace-regexp' case it is not as useful. But even in that case it can be useful in this sense: You can _reuse_ a regexp in a different search, and just use a prefix arg to temporarily restrict the matches to having word boundaries - no need to edit the regexp. Not a big win, granted, but if you need to go back and forth then it could be a convenience. The point of this bug report is that if we replace the command used by `Q' with another then we should maybe have it do at least as much. DELIMITED has been in Emacs for the functions that use it (in replace.el) for a very long time. From unknown Sat Jun 21 12:35:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jan 2022 15:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35354 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: npostavs@gmail.com Cc: 35354@debbugs.gnu.org, Drew Adams , Dmitry Gutov Received: via spool by 35354-submit@debbugs.gnu.org id=B35354.16428653946943 (code B ref 35354); Sat, 22 Jan 2022 15:30:01 +0000 Received: (at 35354) by debbugs.gnu.org; 22 Jan 2022 15:29:54 +0000 Received: from localhost ([127.0.0.1]:37642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBIKw-0001nv-NE for submit@debbugs.gnu.org; Sat, 22 Jan 2022 10:29:54 -0500 Received: from quimby.gnus.org ([95.216.78.240]:48452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBIKu-0001nc-JA for 35354@debbugs.gnu.org; Sat, 22 Jan 2022 10:29:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1gykiyITX55NilGl41LepKsuZ8xfRCSmR86417SDnpM=; b=MJK7SKKdQFjUVgrVHzWFeCz5aZ b1egS67giK2xvtB6pzy013fEc++1Nt5VKoaeFqC/4UI3iJAeux5BAlSqu2x5GBqw4PecRAyBlbu3L H+KNHjhyXm8xQZF9zd7YEiVNOdZKTBjcWJNjWHrOASsbWyz3vzh0v5uJ6cPP5mNaaeC4=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBIKl-0007Vq-EF; Sat, 22 Jan 2022 16:29:45 +0100 From: Lars Ingebrigtsen References: <08ee0770-3f50-433e-955e-f8e13547ec21@default> <8f6f6e13-c150-a09f-06e5-aed3bfa21933@yandex.ru> <85d0l4mxdg.fsf@gmail.com> X-Now-Playing: The Waitresses's _Wasn't Tomorrow Wonderful?_: "It's My Car" Date: Sat, 22 Jan 2022 16:29:41 +0100 In-Reply-To: <85d0l4mxdg.fsf@gmail.com> (npostavs@gmail.com's message of "Mon, 29 Apr 2019 15:20:43 -0400") Message-ID: <8735lfdc0q.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: npostavs@gmail.com writes: > I think it might be just to save the user from typing `\<' and `\>'. Seems like that to me, too, so I don't think there's anything to do here, and I'm closing this bug report. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) npostavs@gmail.com writes: > I think it might be just to save the user from typing `\<' and `\>'. Seems like that to me, too, so I don't think there's anything to do here, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 22 10:29:59 2022 Received: (at control) by debbugs.gnu.org; 22 Jan 2022 15:29:59 +0000 Received: from localhost ([127.0.0.1]:37645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBIL0-0001oC-To for submit@debbugs.gnu.org; Sat, 22 Jan 2022 10:29:59 -0500 Received: from quimby.gnus.org ([95.216.78.240]:48470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBIKy-0001nj-RU for control@debbugs.gnu.org; Sat, 22 Jan 2022 10:29:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CX0r2x0/ZZihPcthte7yjqIwFDYunF3VcAyMJOypN4k=; b=KW6B4yLf0ELF0Bs66I7JviZBwV /+83NYOCt51IYuln9sFiz7Xnq7O3W01QYDrH5De1UzVoj5kEZtu9BuWPPeH+32Tj/aw7tZ/WsLE0+ R1KQXOm+N4ADPFYDqANEnBHvWX12YYplGVFK7m05N+LcRLTKVmxJs+jERZTGBF9ZfF5s=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBIKq-0007WB-Vm for control@debbugs.gnu.org; Sat, 22 Jan 2022 16:29:51 +0100 Date: Sat, 22 Jan 2022 16:29:48 +0100 Message-Id: <871r0zdc0j.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #35354 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 35354 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 35354 quit From unknown Sat Jun 21 12:35:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jan 2022 16:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35354 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen , "npostavs@gmail.com" Cc: "35354@debbugs.gnu.org" <35354@debbugs.gnu.org>, Dmitry Gutov Received: via spool by 35354-submit@debbugs.gnu.org id=B35354.164286803428950 (code B ref 35354); Sat, 22 Jan 2022 16:14:01 +0000 Received: (at 35354) by debbugs.gnu.org; 22 Jan 2022 16:13:54 +0000 Received: from localhost ([127.0.0.1]:37724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBJ1W-0007Ws-99 for submit@debbugs.gnu.org; Sat, 22 Jan 2022 11:13:54 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:38506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBJ1T-0007Wj-Qr for 35354@debbugs.gnu.org; Sat, 22 Jan 2022 11:13:52 -0500 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20MF2pED023886; Sat, 22 Jan 2022 16:13:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=0Em4Xshp6YhYdZnO50Kw9aWPET567uQd7ZpBqB7Bjls=; b=p2e5cblQBsJ1P0tshPb8vLVNVNIb0tAUdIAUdS8mGX9lnb4Oh8VubrQTcqvM8ja0hqBv fHAdl71sg9lH5ZjmnqJ+8fQnbPuD5NuRnhfUM/LXYctkY+07EQZO5trxl/L03/MMlsuz P2PZNQrBP4gAwhylLJ1iEI6mVCZ9hId4GFQn8vA9GxNDrNEVjxyfPLsVV+u1v2JcTSjx Y0NZei3PexXWKdJl4rXdiqJMlFvJDW3IOQcBuhPRavsu4V5O6s46qR2y1bRhaH49vYWq 1E8/3X/YxsXhW9rMLnY3arsz1pAk10Ta6xciIph3ZL6EmwGbGKkYxCQMTfZ037ZdYNAe EQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3dr8q38v4c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 22 Jan 2022 16:13:51 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 20MGAmm8001112; Sat, 22 Jan 2022 16:13:50 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam08lp2172.outbound.protection.outlook.com [104.47.73.172]) by userp3030.oracle.com with ESMTP id 3dr71ssq4w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 22 Jan 2022 16:13:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cDmuT6H/Aj+fYtBHQ3KBhetP3Cl/gZIbGOM9kABZdSGAZzr8ui9FsirXhrXdypzCDC81VYzw06ocar3VkJG81CmUC3GsMwBtHroJqksUECA+7X3dmELata5aeMBAAYtgxqUidHlzA2ITjkVV597PKxHPwWqmKJnsVQHONKoueIdE3qTr9VeRu9zcnagQdJMv6i0fhJp/QVeTD+58JKgSyal0qTmX+F/eaUZyi6+0O+phvpZbZ/i6j/xz2+svok5vh6qg8PBCJ9Dw/pfgoGDKNT7RBCsG9kMw0icEBOcEyBMpFltEUvO+8098DgAlxLecxuy4ouoVaZmD7yE5irT8fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0Em4Xshp6YhYdZnO50Kw9aWPET567uQd7ZpBqB7Bjls=; b=IBzU2ynDRsM4UOJ1fqNnGMHsR1ohYWFecaadBLs9D6QKOO14EKxxmHKmcuwDcTQqKhDSgos4Zgz2VR9ZbXasjbuZCKQWKNWuem3XqvXV4ILv6lQLt5YcFzrFamrn4/3ajH28NyZNrZS5C7wp7skqwOOgnc5TR8L0HCH3mTvhU2YgPKdCVrrYwuBy8C1PYOOyw9tyHypuLH8aGj+/7FGDCbzBCmImbdt9NlwmxplJU2FLR1vqxqd6uX9C62RFX129Uw5pdby+as8OQskpQEFXrrjTvsv3xTSNTCup7qtj64IysspnCHm0Hte46dTwjGnzUDJzmcPFLPPq+Oyxa2LksQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0Em4Xshp6YhYdZnO50Kw9aWPET567uQd7ZpBqB7Bjls=; b=QRdtjgk3Aao816OImU9x1D/DeOeV0G1G/WxCQmYraLC1mOm5ogNseu9WwKjESHnc0QJSxKVLplkGAVdTFgrJSxXFWpkGgC3nJd0gXv2IADk8WAqFtGnH/UPfqpo6c7uxMFCWKSf7jU42XLcs+31KQJrOVJplf799JoxassBZBdo= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BN6PR10MB1475.namprd10.prod.outlook.com (2603:10b6:404:44::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7; Sat, 22 Jan 2022 16:13:47 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3%8]) with mapi id 15.20.4909.014; Sat, 22 Jan 2022 16:13:47 +0000 From: Drew Adams Thread-Topic: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? Thread-Index: AQHYD6To6KALuBCSmEKJkrjq9xYXdKxvNKyQ Date: Sat, 22 Jan 2022 16:13:47 +0000 Message-ID: References: <08ee0770-3f50-433e-955e-f8e13547ec21@default> <8f6f6e13-c150-a09f-06e5-aed3bfa21933@yandex.ru> <85d0l4mxdg.fsf@gmail.com> <8735lfdc0q.fsf@gnus.org> In-Reply-To: <8735lfdc0q.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f8e2c9c0-0303-45fa-1ecb-08d9ddc22b8e x-ms-traffictypediagnostic: BN6PR10MB1475:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qig9nmmBGUndhDDDv6SYdLoDpJ4/eq2Rc/AWKC7niECsGrOWLIOTu6T3NiH+gbWcTg1sQXn8RZbz9/L/IUu+siOfiMlOpxLxDUMaTOMNLHU4nIPtcSv4RrvkBh/Qz8WKVUoTrBZFofdNOr4jx+JDdnfABID6Q0n8j/3MjoqP53hQdjRnutgKiPLu8mih+72YlvQlKdXWwUvDAP1T9D7ekmetuJsevOboa+OpO0FztLKWlu73Vqaps2iTA/7bw8jw5ay9w14upWxyT79sHOlSMM2gWvKvEgo1so1hH5srIwShPl7/1jKxSbrfzSVRx6U/KaP+IkSG/N1Yy1SYH0ndg32oPvsyh3w2+thsmBIr3+W/P7zc/WLMvd1YNtkxsvGhL3B/yxp9X9HLovHVH0CiUeBT+PEzNU7MSJxtFsXv6z23IEKaCj428p6dLBwNiNSZEKmjqIk5m2ePTKG5y/7cufCXINy1nApT4LBJdq7+ylfpVLxWpGxUMtIOYCgo1wNURFfIHPRc+FKyl9Qj0F8mHienyXAyPkt4bTkJfTd5S1exmNZL9c24fa9MBWWhtTuaBWQ+bQDhFOtNkLaOvUFxj41Q1mM7eX7Mh1tdNXXNTB8qxSCaBxflKtTCkUbY71ylTps0vqWk9R0QVSTQt65V8bpKHELbuNG+woFzC+0Ty9pWfO/vMAzibNoFNvmji9n/gqytN/ZwQV9u7p+VQyxtJGTsIeYsTKOar2v5Y0W1YXs= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(7696005)(71200400001)(2906002)(6506007)(38100700002)(44832011)(54906003)(5660300002)(316002)(8936002)(83380400001)(86362001)(110136005)(52536014)(508600001)(55016003)(66946007)(66556008)(64756008)(4326008)(8676002)(76116006)(66476007)(122000001)(33656002)(26005)(66446008)(38070700005)(186003)(9686003)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: Em60hY0SAoFAenjblQQNGmbhMqQPEmHtCLf9ClIp4GbN2AU1RTBqr2neQwIHd9xW5w7cyciQ4XACXqeiGPtItI/m+Y9jluqIaPWitkRweV1g0IXVy00cTTmenO72EhZvuungcmiD7ycP0WsPDv6aGMhQxDqvW1sRwWED0nwnDldN3xfx1hfMT/kv/kQQ2H+DvkMTKiarbXV/GpQr4MvthX6Z8cey+89Dl/1tm5v7RLmG0C3pDhpFhSssyoQ5dOeTuJEdv/zi/A2kKtkVeor2hSvJzHG46Woo9dtO4lDKdGO5dqzmZAKA+2vRYvtD8yDBW7dP/jIvryklf36d9LXKIYJNZxj1iHpBEnM7ROw5b2msy9kcaw1Sc/AEX+SefKCF/NALmuvxplrP8I7a2yFUhZyFWwX9uAmp9wqyZhDO0OzdR55PhT8Ua2l9Yn7OZNlMj/RCmMEqOKV+8QMwNUj4p2LThL9S7n7bYLV8dVxUOb6MXjme+gAxPtZp0oyhdpyxfhLQcsLjN9myX6IISxwqmbtvZ9AUxMxCStBmz8tyVyBcCBmlbQoBZPHYmkLwPpxMYZXbgoU5j9ws0HUjwdG/CFVJiwqUJIeAIN53ncYaGNDp1uJYQTXNnCtTd/pqg9jQt1bjG4NquVXQkw3SFSiQjaRaTVbUSmXIEbetj02+CawIjRLcnoUU1JvL3ZAR886CBWNZK5o3PWzpcvCZXqPeiu+R6SVnrctySVch3yGYCqT5J2E8cX6hK7jssxLc6A23eGRgpLccPdCzC2H1vGnBPa2o9RHJmIwAermlH8J2CghjSnZZWUsAgj1pmcXjNGx3DEnAfSlO0cg8+ND0iVsbcMjdsJ4lQZ+Bc5fLFmZr8AAdWCCxj8WTZbCk1BqXJT7EUYTP43GIEG/WXiA32N+pNPgchriCoyAezCrLFnxkIGWtZC5gQbpT1KaA79OayNUMnQiVfCYy5qgs+fwuwtlk5V4KSMwANjR99tcRj1m/POc8eRpgqko5IffQsOIkjOdbjqQbA3uJlTtFrY+9JwrXihs/0yMqRpSNztf1QWO/c9AnJ7i3c59rQPHJBSKgeLJsgFeU4974JPKf2nVWi+leihFAG38o0HTu4gs8S2YCXTrd6Va1xt7k6PiT67Jty2AZIpt44GMj2hh2br7JekKX6bYyMDRUQK2TbSmy3U2Qwifpan/TE19WyPkPyrNktM1rTERBABon/2MmkNZyxiocSqMDbIL5B8i54lHTevGIfiyC6XwTIpKed2SP8RhjMz3EcSWt8nhN8xj5lj5BaO6jRMgvw5lOOvDnHw30yidvTvlIxjZEXJAtIa984hmmPMxHTQAv0qRkJVG0eiZIT5inWFI6QJddMjiaBY58NbcY0WiwW8a5Sw0Pa1AY4ywE8eTeKk4rjhEDngd4vx6qKCfE3EDJEIttz2uYDz5RJB32Yjjftie65z4+zKYngiARUxfVlsX95J/JRxgB6EGZUWdVXnZPoc8+dsnxIOxC1F2dM257vHBjUBDNvFFeiWD3XgJTXKNShkAE6nrKDgRwuYg8JnmKNWyplNtFhP/fpVli5Q6gDOKD6iGdFN8x7x4vDAjcKs4w2J23l0l3LTtIuH3JRw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8e2c9c0-0303-45fa-1ecb-08d9ddc22b8e X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jan 2022 16:13:47.2513 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZD6SZzr9+b1T0LDg+ZTiKfnXyVO43CQoPgFmaIRzREw4XQOSyTBZLortH3zm1KuPd0hxIj7w0bRQJ7MyfvmrKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR10MB1475 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10234 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxlogscore=999 adultscore=0 spamscore=0 bulkscore=0 mlxscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201220116 X-Proofpoint-ORIG-GUID: XwwVcYzsr92VfnIIjeba2E-W0xGvQTm2 X-Proofpoint-GUID: XwwVcYzsr92VfnIIjeba2E-W0xGvQTm2 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > > I think it might be just to save the user > > from typing `\<' and `\>'. >=20 > Seems like that to me, too, so I don't think there's > anything to do here, and I'm closing this bug report. So all of these points are ignored? 1. "Your example points out a regression. It was introduced in Emacs 24.5. In Emacs 20-23 (and probably pre-20) it acts correctly (per the doc): both lines of your example are treated the same: fooooo bar is matched. Starting with Emacs 24.5 the doc is no longer respected." 2. "for the `query-replace' case it is useful as such. For the `query-replace-regexp' case it is not as useful. But even in that case it can be useful in this sense: You can _reuse_ a regexp in a different search, and just use a prefix arg to temporarily restrict the matches to having word boundaries - no need to edit the regexp. Not a big win, granted, but if you need to go back and forth then it could be a convenience." 3. "The point of this bug report is that if we replace the command used by `Q' with another then we should maybe have it do at least as much. DELIMITED has been in Emacs for the functions that use it (in replace.el) for a very long time." 4. Everything said about `dired-do-query-replace-regexp' and `dired-do-find-regexp-and-replace'.