emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestion: Have `C-x v =' run `diff-backup'


From: Ted Zlatanov
Subject: Re: Suggestion: Have `C-x v =' run `diff-backup'
Date: Thu, 14 Apr 2011 10:14:19 -0500
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux)

On Thu, 14 Apr 2011 17:06:37 +0200 Deniz Dogan <address@hidden> wrote: 

DD> 2011/4/14 Ted Zlatanov <address@hidden>:
>> On Thu, 14 Apr 2011 08:32:21 -0600 Tom Tromey <address@hidden> wrote:
>> 
>>>>>>>> "Deniz" == Deniz Dogan <address@hidden> writes:
Deniz> 2011/4/14 Lars Magne Ingebrigtsen <address@hidden>:
>>>>> When looking at files, I often wonder what the diff is between the
>>>>> current version and the previous one, so my fingers go `C-x v ='
>>>>> automatically, only to be presented with "No fileset is available here".
>>>>> 
>>>>> Wouldn't it be nice if that command, if there was no fileset there, and
>>>>> there were backup files, would then run `diff-backup' instead of just
>>>>> erroring out?
>>>>> 
>> 
Deniz> I guess this would be confusing to many people if they're not aware of
Deniz> this behaviour. If this is implemented, maybe it would be best to tell
Deniz> the user that there is no fileset and ask if s?he wants to diff with
Deniz> the backup?
>> 
Tom> How about, if there are no differences, put a "diff against previous
Tom> revision" button into the *vc-diff* buffer?
>> 
>> Buttons are slow.  Maybe it would be OK to just do
>> (y-or-n-p "There are no changes in this revision, try the previous one?")
>> 

DD> Is that what the suggestion was about? I think Lars means that if the
DD> file is not version controlled, he wants to compare the buffer
DD> contents to the backup file.

Tom suggested something different: if `C-x v =' finds no different, no
matter the backend, to try the previous revision.  This would work with
backup files, too.

Ted




reply via email to

[Prev in Thread] Current Thread [Next in Thread]