From: JuanLeon Lahoz <juanleon.lahoz@gmail.com>
To: 17541@debbugs.gnu.org
Subject: bug#17541: 24.3; wdired do not allow to edit first char in filenames
Date: Wed, 21 May 2014 15:45:22 +0200 [thread overview]
Message-ID: <CANYPdHC8SAE731xuGc56FW0TLaSXOh9k6oEVQzGjnoE3+N2hHw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]
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))
[-- Attachment #2: Type: text/html, Size: 1630 bytes --]
next reply other threads:[~2014-05-21 13:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-21 13:45 JuanLeon Lahoz [this message]
2014-05-21 22:56 ` bug#17541: 24.3; wdired do not allow to edit first char in filenames Glenn Morris
2014-05-22 7:39 ` JuanLeon Lahoz
2014-05-22 14:13 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANYPdHC8SAE731xuGc56FW0TLaSXOh9k6oEVQzGjnoE3+N2hHw@mail.gmail.com \
--to=juanleon.lahoz@gmail.com \
--cc=17541@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.