unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* dired-backup-diff only diffs with the latest backup
@ 2002-11-23 20:34 Dan Jacobson
  2002-11-24  6:10 ` Eli Zaretskii
  2002-11-24 17:23 ` Andreas Schwab
  0 siblings, 2 replies; 4+ messages in thread
From: Dan Jacobson @ 2002-11-23 20:34 UTC (permalink / raw)


    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.

    With prefix arg, prompt for argument SWITCHES which is options for `diff'.

You could make this: if ARG is 1,2,3... diff with the next, second to
next... latest backup.  Otherwise prompt for switches. If ARG is -1 -2
-3... do the same as 1, 2, 3, but also prompt for switches.
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dired-backup-diff only diffs with the latest backup
  2002-11-23 20:34 dired-backup-diff only diffs with the latest backup Dan Jacobson
@ 2002-11-24  6:10 ` Eli Zaretskii
  2002-11-25 21:56   ` Dan Jacobson
  2002-11-24 17:23 ` Andreas Schwab
  1 sibling, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2002-11-24  6:10 UTC (permalink / raw)
  Cc: bug-gnu-emacs


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.

The "Uses the latest backup" thing just means that the latest backup is 
_suggested_as_the_default_ when Emacs prompts for the second file name.  
There's nothing in the world that prevents you from editing, say, 
"foo.bar.~123~" into "foo.bar.~1~" in the minibuffer when you are at that 
prompt.

By contrast, I'm quite sure that the special meaning of the values 1, 2, 
3, etc. of ARG will be remembered by exactly 2 persons in the whole world: 
Dan Jacobson and the programmer who will implement his suggestion.

In other words, too much flexibility is not necessarily a Good Thing.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dired-backup-diff only diffs with the latest backup
  2002-11-23 20:34 dired-backup-diff only diffs with the latest backup Dan Jacobson
  2002-11-24  6:10 ` Eli Zaretskii
@ 2002-11-24 17:23 ` Andreas Schwab
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2002-11-24 17:23 UTC (permalink / raw)
  Cc: bug-gnu-emacs

Dan Jacobson <jidanni@dman.ddts.net> writes:

|>     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.
|> 
|>     With prefix arg, prompt for argument SWITCHES which is options for `diff'.
|> 
|> You could make this: if ARG is 1,2,3... diff with the next, second to
|> next... latest backup.  Otherwise prompt for switches. If ARG is -1 -2
|> -3... do the same as 1, 2, 3, but also prompt for switches.

Not necessary.  Just type M-= on the backup you want to diff with.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dired-backup-diff only diffs with the latest backup
  2002-11-24  6:10 ` Eli Zaretskii
@ 2002-11-25 21:56   ` Dan Jacobson
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Jacobson @ 2002-11-25 21:56 UTC (permalink / raw)
  Cc: greg.klanderman

>>>>> "Eli" == Eli Zaretskii <eliz@is.elta.co.il> 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 <schwab@suse.de> 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)))

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-25 21:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-23 20:34 dired-backup-diff only diffs with the latest backup Dan Jacobson
2002-11-24  6:10 ` Eli Zaretskii
2002-11-25 21:56   ` Dan Jacobson
2002-11-24 17:23 ` Andreas Schwab

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).