From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29969"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "35354@debbugs.gnu.org" <35354@debbugs.gnu.org>, Dmitry Gutov To: Lars Ingebrigtsen , "npostavs@gmail.com" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 22 17:14:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBJ1x-0007g1-N8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jan 2022 17:14:21 +0100 Original-Received: from localhost ([::1]:46542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBJ1w-0005ZB-KV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jan 2022 11:14:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBJ1m-0005Yn-OE for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 11:14:10 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBJ1d-0002oL-SW for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 11:14:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBJ1d-0007XQ-Mr for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 11:14:01 -0500 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 35354-submit@debbugs.gnu.org id=B35354.164286803428950 (code B ref 35354); Sat, 22 Jan 2022 16:14:01 +0000 Original-Received: (at 35354) by debbugs.gnu.org; 22 Jan 2022 16:13:54 +0000 Original-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 Original-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 Original-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== Original-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 Original-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 Original-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= Original-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 Original-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 Thread-Topic: bug#35354: 26.2; `dired-do-query-replace-regexp': How to replace only word-delimited matches? Thread-Index: AQHYD6To6KALuBCSmEKJkrjq9xYXdKxvNKyQ In-Reply-To: <8735lfdc0q.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US 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+R6SVnrctySVch3yGYCqT5J2E8cX6hK7jssx Lc6A23eGRgpLccPdCzC2H1vGnBPa2o9RHJmIwAermlH8J2CghjSnZZWUsAgj1pmcXjNGx3DEnAfSlO0cg8+ND0iVsbcMjdsJ4l 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:224845 Archived-At: > > 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'.