From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: VC top of the tree diff and log Date: Thu, 09 Jul 2009 12:05:29 +0900 Message-ID: References: <200907071845.n67IjHUH004088@godzilla.ics.uci.edu> <200907082110.n68LA647023185@godzilla.ics.uci.edu> <87k52i93ug.fsf@catnip.gol.com> <200907090029.n690Twlr026037@godzilla.ics.uci.edu> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247108757 25076 80.91.229.12 (9 Jul 2009 03:05:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2009 03:05:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 09 05:05:50 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MOjxE-0002Cl-TI for ged-emacs-devel@m.gmane.org; Thu, 09 Jul 2009 05:05:49 +0200 Original-Received: from localhost ([127.0.0.1]:54316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOjxE-0006Mm-Cb for ged-emacs-devel@m.gmane.org; Wed, 08 Jul 2009 23:05:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOjx9-0006K7-Rr for emacs-devel@gnu.org; Wed, 08 Jul 2009 23:05:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOjx5-0006Ez-5j for emacs-devel@gnu.org; Wed, 08 Jul 2009 23:05:43 -0400 Original-Received: from [199.232.76.173] (port=51614 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOjx4-0006Ew-VG for emacs-devel@gnu.org; Wed, 08 Jul 2009 23:05:39 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.193]:37341) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MOjwz-0006DP-4A; Wed, 08 Jul 2009 23:05:35 -0400 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id n6935Tto005612; Thu, 9 Jul 2009 12:05:29 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay11.aps.necel.com with ESMTP; Thu, 9 Jul 2009 12:05:29 +0900 Original-Received: from dhlpc061 ([10.114.114.32] [10.114.114.32]) by relay11.aps.necel.com with ESMTP; Thu, 9 Jul 2009 12:05:29 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id 613AC52E1A7; Thu, 9 Jul 2009 12:05:29 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-Reply-To: <200907090029.n690Twlr026037@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Wed, 8 Jul 2009 17:29:58 -0700 (PDT)") Original-Lines: 49 X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:112220 Archived-At: Dan Nicolaescu writes: > > Would be useful, though I dunno what you'd bind it too... at some point > > having too many bindings for essentially-similar-commands becomes kind > > of annoying/confusing. > > I am thinking that we could have 2 modes for the log: > - a short one that would be used by default for directory logs > - the current long one that would be used for file logs > (I haven't completely thought this through)... I normally am interested in exactly the same thing from either file or project logs: detailed info about the last few changesets. I use short logs too (when I'm trying to discover longer-term trends instead of detailed info), but there seems no connection with whether I restrict the scope to a file or not. What sounds nice to me would be a quick "toggle log mode" binding in the log display buffer (with caching so it's fast, and smart preservation of point position in the log, etc), or maybe even better, a "toggle detailed info for this entry" binding, but maybe those aren't so easy to implement in emacs... [Hmm... "*" comes to mind for some reason, though I have no idea why...] As far as global vs. file logs, I think maybe I'd prefer to _always_ get global logs in git/svn/... but with some slight hint about the file when invoked from a file buffer -- e.g., maybe display entries not related to the file in a "dim" face, and initially position the cursor on the first modification to the file, etc. My reasoning is that I don't think I really mean "show me the history of this file", when I use "C-x v l", but rather "show me recent history of the project, given that I happen to be in a file in that project". [Real file logs would be nice too, when there's too much chaff, but they seem secondary, rather than primary.] [Incidentally, one thing that definitely _should_ work, but doesn't, is that "C-x v l" in a dired buffer...] I suppose maybe the real question underlying this thread is how much vc should try to emulate historical CVS-oriented behavior when used with newer source control systems that have different models. Personally I think it should be a bit looser about this, and do what's "natural" rather than what's "historically compatible". But maybe that's just me... -Miles -- P.S. All information contained in the above letter is false, for reasons of military security.