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: something like linum.el ought to be added Date: Mon, 17 Sep 2007 09:17:23 -0400 Message-ID: References: <86hcm4rw70.fsf@macs.hw.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190035430 11309 80.91.229.12 (17 Sep 2007 13:23:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2007 13:23:50 +0000 (UTC) Cc: lekktu@gmail.com, markus.triska@gmx.at, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 17 15:23:48 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 1IXGZn-0000BN-JU for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 15:23:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXGZk-0002Bn-7a for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 09:23:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXGZg-0002BY-M5 for emacs-devel@gnu.org; Mon, 17 Sep 2007 09:23:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXGZf-0002BA-7U for emacs-devel@gnu.org; Mon, 17 Sep 2007 09:23:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXGZf-0002B7-2C for emacs-devel@gnu.org; Mon, 17 Sep 2007 09:23:39 -0400 Original-Received: from tomts5.bellnexxia.net ([209.226.175.25] helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXGZa-0001m2-S5; Mon, 17 Sep 2007 09:23:35 -0400 Original-Received: from pastel.home ([70.55.141.227]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070917132328.KYSZ1592.tomts5-srv.bellnexxia.net@pastel.home>; Mon, 17 Sep 2007 09:23:28 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B9C2785BF; Mon, 17 Sep 2007 09:17:23 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Sun\, 16 Sep 2007 23\:58\:55 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) 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:79100 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. Not exactly. It turns the low-level fontification-function functionality into a higher-level one that can then be used by font-lock to do fontification. It can also be used by other packages to do other things (e.g. glasses-mode). > 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. I believe they are sufficient, but jit-lock needs to be extended to offer the feature required by linum.el. Stefan