From unknown Mon Jun 23 23:49:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17541 <17541@debbugs.gnu.org> To: bug#17541 <17541@debbugs.gnu.org> Subject: Status: 24.3; wdired do not allow to edit first char in filenames Reply-To: bug#17541 <17541@debbugs.gnu.org> Date: Tue, 24 Jun 2025 06:49:34 +0000 retitle 17541 24.3; wdired do not allow to edit first char in filenames reassign 17541 emacs submitter 17541 JuanLeon Lahoz severity 17541 normal tag 17541 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 09:45:39 2014 Received: (at submit) by debbugs.gnu.org; 21 May 2014 13:45:40 +0000 Received: from localhost ([127.0.0.1]:55114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn6pt-0002iX-2m for submit@debbugs.gnu.org; Wed, 21 May 2014 09:45:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35934) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn6po-0002iA-10 for submit@debbugs.gnu.org; Wed, 21 May 2014 09:45:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wn6ph-0006GA-Sh for submit@debbugs.gnu.org; Wed, 21 May 2014 09:45:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn6ph-0006G6-PT for submit@debbugs.gnu.org; Wed, 21 May 2014 09:45:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn6pg-0005oj-Pq for bug-gnu-emacs@gnu.org; Wed, 21 May 2014 09:45:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wn6pf-0006Fr-OI for bug-gnu-emacs@gnu.org; Wed, 21 May 2014 09:45:24 -0400 Received: from mail-qc0-x22a.google.com ([2607:f8b0:400d:c01::22a]:34960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn6pf-0006Fk-Jl for bug-gnu-emacs@gnu.org; Wed, 21 May 2014 09:45:23 -0400 Received: by mail-qc0-f170.google.com with SMTP id i8so3291771qcq.1 for ; Wed, 21 May 2014 06:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yZWywGtx7TCRwikgzszHDoikN8EzDN8pAMFlfDJLjuw=; b=fXZ3PH3XunbKFX+K5sboTZB9qWUgLrMTEBVx7mUQqaInZuMOsL85DyYv9WO93InbsE qpfv917pdG69aQNmow4d8wURCq6RxvMVYueHXqLLsU9Dqp94OCODVMsVJ6WGTDFxv3Jm 2OPEcK9pAMnO0ccfsB78VMIksbkNZax7+bacPIb/YyAGJdKD2liu+YYYBVIzL6vf5ciz C3Gyl3988rFFX0qYRtcGsp1+6t3+Cs9p3hwNr8i+c5hF37ZWMWWlHfqvg2aehioUuk1/ GuuSOA1AN0OKUhV5mUPizaHTCxYAZbgKrfMFShfZ86E/DOMWQnyoXHdro95Y1CIO3KNb tK6w== MIME-Version: 1.0 X-Received: by 10.224.43.148 with SMTP id w20mr950648qae.26.1400679922814; Wed, 21 May 2014 06:45:22 -0700 (PDT) Received: by 10.140.25.212 with HTTP; Wed, 21 May 2014 06:45:22 -0700 (PDT) Date: Wed, 21 May 2014 15:45:22 +0200 Message-ID: Subject: 24.3; wdired do not allow to edit first char in filenames From: JuanLeon Lahoz To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=047d7bdc82203e53a904f9e93526 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) --047d7bdc82203e53a904f9e93526 Content-Type: text/plain; charset=UTF-8 Hi, When I enter into wdired-mode I can edit every char in the file names but the first. For instance, workaround or renaming "foo" to "afoo" is to insert "af" after "f" and then delete first "f" with backspace. Patch below to file to wdired.el fixes the issue for me. Regards juanleon *** wdired.el 2014-05-21 15:39:09.367026680 +0200 --- wdired.el.ori 2014-05-21 15:39:00.183026259 +0200 *************** or \\[wdired-abort-changes] to abort cha *** 289,295 **** ;; the filename can't be modified. (add-text-properties (1- (point)) (point) `(old-name ,filename rear-nonsticky (read-only))) ! (put-text-property b-protection (1- (point)) 'read-only t) (setq b-protection (dired-move-to-end-of-filename t)) (put-text-property (point) (1+ (point)) 'end-name t)) (forward-line)) --- 289,295 ---- ;; the filename can't be modified. (add-text-properties (1- (point)) (point) `(old-name ,filename rear-nonsticky (read-only))) ! (put-text-property b-protection (point) 'read-only t) (setq b-protection (dired-move-to-end-of-filename t)) (put-text-property (point) (1+ (point)) 'end-name t)) (forward-line)) --047d7bdc82203e53a904f9e93526 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

