From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#11795: 24.1.50; wdired: C-c C-c loses marks and positions of renamed files Date: Wed, 27 Jun 2012 01:53:07 +0200 Message-ID: <87r4t1sk9o.fsf@web.de> Reply-To: michael_heerdegen@web.de NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1340754726 12036 80.91.229.3 (26 Jun 2012 23:52:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2012 23:52:06 +0000 (UTC) To: 11795@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 01:52:06 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SjfYC-0002Sw-MR for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 01:52:04 +0200 Original-Received: from localhost ([::1]:53335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjfYC-0008VZ-N4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jun 2012 19:52:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjfY9-0008VH-2D for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 19:52:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjfY7-0000LI-6q for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 19:52:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjfY7-0000L5-3b for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 19:51:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sjfc1-0003dP-Sn for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 19:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jun 2012 23:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134075491313916 (code B ref -1); Tue, 26 Jun 2012 23:56:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jun 2012 23:55:13 +0000 Original-Received: from localhost ([127.0.0.1]:59235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjfbF-0003cO-3j for submit@debbugs.gnu.org; Tue, 26 Jun 2012 19:55:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60492) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjfbC-0003cG-7M for submit@debbugs.gnu.org; Tue, 26 Jun 2012 19:55:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjfXE-00006C-Vz for submit@debbugs.gnu.org; Tue, 26 Jun 2012 19:51:06 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:34677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjfXE-000068-Su for submit@debbugs.gnu.org; Tue, 26 Jun 2012 19:51:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjfXD-0008Tx-5m for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 19:51:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjfXB-0008U2-8h for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 19:51:02 -0400 Original-Received: from mout.web.de ([212.227.17.11]:49688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjfXA-0008Pv-V7 for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2012 19:51:01 -0400 Original-Received: from snow.dragon ([89.204.138.102]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0Lj2Dy-1S8x4h1lmw-00dLTn for ; Wed, 27 Jun 2012 01:50:58 +0200 X-Provags-ID: V02:K0:EeN41fmQ59h/x2EG9euJwIWwKjTeJCYfd0tc9E/2uNI 93ASIXBXkvuNQFH0GEN8ua2SXXOaurDkYKf21fKM7p17jB+rN5 rF/F3pG3OMSZVU9qh735KOWUyGUIOG6lq5Z9GOdKk0auTDtd+l 5+BxIsNoAK+2wL0H2jG2/86es0kEGyY6Y8oXTsH/8Boh7NuJ6A cSE0D06KzaGhMtQAYfdV6CuPeBowzMPY7J6VSEnVwA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61316 Archived-At: 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''