From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: something like linum.el ought to be added Date: Sun, 16 Sep 2007 23:58:55 -0400 Message-ID: References: <86hcm4rw70.fsf@macs.hw.ac.uk> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1190001629 9968 80.91.229.12 (17 Sep 2007 04:00:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2007 04:00:29 +0000 (UTC) Cc: lekktu@gmail.com, markus.triska@gmx.at, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 17 06:00:28 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 1IX7mb-0007ev-8Z for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 06:00:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IX7ma-0005hj-6g for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 00:00:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IX7lg-0005MF-S0 for emacs-devel@gnu.org; Sun, 16 Sep 2007 23:59:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IX7lf-0005LL-6a for emacs-devel@gnu.org; Sun, 16 Sep 2007 23:59:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IX7le-0005LE-SM for emacs-devel@gnu.org; Sun, 16 Sep 2007 23:59:26 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IX7le-000270-Iu for emacs-devel@gnu.org; Sun, 16 Sep 2007 23:59:26 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IX7l9-0007kR-1h; Sun, 16 Sep 2007 23:58:55 -0400 In-reply-to: (message from Stefan Monnier on Sun, 16 Sep 2007 19:04:07 -0400) 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:79074 Archived-At: > I think that means we need to add a suitable hook which redisplay can > call to inform Lisp code that visibility changes may have altered the > position of the bottom of the window. OTOH, using jit-lock would make this unnecessary. jit-lock implements a specific functionality, fontification, and nothing else. I thought that the hooks used by jit-lock ought to be sufficient for linum as well. But it turns out they are not, because the code to run Vfontification_functions checks specifically for the `fontified' property. We could add another similar hook, or a more general mechanism to implement similar hooks for various uses. But I think that is the wrong way to go, because it depends on putting text properties on the text, to indicate which parts have been processed. (Fontified, in the case of jit-lock.) We don't want linum to put on text properties to say where it has put the line numbers. So I think my idea of using the same hooks jit-lock uses was a mistake. We seem to have another solution, which I suggested and Markus Triska implemened.