Subject: bug#1441 closed by Chong Yidong <[email-masked]> (Re: wdired-change-to-wdired-mode result error with custom dir)

From: [email-masked] (Emacs bug Tracking System)

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#1441: wdired-change-to-wdired-mode result error with custom dir

It has been closed by Chong Yidong <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Chong Yidong <[email-masked]> by
replying to this email.

-- 
1441: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1441
Emacs Bug Tracking System
Contact [email-masked] with problems
>From [email-masked] Sat Nov 29 21:43:29 2008
From: Chong Yidong <[email-masked]>
To: xah lee <[email-masked]>
Cc: [email-masked]
Subject: Re: wdired-change-to-wdired-mode result error with custom dir
Date: Sun, 30 Nov 2008 00:43:26 -0500

> when using wdired-change-to-wdired-mode in dired of a custome dir, it
> causes minor problems when emacs tries to rename the buffer of a
> opened file whose name just changed.

I've checked in a fix.  Thanks for the bug report.

>From [email-masked] Thu Nov 27 08:39:00 2008
To: [email-masked]
From: xah lee <[email-masked]>
Subject: wdired-change-to-wdired-mode result error with custom dir
Date: Thu, 27 Nov 2008 08:38:49 -0800

Summary: when using wdired-change-to-wdired-mode in dired of a =20
custome dir, it causes minor problems when emacs tries to rename the =20
buffer of a opened file whose name just changed.

This possible bug involves some user defined function, however, all =20
things considered, i think it is still a bug.

detail:

I have a function show-file-in-dired that opens the current buffer in =20=

dired.

(defun show-file-in-dired ()
   "Show the current file in dired."
   (interactive)
   (let ()
     (dired buffer-file-name)
     )
   )

Then, if i tried to rename the file there by calling wdired-change-to-=20=

wdired-mode, then after renaming it, emacs gives error like this:

byte-code: Buffer is read-only: #<buffer emacs, elisp, =20
javascript.txt<2>>
Press C-c C-c when finished or C-c ESC to abort changes
insert-directory: Reading directory: no such file or directory, /=20
Users/xah/Documents/temp/emacs, elisp, javascript.txt

Steps to reproduce.

=E2=80=A2 eval the above elisp code.

=E2=80=A2 go into a dir, open a file. (don't close the dired buffer. Not =
=20
sure this is important to reproduce the problem but anyway just leave =20=

it.)

=E2=80=A2 type M-x show-file-in-dired. This should get you in dired with =
=20
only that file shown.

=E2=80=A2 type M-x wdired-change-to-wdired-mode. Then edit the file =
name. =20
Type C-c C-c to complete.

=E2=80=A2 Emacs beeps and gives error.

-------------------

In GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0)
  of 2008-04-05 on g5.tokyo.stp.isas.jaxa.jp
Windowing system distributor `Apple Inc.', version 10.4.11
configured using `configure  '--prefix=3D/Applications/Emacs.app/=20
Contents/Resources' '--with-carbon' '--without-x' '--libexecdir=3D/=20
Volumes/Emacs/Emacs.app/Contents/MacOS/libexec' 'CFLAGS=3D-Os -arch =20
i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DUSE_ATSUI -=20=

DUSE_MAC_TSM''

   Xah
=E2=88=91 http://xahlee.org/

=E2=98=84