GNU bug report logs - #1441
wdired-change-to-wdired-mode result error with custom dir

Previous Next

Package: emacs;

Reported by: xah lee <xah <at> xahlee.org>

Date: Thu, 27 Nov 2008 16:45:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1441 in the body.
You can then email your comments to 1441 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1441; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to xah lee <xah <at> xahlee.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: xah lee <xah <at> xahlee.org>
To: bug-gnu-emacs <at> gnu.org
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  
custome dir, it causes minor problems when emacs tries to rename the  
buffer of a opened file whose name just changed.

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

detail:

I have a function show-file-in-dired that opens the current buffer in  
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- 
wdired-mode, then after renaming it, emacs gives error like this:

byte-code: Buffer is read-only: #<buffer emacs, elisp,  
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, / 
Users/xah/Documents/temp/emacs, elisp, javascript.txt


Steps to reproduce.

• eval the above elisp code.

• go into a dir, open a file. (don't close the dired buffer. Not  
sure this is important to reproduce the problem but anyway just leave  
it.)

• type M-x show-file-in-dired. This should get you in dired with  
only that file shown.

• type M-x wdired-change-to-wdired-mode. Then edit the file name.  
Type C-c C-c to complete.

• 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=/Applications/Emacs.app/ 
Contents/Resources' '--with-carbon' '--without-x' '--libexecdir=/ 
Volumes/Emacs/Emacs.app/Contents/MacOS/libexec' 'CFLAGS=-Os -arch  
i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DUSE_ATSUI - 
DUSE_MAC_TSM''


  Xah
∑ http://xahlee.org/

Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to xah lee <xah <at> xahlee.org>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 1441-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: xah lee <xah <at> xahlee.org>
Cc: 1441-done <at> debbugs.gnu.org
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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Sun, 28 Dec 2008 15:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 174 days ago.

Previous Next


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