[Top][All Lists]

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

Bug in dired.aux: Patch.

From: Luc Teirlinck
Subject: Bug in dired.aux: Patch.
Date: Tue, 15 Oct 2002 22:49:49 -0500 (CDT)

This concerns emacs-21.3.50.  The described bug does not occur in

If one uses the C, R, S or H commands in dired to copy, rename,
symlink or hardlink files into another directory, which was already
visited in a buffer before the copying (renaming,...) then the topmost
file that was operated on does not get marked as copied (renamed,...)
but the file just below the set of copied files does get marked as
copied (renamed,...).

The patch below fixes the problem.  All it does is put point at the
right place before marking.

Change log:

2002-10-15  Luc Teirlinck  <address@hidden>

        * dired-aux.el (dired-add-entry): Put point in correct
          position before inserting marker char.

Patch (diff with -c and -b options):

===File ~/dired-aux-diff====================================
*** /usr/local/share/emacs/21.3.50/lisp/dired-aux-old.el        Mon Sep 16 
16:11:47 2002
--- /usr/local/share/emacs/21.3.50/lisp/dired-aux.el    Tue Oct 15 22:03:19 2002
*** 859,864 ****
--- 859,865 ----
                (dired-insert-directory directory
                                        (concat dired-actual-switches "d")
                                        (list filename)))
+             (goto-char opoint)
              ;; Put in desired marker char.
              (when marker-char
                (let ((dired-marker-char

reply via email to

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