When I enter into wdired-mode I = can edit every char in the file names but the first.

For insta= nce, workaround or renaming "foo" to "afoo" is to inser= t "af" after "f" and then delete first "f" wi= th backspace.

Patch below to file to wdired.el fixes the issue for me.

<= /div>Regards
juanleon

*** wdired.el=C2=A0=C2=A0 2014-05-21 1= 5:39:09.367026680 +0200
--- wdired.el.ori=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 2014-05-21 15:39:00.183026259 +0200
*************** or \\[wdired-abort-changes] to abort cha
*** 289,295 ***= *
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; the filename= can't be modified.
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 (add-text-properties
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 (1- (point)) (point) `(old-name ,filename rear-nonsticky= (read-only)))
!=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (put-text-property b-prot= ection (1- (point)) 'read-only t)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 (setq b-protection (dired-move-to-end-of-filename t))=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (put-text-proper= ty (point) (1+ (point)) 'end-name t))
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (forward-line))
--- 289,295 ----
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = ;; the filename can't be modified.
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 (add-text-properties
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (1- (point)) (point) `(old-name ,filename= rear-nonsticky (read-only)))
!=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (put-text-property b-protection (point) 'read-only t)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq b-protection (= dired-move-to-end-of-filename t))
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 (put-text-property (point) (1+ (point)) 'end-name t)= )
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (forward-line))=

--047d7bdc82203e53a904f9e93526-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 18:56:39 2014 Received: (at 17541) by debbugs.gnu.org; 21 May 2014 22:56:39 +0000 Received: from localhost ([127.0.0.1]:55653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WnFR8-0006dE-Qh for submit@debbugs.gnu.org; Wed, 21 May 2014 18:56:39 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:59874 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WnFR5-0006cz-Ce for 17541@debbugs.gnu.org; Wed, 21 May 2014 18:56:36 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WnFR4-00021O-CA; Wed, 21 May 2014 18:56:34 -0400 From: Glenn Morris To: JuanLeon Lahoz Subject: Re: bug#17541: 24.3; wdired do not allow to edit first char in filenames References: X-Spook: Noriega Reno Albanian enigma beanpole BLU-97 A/B EuroFed X-Ran: PXmpYy3;;W#yZrtEkt\gQEVz24u_zww7;>p.h(40VYS|j@3HaElu&s"^I%QKw!BY/WQQKp X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 21 May 2014 18:56:34 -0400 In-Reply-To: (JuanLeon Lahoz's message of "Wed, 21 May 2014 15:45:22 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 17541 Cc: 17541@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.9 (----) JuanLeon Lahoz wrote: > When I enter into wdired-mode I can edit every char in the file names but > the first. > > For instance, workaround or renaming "foo" to "afoo" is to insert "af" > after "f" and then delete first "f" with backspace. Thanks for the report, but I cannot reproduce this. I can rename "foo" to "afoo" just fine. Does this happen with emacs -Q? From debbugs-submit-bounces@debbugs.gnu.org Thu May 22 03:40:03 2014 Received: (at 17541) by debbugs.gnu.org; 22 May 2014 07:40:03 +0000 Received: from localhost ([127.0.0.1]:55966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WnNbe-0001Fd-0p for submit@debbugs.gnu.org; Thu, 22 May 2014 03:40:02 -0400 Received: from mail-qg0-f54.google.com ([209.85.192.54]:36060) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WnNbb-0001FG-T2 for 17541@debbugs.gnu.org; Thu, 22 May 2014 03:40:00 -0400 Received: by mail-qg0-f54.google.com with SMTP id q108so5020798qgd.13 for <17541@debbugs.gnu.org>; Thu, 22 May 2014 00:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cSMY1y71fS9uAbxuBRzKrGlYzhmccg/H+1uViyjJvRA=; b=aGi4UklLRPx5oeQfY2NAzKEW86DpBPdZZpuXbqWWBx/Yzrzxd2nMRXCuidu1xNj9np AoAAtlV35CHlH3gzNyaPVZDIj0NHuoCZSfY/+ic4cnKPZy10NyihqPkCi+9eGxdREzba N2/Jta9XJlGHEjFHo64KjmBRT7iE3WecjWwN19YpBtO7SMsQF24cLzwg2hVJThgVadu5 hzluPLfrgw7K+4sptyfJFbMCBXNL/xV5DWIzDVcX0WXg8ORSD6LFKTs7msYWBT2NOzm3 wDfYqzdUvixo7l5aHE2Q4Vl8ZVKsNicns59TjC0nnaLQmEYpAhgmSEfhL5PNXfVvgDiQ ctrw== MIME-Version: 1.0 X-Received: by 10.140.94.225 with SMTP id g88mr10640737qge.101.1400744394092; Thu, 22 May 2014 00:39:54 -0700 (PDT) Received: by 10.140.25.212 with HTTP; Thu, 22 May 2014 00:39:54 -0700 (PDT) In-Reply-To: References: Date: Thu, 22 May 2014 09:39:54 +0200 Message-ID: Subject: Re: bug#17541: 24.3; wdired do not allow to edit first char in filenames From: JuanLeon Lahoz To: Glenn Morris Content-Type: multipart/alternative; boundary=001a113a7f1607f81104f9f83869 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17541 Cc: 17541@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) --001a113a7f1607f81104f9f83869 Content-Type: text/plain; charset=UTF-8 On Thu, May 22, 2014 at 12:56 AM, Glenn Morris wrote: > JuanLeon Lahoz wrote: > > > When I enter into wdired-mode I can edit every char in the file names but > > the first. > > > > For instance, workaround or renaming "foo" to "afoo" is to insert "af" > > after "f" and then delete first "f" with backspace. > > Thanks for the report, but I cannot reproduce this. > I can rename "foo" to "afoo" just fine. > Does this happen with emacs -Q? > Weird. That does not happen with emacs -Q. I did a binary search of all the stuff in my init file to narrow the problem and then, when narrowed to a single defun in a configuration file, the problem went away (I suspect that when init-loader recompiled that file). So I am left with same configuration than yesterday and no problem! Good; I suppose. Thanks --001a113a7f1607f81104f9f83869 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, May 22, 2014 at 12:56 AM, Glenn Morris <rgm@gnu.org> w= rote:
JuanLeon Lahoz wrote:

> When I enter into wdired-mode I can edit every char in the file names = but
> the first.
>
> For instance, workaround or renaming "foo" to "afoo&quo= t; is to insert "af"
> after "f" and then delete first "f" with backspace= .

Thanks for the report, but I cannot reproduce this.
I can rename "foo" to "afoo" just fine.
Does this happen with emacs -Q?

Weird.=C2=A0 That does not happen wit= h emacs -Q.

I did a binary search of all the stuff in my init file to narrow the=20 problem and then, when narrowed to a single defun in a configuration file, = the=20 problem went away (I suspect that when init-loader recompiled that=20 file).

So I am left with same configuration than yesterday and no pr= oblem!=C2=A0 Good; I suppose.

Thanks
--001a113a7f1607f81104f9f83869-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 22 10:13:33 2014 Received: (at 17541-done) by debbugs.gnu.org; 22 May 2014 14:13:33 +0000 Received: from localhost ([127.0.0.1]:56653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WnTkO-0006aL-G4 for submit@debbugs.gnu.org; Thu, 22 May 2014 10:13:33 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:56896) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WnTkI-0006a5-DQ for 17541-done@debbugs.gnu.org; Thu, 22 May 2014 10:13:27 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s4MEDJYB012303; Thu, 22 May 2014 10:13:19 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id BAED3AE0D2; Thu, 22 May 2014 10:13:20 -0400 (EDT) From: Stefan Monnier To: JuanLeon Lahoz Subject: Re: bug#17541: 24.3; wdired do not allow to edit first char in filenames Message-ID: References: Date: Thu, 22 May 2014 10:13:20 -0400 In-Reply-To: (JuanLeon Lahoz's message of "Thu, 22 May 2014 09:39:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4950=0 X-NAI-Spam-Version: 2.3.0.9378 : core <4950> : inlines <914> : streams <1190437> : uri <1764304> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 17541-done Cc: Glenn Morris , 17541-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (--) > So I am left with same configuration than yesterday and no problem! Good; > I suppose. It's called the placebo effect! Stefan From unknown Mon Jun 23 23:49:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Jun 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator