From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.devel Subject: Re: something like linum.el ought to be added Date: Sat, 15 Sep 2007 18:12:14 +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=us-ascii X-Trace: sea.gmane.org 1189873000 4072 80.91.229.12 (15 Sep 2007 16:16:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2007 16:16:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 15 18:16:35 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 1IWaJu-0008Rh-FU for ged-emacs-devel@m.gmane.org; Sat, 15 Sep 2007 18:16:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWaJt-0004GE-NS for ged-emacs-devel@m.gmane.org; Sat, 15 Sep 2007 12:16:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWaJp-0004Cq-R3 for emacs-devel@gnu.org; Sat, 15 Sep 2007 12:16:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWaJo-0004AP-9c for emacs-devel@gnu.org; Sat, 15 Sep 2007 12:16:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWaJo-0004AH-6c for emacs-devel@gnu.org; Sat, 15 Sep 2007 12:16:28 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IWaJn-0004VB-Kn for emacs-devel@gnu.org; Sat, 15 Sep 2007 12:16:27 -0400 Original-Received: (qmail invoked by alias); 15 Sep 2007 16:16:26 -0000 Original-Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp048) with SMTP; 15 Sep 2007 18:16:26 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1/EWLMbgQjEvHMfVbB9g+UC177dr0bmm0hza9nDIN aAkeXGn4QJU1E8 In-Reply-To: (Juanma Barranquero's message of "Sat\, 15 Sep 2007 16\:46\:30 +0200") X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:78973 Archived-At: "Juanma Barranquero" writes: > `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). It need not be convoluted: What you probably want instead is a linum-before-line-numbering-hook, where users can compute everything their format function needs. Is that it?