all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17541: 24.3; wdired do not allow to edit first char in filenames
@ 2014-05-21 13:45 JuanLeon Lahoz
  2014-05-21 22:56 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: JuanLeon Lahoz @ 2014-05-21 13:45 UTC (permalink / raw)
  To: 17541

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17541: 24.3; wdired do not allow to edit first char in filenames
  2014-05-21 13:45 bug#17541: 24.3; wdired do not allow to edit first char in filenames JuanLeon Lahoz
@ 2014-05-21 22:56 ` Glenn Morris
  2014-05-22  7:39   ` JuanLeon Lahoz
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2014-05-21 22:56 UTC (permalink / raw)
  To: JuanLeon Lahoz; +Cc: 17541

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?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17541: 24.3; wdired do not allow to edit first char in filenames
  2014-05-21 22:56 ` Glenn Morris
@ 2014-05-22  7:39   ` JuanLeon Lahoz
  2014-05-22 14:13     ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: JuanLeon Lahoz @ 2014-05-22  7:39 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 17541

[-- Attachment #1: Type: text/plain, Size: 820 bytes --]

On Thu, May 22, 2014 at 12:56 AM, Glenn Morris <rgm@gnu.org> 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

[-- Attachment #2: Type: text/html, Size: 1314 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17541: 24.3; wdired do not allow to edit first char in filenames
  2014-05-22  7:39   ` JuanLeon Lahoz
@ 2014-05-22 14:13     ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2014-05-22 14:13 UTC (permalink / raw)
  To: JuanLeon Lahoz; +Cc: 17541-done

> So I am left with same configuration than yesterday and no problem!  Good;
> I suppose.

It's called the placebo effect!


        Stefan





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-22 14:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-21 13:45 bug#17541: 24.3; wdired do not allow to edit first char in filenames JuanLeon Lahoz
2014-05-21 22:56 ` Glenn Morris
2014-05-22  7:39   ` JuanLeon Lahoz
2014-05-22 14:13     ` Stefan Monnier

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.