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: Fri, 14 Sep 2007 22:09:05 -0400 Message-ID: References: <86hcm4rw70.fsf@macs.hw.ac.uk> <85642imgtp.fsf@lola.goethe.zz> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1189822237 22355 80.91.229.12 (15 Sep 2007 02:10:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2007 02:10:37 +0000 (UTC) Cc: jbw@macs.hw.ac.uk, 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 Sat Sep 15 04:10:23 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 1IWN6y-0006Y7-5d for ged-emacs-devel@m.gmane.org; Sat, 15 Sep 2007 04:10:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWN6x-0001F1-FD for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 22:10:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWN6F-0000GO-L0 for emacs-devel@gnu.org; Fri, 14 Sep 2007 22:09:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWN6E-0000Ei-Gi for emacs-devel@gnu.org; Fri, 14 Sep 2007 22:09:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWN6E-0000EH-9h for emacs-devel@gnu.org; Fri, 14 Sep 2007 22:09:34 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWN6E-0003s2-1V for emacs-devel@gnu.org; Fri, 14 Sep 2007 22:09:34 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IWN5l-0006jf-8R; Fri, 14 Sep 2007 22:09:05 -0400 In-reply-to: (message from Stefan Monnier on Fri, 14 Sep 2007 09:59:37 -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:78932 Archived-At: I think your code should rely on fontification-functions instead of fiddling with things like window-size-change-functions. `fontification-functions' can't be used for linum because the C code checks explicitly for a `fontified' property before calling those functions. In effect, those functions have to put on `fontified' properties in order to make this mechanism work right. And they should only do that if they are doing fontification. If there is the existing hooks don't do the job well, it would be nice to improve them so as to make them better for programs like this