unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bug in dired.aux: Patch.
@ 2002-10-16  3:49 Luc Teirlinck
  0 siblings, 0 replies; only message in thread
From: Luc Teirlinck @ 2002-10-16  3:49 UTC (permalink / raw)


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

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  <teirllm@mail.auburn.edu>

        * 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
============================================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-16  3:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-16  3:49 Bug in dired.aux: Patch Luc Teirlinck

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).