From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.help Subject: RE: Wdired doesn't like re-search-forward Date: Sat, 19 Jun 2021 17:41:02 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12251"; mail-complaints-to="usenet@ciao.gmane.io" To: Eduardo Ochs , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 19 19:57:46 2021 Return-path: Envelope-to: geh-help-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 1lufE1-0002yK-Ja for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 19 Jun 2021 19:57:45 +0200 Original-Received: from localhost ([::1]:38616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lufE0-000441-Ie for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 19 Jun 2021 13:57:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lufCY-0002Dj-Vn for help-gnu-emacs@gnu.org; Sat, 19 Jun 2021 13:56:15 -0400 Original-Received: from mail-oln040092066072.outbound.protection.outlook.com ([40.92.66.72]:46306 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lufCU-0006ea-Fq for help-gnu-emacs@gnu.org; Sat, 19 Jun 2021 13:56:14 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bRNvm1OUSLbI149johof+c6/s6gKOIPhi61fqejXDvJK2zMwTjn2kO4hgguP0JwLwbImpt76M71n3OS0buXXXgLiJrhyhaoH7CiK7++3AAvKs3sa5fx1ciaY8lCp7FTirDTxPZ70zLDt4RN/DCg604y1ZVI2f/7BXGjEtiPG3YILsq5cd2ATTbNtqb9ZCJu+yvdYWJRa/afxrbVSwgdmzJsttRX/GpebzdtpXWtyR7lzkuiW4xguwHO5LovCasmYvv2JiHEncE31+A3AwGPDtcuHOcZb8hLyyMmBoCT1iHPeXDwHTDgoCRZOte1rusGM2OR4vjol71QtvD84wWKmSg== 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-SenderADCheck; bh=tbWFs+QWzAr1HGYc2dui7gAtPVhtZtq3fBTNLnR6wMc=; b=jik/HL9qgrqXKoEMn4YNCjZWVLwFCpeFQwXZBkGZz22kwVvzQAm/y3y17if+WjQFjKOKFoFiHlYaE2cXJZO/T/C3lAM7fDGxd4XaOgBP7tzku7jZwp3JLEqOpYkDpZR//LBCtgQe/jWPeI5BNNgqgCXNo2NnRNtWu8Mas85cAJQdloK8WNUvXdYt+smE4gCHxOShSmR6aJ+85iwyfT2mo+ai+pNu/QDQcVpwbl5p+svUyDnFefjROx8e/19ohuNGUoLAfhiEiG8Nypvn9DvaVeWCFbEVeU9DJ7hrw/fstupN5hIY+zzE4ubY01fguJ5z1oUmVp09MGEy29H/GmhzfA== 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=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tbWFs+QWzAr1HGYc2dui7gAtPVhtZtq3fBTNLnR6wMc=; b=TEOsnbMyL3clKXr+0xvBNeDu/zQiWV6+Bbv4206D2vzqtSMQ2Xdgrpj/kTPToP2TgqvW1rEkbw3dvZS+rv7w2aRe7iL4mr0xpbX8mfE1KOAUbdQ9QVLg0QfLjeTOJmdEkglPctxUwglqn8kUnCWgpGnuVtwZWyZicFBg5xuebn+f5kp9bwSMphuoKEZqsyZ+EdfOAmt5Ev4oLcRR7q2vIKJZBn/jV6Py/wBNq0jP3+HNIQH03gZ9HOXsh7rQ9Qgdx/oF9DziQGTArBtq7NQkCFTXoS722brmR4tU7O7wfpoI+eASYF/mQ6Wumo71G2h8rViAUNX00IyrQMryz6GxTw== Original-Received: from HE1EUR01FT010.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::41) by HE1EUR01HT114.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::358) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16; Sat, 19 Jun 2021 17:41:03 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e18::51) by HE1EUR01FT010.mail.protection.outlook.com (2a01:111:e400:7e18::86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Sat, 19 Jun 2021 17:41:03 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::51ca:cb30:2619:5219]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::51ca:cb30:2619:5219%7]) with mapi id 15.20.4242.023; Sat, 19 Jun 2021 17:41:03 +0000 Thread-Topic: Wdired doesn't like re-search-forward Thread-Index: AQHXZRG8xSVbtDq2EUCAvfRok4+5wasbmmfp In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE x-incomingtopheadermarker: OriginalChecksum:5963C4FA2AC5B9B38D0BAF5D5DEB91D34CC41A4B8F6939772786C104447A8775; UpperCasedChecksum:A97BF8BABF04E4A615821D920FFEB61CA6B5FEC7EA1026AC5E2EFB88AC29CFAF; SizeAsReceived:6881; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [4hZrpaGdtPI7eI07YRG8BtD1myy7fKoK] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 547b6825-5c34-4ec8-7315-08d93349689d x-ms-traffictypediagnostic: HE1EUR01HT114: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TA50Py/LsIjKMC0joyycVSdp8KsUV+f7cT58KIxFTrbun8vce/gKJJoU1vUrevkWUST6h+t5cXdHq1CQuQBTlGVU8zV57jR/xovhGFsryylzCp7w14ZKNTqVqzAMnVQTmKycZro0wrWcjeIiar3Cr5Ninpv2EGpACQCl12S9LNWSJMsgKF65kU5imLZWJBJ3xWnvpKzhwFmevWOGjDFagzJk++gRuAluYSV276N61RKCK54v7/wXTYmjFoIyrRgf4/d3i5BbBFtqx6w1k+GjWP75JLXQ8KRQx2dQsM/C6UD8GhG1zoE3lEZ8gV8+7UCADHeyyZt4EdJOn3thOBkxQRNhrJKxf1LqJsmDQLCiDwg6m/UghbXhg3/eNVTJxOEsCHcMYUOP0zH8r+cXlqV66h7duyDgdLDvLZyJMAONjaYMtnQi/txdeD6icykzmbJ2o5Ib3rjXRQS/AOES+rJlAw== x-ms-exchange-antispam-messagedata: 9ZILEP8uBAFB1yCskgD6gRcM+I+dePdfHp25iVZHLf1kbzNB2rvw/EGSnshBT6YZaZUpfvrLB7gk5+nJKHFLL3Xw89OYsi0hnqi4SHC3GxL243uXh0r9s+E3nttFxTxThsf4zuG3lUaraL8YvsmAmg== x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT010.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 547b6825-5c34-4ec8-7315-08d93349689d X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2021 17:41:02.9527 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT114 Received-SPF: pass client-ip=40.92.66.72; envelope-from=arthur.miller@live.com; helo=EUR01-VE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131029 Archived-At: I am not sure, but when you use re-search-forward, be sure that you are not= matchning some of non-writable text in dired, so you don't get error when = you try to replace read-only text. Even in wdired mode, certain parts of text remain read-only. Don't know if that is the case, but something to be aware of. -------- Originalmeddelande -------- Fr=E5n: Eduardo Ochs Datum: 2021-06-19 15:48 (GMT+01:00) Till: help-gnu-emacs =C4mne: Wdired doesn't like re-search-forward Hello list, I have a function called `bsl' that converts some backslash sequences in the region to their corresponding characters, and also converts character sequences like "#U00e3" to the character "\xe3" - an "a" with a tilde - to deal with a quirk in unzip, that sometimes creates files with these "#Uhhhh"s in their names. This `bsl' is implemented with a `(while (re-search-forward ...) replace-match ...)'. In Emacs 27 I can use `M-x bsl' to modify filenames in wdired, and everything works. In Emacs 28 if I modify filenames with `M-x bsl' and then exit wdired my changes are discarded, and I get this message: (No changes to be performed) Is this related to the recent (?) changes in wdired? I noticed that now letters are bound to `wdired--self-insert' instead of `self-insert-command' in wdired mode... is there something that I need to do to make wdired recognize changes that were not done by `wdired--self-insert'? And, more important of all: should I prepare a minimal way to reproduce the problem and submit a proper bug report? Thanks! Eduardo Ochs http://angg.twu.net/#eev