From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: limit the number of log entries displayed by C-x v l Date: Mon, 23 Nov 2009 00:17:46 -0500 Message-ID: References: <200911171344.nAHDis0c026133@godzilla.ics.uci.edu> <200911181819.nAIIJIUk009684@godzilla.ics.uci.edu> <873a4bc70c.fsf@tux.homenetwork> <200911200659.nAK6xpkt020046@godzilla.ics.uci.edu> <200911201526.nAKFQV2m023996@godzilla.ics.uci.edu> <87fx8833jy.fsf@uwakimon.sk.tsukuba.ac.jp> <20091122230226.GA3519@headley> <19210.1600.43351.317882@rgr.rgrjr.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258953490 29651 80.91.229.12 (23 Nov 2009 05:18:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2009 05:18:10 +0000 (UTC) Cc: Thierry Volpiatto , "Stephen J. Turnbull" , Dan Nicolaescu , emacs-devel@gnu.org To: Bob Rogers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 23 06:18:03 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 1NCRJI-0002ZY-DF for ged-emacs-devel@m.gmane.org; Mon, 23 Nov 2009 06:18:00 +0100 Original-Received: from localhost ([127.0.0.1]:53655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCRJH-0008N6-Lm for ged-emacs-devel@m.gmane.org; Mon, 23 Nov 2009 00:17:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCRJD-0008Mt-2s for emacs-devel@gnu.org; Mon, 23 Nov 2009 00:17:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCRJ7-0008MQ-Fk for emacs-devel@gnu.org; Mon, 23 Nov 2009 00:17:53 -0500 Original-Received: from [199.232.76.173] (port=35996 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCRJ7-0008ML-AY for emacs-devel@gnu.org; Mon, 23 Nov 2009 00:17:49 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:10986 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCRJ7-00058J-4C for emacs-devel@gnu.org; Mon, 23 Nov 2009 00:17:49 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAOmpCUvO+IIa/2dsb2JhbACBTdFOhDwEigI X-IronPort-AV: E=Sophos;i="4.47,269,1257138000"; d="scan'208";a="49828119" Original-Received: from 206-248-130-26.dsl.teksavvy.com (HELO ceviche.home) ([206.248.130.26]) by ironport2-out.pppoe.ca with ESMTP; 23 Nov 2009 00:17:47 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 31046B40D8; Mon, 23 Nov 2009 00:17:46 -0500 (EST) In-Reply-To: <19210.1600.43351.317882@rgr.rgrjr.com> (Bob Rogers's message of "Sun, 22 Nov 2009 22:49:20 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:117560 Archived-At: > Here's a non-backend-specific hack for C-n and C-p in vc-annotate-mode > that keeps any log-view-mode buffer displayed on the same frame in sync > to the same revision. A post-command-hook solution might be more > thorough, though (handling C-s, e.g.), but is this in the direction of > what you had in mind? Not really. I want to give a range of lines BEG..END and then get a list of patches going backward in time showing all the commits that ended up (directly or indirectly) with generating those lines. So it will give me an information akin to (tho not in prose) "those lines were changed in r1834 by changing indentation, before that r1498 renamed foo to bar, before that r1244 extended the code to handle one more case, and finally r1022 is the one change that really introduced the core behavior of those lines (and then it'll keep telling me more things but I won't care about them)". I do it in a backend-independent way by hand, in the following way: 1- start at REV=latest revision 2- vc-annotate REV 3- get the diff and log of the lines 4- set REV to the revision prior to the one that changed those lines and go back to 2. Stefan