GNU bug report logs - #35354
26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Drew Adams <drew.adams@HIDDEN>; dated Sun, 21 Apr 2019 03:35:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 35354 <at> debbugs.gnu.org:


Received: (at 35354) by debbugs.gnu.org; 30 Apr 2019 02:29:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 29 22:29:12 2019
Received: from localhost ([127.0.0.1]:40307 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hLIW8-0003GL-AS
	for submit <at> 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 <drew.adams@HIDDEN>) id 1hLIW5-0003G1-Ow
 for 35354 <at> 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: <ba5742e5-410e-467f-9d17-d3fc690827e8@default>
Date: Mon, 29 Apr 2019 19:29:00 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: npostavs@HIDDEN
Subject: RE: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace
 only word-delimited matches?
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-Debbugs-Envelope-To: 35354
Cc: 35354 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> >>>>> "Drew" =3D=3D Drew Adams <drew.adams@HIDDEN> writes:
> >>>>> "Dmitry" =3D=3D Dmitry Gutov <dgutov@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35354; Package emacs. Full text available.

Message received at 35354 <at> debbugs.gnu.org:


Received: (at 35354) by debbugs.gnu.org; 29 Apr 2019 19:20:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 29 15:20:59 2019
Received: from localhost ([127.0.0.1]:39760 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hLBpi-0005ZE-Pl
	for submit <at> 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 <npostavs@HIDDEN>) id 1hLBpg-0005Yx-6O
 for 35354 <at> 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 <at> 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@HIDDEN
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#35354: 26.2;
 `dired-do-query-replace-regexp': How to replace only word-delimited
 matches?
References: <08ee0770-3f50-433e-955e-f8e13547ec21@default>
 <8f6f6e13-c150-a09f-06e5-aed3bfa21933@HIDDEN>
 <a6b4cae3-c089-4bad-b41f-51d3336d1bdb@default>
Date: Mon, 29 Apr 2019 15:20:43 -0400
In-Reply-To: <a6b4cae3-c089-4bad-b41f-51d3336d1bdb@default> (Drew Adams's
 message of "Sun, 21 Apr 2019 16:57:57 -0700 (PDT)")
Message-ID: <85d0l4mxdg.fsf@HIDDEN>
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-Debbugs-Envelope-To: 35354
Cc: 35354 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> "Drew" == Drew Adams <drew.adams@HIDDEN> writes:
>>>>> "Dmitry" == Dmitry Gutov <dgutov@HIDDEN> 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 \<input\>?

    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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35354; Package emacs. Full text available.

Message received at 35354 <at> debbugs.gnu.org:


Received: (at 35354) by debbugs.gnu.org; 22 Apr 2019 11:18:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 22 07:18:16 2019
Received: from localhost ([127.0.0.1]:49928 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hIWxk-0001jB-9A
	for submit <at> 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 <drew.adams@HIDDEN>) id 1hIWxh-0001ix-NM
 for 35354 <at> 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 <drew.adams@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>, 35354 <at> debbugs.gnu.org
Subject: RE: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace
 only word-delimited matches?
References: <08ee0770-3f50-433e-955e-f8e13547ec21@default>
 <8f6f6e13-c150-a09f-06e5-aed3bfa21933@HIDDEN>
 <a6b4cae3-c089-4bad-b41f-51d3336d1bdb@default>
 <d18650cb-3f4d-a2bc-53cd-2b8ea1d383cd@HIDDEN>
In-Reply-To: <d18650cb-3f4d-a2bc-53cd-2b8ea1d383cd@HIDDEN>
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-Debbugs-Envelope-To: 35354
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35354; Package emacs. Full text available.

Message received at 35354 <at> debbugs.gnu.org:


Received: (at 35354) by debbugs.gnu.org; 22 Apr 2019 09:24:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 22 05:24:33 2019
Received: from localhost ([127.0.0.1]:49687 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hIVBh-0004zH-Kh
	for submit <at> 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 <raaahh@HIDDEN>) id 1hIVBf-0004z1-Ha
 for 35354 <at> 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 <at> 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 <dgutov@HIDDEN>
Subject: Re: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace
 only word-delimited matches?
To: Drew Adams <drew.adams@HIDDEN>, 35354 <at> debbugs.gnu.org
References: <08ee0770-3f50-433e-955e-f8e13547ec21@default>
 <8f6f6e13-c150-a09f-06e5-aed3bfa21933@HIDDEN>
 <a6b4cae3-c089-4bad-b41f-51d3336d1bdb@default>
Message-ID: <d18650cb-3f4d-a2bc-53cd-2b8ea1d383cd@HIDDEN>
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: <a6b4cae3-c089-4bad-b41f-51d3336d1bdb@default>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 35354
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35354; Package emacs. Full text available.

Message received at 35354 <at> debbugs.gnu.org:


Received: (at 35354) by debbugs.gnu.org; 21 Apr 2019 23:58:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 21 19:58:09 2019
Received: from localhost ([127.0.0.1]:49367 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hIMLZ-00032c-CE
	for submit <at> 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 <drew.adams@HIDDEN>) id 1hIMLX-00032I-3K
 for 35354 <at> 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: <a6b4cae3-c089-4bad-b41f-51d3336d1bdb@default>
Date: Sun, 21 Apr 2019 16:57:57 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>, 35354 <at> debbugs.gnu.org
Subject: RE: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace
 only word-delimited matches?
References: <08ee0770-3f50-433e-955e-f8e13547ec21@default>
 <8f6f6e13-c150-a09f-06e5-aed3bfa21933@HIDDEN>
In-Reply-To: <8f6f6e13-c150-a09f-06e5-aed3bfa21933@HIDDEN>
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-Debbugs-Envelope-To: 35354
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 \<input\>?

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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35354; Package emacs. Full text available.

Message received at 35354 <at> debbugs.gnu.org:


Received: (at 35354) by debbugs.gnu.org; 21 Apr 2019 23:08:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 21 19:08:39 2019
Received: from localhost ([127.0.0.1]:49305 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hILZf-0001tj-KF
	for submit <at> 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 <raaahh@HIDDEN>) id 1hILZe-0001tV-1a
 for 35354 <at> 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 <at> 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)
Subject: Re: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace
 only word-delimited matches?
To: Drew Adams <drew.adams@HIDDEN>, 35354 <at> debbugs.gnu.org
References: <08ee0770-3f50-433e-955e-f8e13547ec21@default>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <8f6f6e13-c150-a09f-06e5-aed3bfa21933@HIDDEN>
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-Debbugs-Envelope-To: 35354
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 \<input\>?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35354; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Apr 2019 03:34:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 20 23:34:10 2019
Received: from localhost ([127.0.0.1]:47251 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hI3F4-0005tS-A1
	for submit <at> 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 <drew.adams@HIDDEN>) id 1hI3F1-0005tE-Sp
 for submit <at> 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 <drew.adams@HIDDEN>)
 id 1hI3Es-0008LX-37
 for submit <at> 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 <drew.adams@HIDDEN>) id 1hI3Er-0002Oy-3P
 for bug-gnu-emacs@HIDDEN; 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 <drew.adams@HIDDEN>) id 1hI33k-0003jG-3n
 for bug-gnu-emacs@HIDDEN; 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 <drew.adams@HIDDEN>)
 id 1hI33j-0003if-TO
 for bug-gnu-emacs@HIDDEN; 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 <bug-gnu-emacs@HIDDEN>; 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 <bug-gnu-emacs@HIDDEN>; 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 <bug-gnu-emacs@HIDDEN>; 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 <bug-gnu-emacs@HIDDEN>; 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 <bug-gnu-emacs@HIDDEN>; 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 <drew.adams@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.2; `dired-do-query-replace-regexp': How to replace only
 word-delimited matches?
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-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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''




Acknowledgement sent to Drew Adams <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#35354; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.