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 20:49:37 -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 1190076597 2468 80.91.229.12 (18 Sep 2007 00:49:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2007 00:49:57 +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 Tue Sep 18 02:49:55 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 1IXRHl-0002vU-EW for ged-emacs-devel@m.gmane.org; Tue, 18 Sep 2007 02:49:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXRHk-0004lL-7P for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 20:49:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXRHg-0004iR-AM for emacs-devel@gnu.org; Mon, 17 Sep 2007 20:49:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXRHd-0004iF-W3 for emacs-devel@gnu.org; Mon, 17 Sep 2007 20:49:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXRHd-0004iC-Pm for emacs-devel@gnu.org; Mon, 17 Sep 2007 20:49:45 -0400 Original-Received: from tomts10.bellnexxia.net ([209.226.175.54] helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXRHa-00080A-Ez; Mon, 17 Sep 2007 20:49:42 -0400 Original-Received: from pastel.home ([70.55.141.227]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070918004937.BHGT9197.tomts10-srv.bellnexxia.net@pastel.home>; Mon, 17 Sep 2007 20:49:37 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A545582E5; Mon, 17 Sep 2007 20:49:37 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Mon\, 17 Sep 2007 18\:24\:41 -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:79156 Archived-At: >> 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. > jit-lock is controlled by the `fontified' property. We do not want linum > to alter text properties, so it can't use jit-lock. I do not follow. I have a pretty good idea of how jit-lock could be modified to provide just the necessary functionality. linum.el would keep using overlays (just like glasses-mode does already in conjunction with jit-lock, by the way). Stefan