GNU bug report logs - #17541
24.3; wdired do not allow to edit first char in filenames

Previous Next

Package: emacs;

Reported by: JuanLeon Lahoz <juanleon.lahoz <at> gmail.com>

Date: Wed, 21 May 2014 13:46:01 UTC

Severity: normal

Tags: moreinfo

Found in version 24.3

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: JuanLeon Lahoz <juanleon.lahoz <at> gmail.com>
Subject: bug#17541: closed (Re: bug#17541: 24.3; wdired do not allow to
 edit first char in filenames)
Date: Thu, 22 May 2014 14:14:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#17541: 24.3; wdired do not allow to edit first char in filenames

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 17541 <at> debbugs.gnu.org.

-- 
17541: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17541
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: JuanLeon Lahoz <juanleon.lahoz <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 17541-done <at> debbugs.gnu.org
Subject: Re: bug#17541: 24.3;
 wdired do not allow to edit first char in filenames
Date: Thu, 22 May 2014 10:13:20 -0400
> So I am left with same configuration than yesterday and no problem!  Good;
> I suppose.

It's called the placebo effect!


        Stefan

[Message part 3 (message/rfc822, inline)]
From: JuanLeon Lahoz <juanleon.lahoz <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; wdired do not allow to edit first char in filenames
Date: Wed, 21 May 2014 15:45:22 +0200
[Message part 4 (text/plain, inline)]
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))
[Message part 5 (text/html, inline)]

This bug report was last modified 11 years and 6 days ago.

Previous Next


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