From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: Have `C-x v =' run `diff-backup' Date: Thu, 14 Apr 2011 10:14:19 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87r594986s.fsf@lifelogs.com> 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: 8bit X-Trace: dough.gmane.org 1302794123 28437 80.91.229.12 (14 Apr 2011 15:15:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2011 15:15:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 14 17:15:20 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 1QAOGM-0003TA-3I for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2011 17:15:18 +0200 Original-Received: from localhost ([::1]:57676 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAOGL-0006od-Ja for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2011 11:15:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAOGH-0006o2-UJ for emacs-devel@gnu.org; Thu, 14 Apr 2011 11:15:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAOGE-00068I-9W for emacs-devel@gnu.org; Thu, 14 Apr 2011 11:15:13 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:53364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAOGD-00068B-Sz for emacs-devel@gnu.org; Thu, 14 Apr 2011 11:15:10 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QAOG9-0003KM-DY for emacs-devel@gnu.org; Thu, 14 Apr 2011 17:15:05 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2011 17:15:05 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2011 17:15:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:yv2a5ANnp9Fz3WhxTlDlQ5zk88Y= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:138482 Archived-At: On Thu, 14 Apr 2011 17:06:37 +0200 Deniz Dogan wrote: DD> 2011/4/14 Ted Zlatanov : >> On Thu, 14 Apr 2011 08:32:21 -0600 Tom Tromey wrote: >> >>>>>>>> "Deniz" == 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 =' >>>>> 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