From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: dired-backup-diff only diffs with the latest backup Date: 26 Nov 2002 05:56:53 +0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <87wun1qpne.fsf@jidanni.org> References: <87k7j4vxcc.fsf@jidanni.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038267794 13243 80.91.224.249 (25 Nov 2002 23:43:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2002 23:43:14 +0000 (UTC) Cc: greg.klanderman@alum.mit.edu Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18GSsi-0003RK-00 for ; Tue, 26 Nov 2002 00:43:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GSsg-0004js-00; Mon, 25 Nov 2002 18:43:10 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18GSrs-0003Td-00 for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2002 18:42:20 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18GSrp-0003Qu-00 for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2002 18:42:19 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GSrp-0003Po-00 for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2002 18:42:17 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18GSpl-0003Em-00 for ; Tue, 26 Nov 2002 00:40:09 +0100 Original-To: bug-gnu-emacs@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18GSYE-00023m-00 for ; Tue, 26 Nov 2002 00:22:02 +0100 Original-Path: 127.0.0.1!nobody Original-Lines: 54 Original-NNTP-Posting-Host: tc218-187-82-31.2-7.pl.apol.com.tw Original-X-Trace: main.gmane.org 1038266521 7712 218.187.82.31 (25 Nov 2002 23:22:01 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Mon, 25 Nov 2002 23:22:01 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3960 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3960 >>>>> "Eli" == Eli Zaretskii writes: Eli> On 24 Nov 2002, Dan Jacobson wrote: >> ESC = runs the command dired-backup-diff >> Diff this file with its backup file or vice versa. >> Uses the latest backup, if there are several numerical backups. >> >> How inflexible. Eli> The "Uses the latest backup" thing just means that the latest backup is Eli> _suggested_as_the_default_ when Emacs prompts for the second file name. Eli> There's nothing in the world that prevents you from editing, say, Eli> "foo.bar.~123~" into "foo.bar.~1~" in the minibuffer when you are at that Eli> prompt. Prompts for the second file: I bet you are thinking about the = command, not ESC = Even with C-u ESC = all one is given to modify is "-c" I bet you think my backup files are right there handy in the same dir., however, I (require 'backup-dir) When I hit ESC = I see cd ~/analog/ diff -c /home/jidanni/.backups/analog.cfg\!\!\!home\!jidanni\!analog\!.\~24\~ /home/jidanni/analog/analog.cfg I don't see any feature in emacs that is going to help me from telling emacs by hand the whole path of ....~23~, in case I want to diff with it instead of the latest, even though emacs knows where the latest, 24, is. Eli> By contrast, I'm quite sure that the special meaning of the values 1, 2, Eli> 3, etc. of ARG will be remembered by exactly 2 persons in the whole world: Eli> Dan Jacobson and the programmer who will implement his suggestion. OK, then how about ESC 23 ESC = do the diff with backup #23 Or maybe one should diff 23 with 24, not with the current version. >>>>> "A" == Andreas Schwab writes: A> Not necessary. Just type M-= on the backup you want to diff with. I bet you think my backup files are right there handy in the same dir., however, I (require 'backup-dir) (setq bkup-backup-directory-info '(("/home/jidanni/.*" "/home/jidanni/.backups/" ok-create full-path prepend-name) ("^/[^/:]+:" ".backups/") ; handle EFS files specially: don't ("^/[^/:]+:" "./") ; search-upward... its very slow (t ".backups/" full-path prepend-name search-upward)))