From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Bug in dired.aux: Patch. Date: Tue, 15 Oct 2002 22:49:49 -0500 (CDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200210160349.WAA17736@eel.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1034740431 17373 80.91.224.249 (16 Oct 2002 03:53:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 16 Oct 2002 03:53:51 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 181fFl-0004W3-00 for ; Wed, 16 Oct 2002 05:53:49 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 181g72-00047O-00 for ; Wed, 16 Oct 2002 06:48:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 181fCI-0006ZU-00; Tue, 15 Oct 2002 23:50:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 181fBt-0005zo-00 for emacs-devel@gnu.org; Tue, 15 Oct 2002 23:49:49 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 181fBq-0005vC-00 for emacs-devel@gnu.org; Tue, 15 Oct 2002 23:49:48 -0400 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10) id 181fBq-0005uy-00 for emacs-devel@gnu.org; Tue, 15 Oct 2002 23:49:46 -0400 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) by manatee.dms.auburn.edu (8.9.1a/8.9.1) with ESMTP id WAA16471 for ; Tue, 15 Oct 2002 22:49:45 -0500 (CDT) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id WAA17736; Tue, 15 Oct 2002 22:49:49 -0500 (CDT) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: emacs-devel@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8559 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8559 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 * 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 ============================================================