From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: Have `C-x v =' run `diff-backup' Date: Thu, 14 Apr 2011 17:06:37 +0200 Message-ID: References: <874o60anip.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1302793634 25106 80.91.229.12 (14 Apr 2011 15:07:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2011 15:07:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 14 17:07:10 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QAO8T-0006Y5-NL for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2011 17:07:09 +0200 Original-Received: from localhost ([::1]:51249 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAO8S-0004aY-UE for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2011 11:07:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAO8L-0004Zr-F9 for emacs-devel@gnu.org; Thu, 14 Apr 2011 11:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAO8I-0004Fo-0n for emacs-devel@gnu.org; Thu, 14 Apr 2011 11:07:01 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:63013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAO8H-0004Fk-UA for emacs-devel@gnu.org; Thu, 14 Apr 2011 11:06:57 -0400 Original-Received: by iwg8 with SMTP id 8so2184436iwg.0 for ; Thu, 14 Apr 2011 08:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=GMilNMc5UAIXFUFqJlsDjcXz3fARYYu49gk3O1wPXf8=; b=sC4UR2cxqJvZjRh8wGUpxW1SuNoj+4andQku4XDUx4LKXBRXtRff9gEZlcQGnquXS6 PGorTMqNaDOn3aiwfpNEAdLhlj/Js9mi7z2HmDpXHY6/sLruRxM7bPlT/hr+VVHU7xuZ qcA7v6auXX6a7qqBhdBWUgUIrXHb8hlo3pxyM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=NBVhy6Q7alDZQxFu/58wQA9AoWVc/Z4xdhf/3ekMi1N2sPiMQfMV9IbFnu4hdLacW1 2GZVVLqWpyvnAvRVuESYWYcP0StbkP6si8EdlfoPZGeGr+im167kfHeHEj4AhVrhtnWG OxIUZpvT1way9tOiYRI6rj6/mxyJjCbLxTzO0= Original-Received: by 10.231.123.141 with SMTP id p13mr772167ibr.29.1302793617098; Thu, 14 Apr 2011 08:06:57 -0700 (PDT) Original-Received: by 10.231.208.71 with HTTP; Thu, 14 Apr 2011 08:06:37 -0700 (PDT) In-Reply-To: <874o60anip.fsf@lifelogs.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138481 Archived-At: 2011/4/14 Ted Zlatanov : > On Thu, 14 Apr 2011 08:32:21 -0600 Tom Tromey wrote: > >>>>>>> "Deniz" =3D=3D Deniz Dogan writes: > Deniz> 2011/4/14 Lars Magne Ingebrigtsen : >>>> 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 =3D' >>>> 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, an= d >>>> 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 awar= e 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 wi= th > 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. =A0Maybe it would be OK to just do > (y-or-n-p "There are no changes in this revision, try the previous one?") > Is that what the suggestion was about? I think Lars means that if the file is not version controlled, he wants to compare the buffer contents to the backup file. --=20 Deniz Dogan