emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#11795: closed (24.1.50; wdired: C-c C-c loses mark


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#11795: closed (24.1.50; wdired: C-c C-c loses marks and positions of renamed files)
Date: Wed, 17 Oct 2012 09:39:02 +0000

Your message dated Wed, 17 Oct 2012 11:37:24 +0200
with message-id <address@hidden>
and subject line Re: bug#11795: 24.1.50;        wdired: C-c C-c loses marks and 
positions of renamed files
has caused the debbugs.gnu.org bug report #11795,
regarding 24.1.50; wdired: C-c C-c loses marks and positions of renamed files
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
11795: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11795
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.1.50; wdired: C-c C-c loses marks and positions of renamed files Date: Wed, 27 Jun 2012 01:53:07 +0200
Hi,

a short demonstration for emacs -Q:

1. M-x dired a directory containing some files

2. Go to the first file's line (not "." or ".."), and mark the file
with m

3. M-x wdired-change-to-wdired-mode

4. Edit the name of the first file: e.g. add a "z" to the front of the
   name so that the file will surely appear at another position after
   renaming

5. C-c C-c

You'll see that point is still at the first file's line, although the
renamed file is now displayed near the end of the buffer.  Even worse,
the mark of the file has disappeared.

Background: `wdired-finish-edit' calls `revert-buffer', which will
call `dired-revert'.  Before this is called, everything is ok.  But
`dired-revert' fails to remember the mark and the position of the
renamed file correctly.  I didn't dig any further, but I guess a
specialized revert function is needed for `wdired-finish-edit'.


Thanks,

Michael.


In GNU Emacs 24.1.50.1 (i486-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2012-06-22 on zelenka, modified by Debian
 (emacs-snapshot package, version 2:20120622-1)
Windowing system distributor `The X.Org Foundation', version 11.0.11201902
Configured using:
 `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 
'--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp'
 '--without-compress-info' '--with-crt-dir=/usr/lib/i386-linux-gnu/'
 '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes'
 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'
 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g
 -Wl,--as-needed -znocombreloc' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''




--- End Message ---
--- Begin Message --- Subject: Re: bug#11795: 24.1.50; wdired: C-c C-c loses marks and positions of renamed files Date: Wed, 17 Oct 2012 11:37:24 +0200
After performing different tests, my patch looks sane so far.  IMHO it
can be installed now.

Installed as revision 110564 on trunk.  Bug closed.

Thanks, martin



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]