unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: Bug in dired.aux: Patch.
Date: Tue, 15 Oct 2002 22:49:49 -0500 (CDT)	[thread overview]
Message-ID: <200210160349.WAA17736@eel.dms.auburn.edu> (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
============================================================

                 reply	other threads:[~2002-10-16  3:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200210160349.WAA17736@eel.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).