From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: something like linum.el ought to be added Date: Sat, 15 Sep 2007 16:46:30 +0200 Message-ID: References: <63F95800EDD046419F17688AAFD41CCF01DE5468@rnd-ex01.rnd.gdnt.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189867609 22116 80.91.229.12 (15 Sep 2007 14:46:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2007 14:46:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Markus Triska" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 15 16:46:46 2007 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 1IWYut-0001kV-AF for ged-emacs-devel@m.gmane.org; Sat, 15 Sep 2007 16:46:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWYus-0002aW-H6 for ged-emacs-devel@m.gmane.org; Sat, 15 Sep 2007 10:46:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWYun-0002XC-NY for emacs-devel@gnu.org; Sat, 15 Sep 2007 10:46:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWYul-0002VI-Kr for emacs-devel@gnu.org; Sat, 15 Sep 2007 10:46:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWYul-0002VF-IV for emacs-devel@gnu.org; Sat, 15 Sep 2007 10:46:31 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWYul-0005OQ-6y for emacs-devel@gnu.org; Sat, 15 Sep 2007 10:46:31 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s7so1028492wxc for ; Sat, 15 Sep 2007 07:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=YHyYA0gpY3zC/lhxH8+z121immzOEevO4thL/GhpTGo=; b=kW9RaD8fOWN1/jSFtPCgbiERJImSXxuA7Icjgb2f+c8DJ79IZc1RUqhnlwvWJ8+SnHFeCllY3/ISGr82D5m+vP3Z0rkvRlpi3/Q8iL/u+GcIJuwusXBXQPXEArh6PXJgwlLQNQs9TKJtXKSp5tI0ECjW8zgoQQFVY/q6GHH9sok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nHjnFtfvdE2zExulmNQ2XYkJHebUPmQ+jbccpPr5Ng82OHls0Apdy/BYMalPf2mavLMw4vON/ot4pCnap+E1drkiQxQcYd2zqyZkK9EKhdaE5Aw67cvC2wMcxwSoDJXWy01hMcmSLO5pT0enV0qOnJ0AWJp1q4RtKw5+ikNSQ0s= Original-Received: by 10.90.90.16 with SMTP id n16mr1132223agb.1189867590594; Sat, 15 Sep 2007 07:46:30 -0700 (PDT) Original-Received: by 10.90.103.8 with HTTP; Sat, 15 Sep 2007 07:46:30 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) 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:78970 Archived-At: Could I suggest also passing to the linum-format function (if any) the total number of lines in the buffer (or the visible region)? `linum-update-window' only needs to compute it once, while the linum-format function is called for each line and would have to do convoluted things to cache it (and somehow detect buffer changes). Juanma