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: pointless buttons at end of VC log buffers Date: Tue, 16 Feb 2010 22:54:46 +0900 Message-ID: <87wrydb80p.fsf@catnip.gol.com> References: <87pr45zqn3.fsf@telefonica.net> <87ljetz5ha.fsf@telefonica.net> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1266328581 6463 80.91.229.12 (16 Feb 2010 13:56:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2010 13:56:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?=C3=93scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 16 14:56:18 2010 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.69) (envelope-from ) id 1NhNuU-0007N5-5o for ged-emacs-devel@m.gmane.org; Tue, 16 Feb 2010 14:56:18 +0100 Original-Received: from localhost ([127.0.0.1]:34695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhNuT-0007wV-3q for ged-emacs-devel@m.gmane.org; Tue, 16 Feb 2010 08:56:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhNt7-0007Y1-54 for emacs-devel@gnu.org; Tue, 16 Feb 2010 08:54:53 -0500 Original-Received: from [140.186.70.92] (port=34512 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhNt6-0007Xa-Ce for emacs-devel@gnu.org; Tue, 16 Feb 2010 08:54:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhNt5-0006Dw-St for emacs-devel@gnu.org; Tue, 16 Feb 2010 08:54:52 -0500 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]:33304) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhNt5-0006Dh-Kk; Tue, 16 Feb 2010 08:54:51 -0500 Original-Received: from 218.33.232.80.eo.eaccess.ne.jp ([218.33.232.80] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) id 1NhNt3-0006yS-AP; Tue, 16 Feb 2010 22:54:49 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id B3ABCDF74; Tue, 16 Feb 2010 22:54:46 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: <87ljetz5ha.fsf@telefonica.net> (=?utf-8?Q?=22=C3=93scar?= Fuentes"'s message of "Tue, 16 Feb 2010 14:15:45 +0100") Original-Lines: 16 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:121142 Archived-At: =C3=93scar Fuentes writes: > By default, Emacs asks to the underlying log command to output > `vc-log-show-limit' items, which right now defaults to 2000. However, if > there are less revisions, Emacs would need to detect this circumstance > somehow for knowing that the buttons are of no use. Hmm, it seems quite feasible to detect the number, though it might be backend-specific. [With git: either count the lines, if doing a short log, or count the occurances of "^commit" if doing a standard log] -Miles --=20 Defenceless, adj. Unable to attack.