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: Fri, 14 Sep 2007 09:59:37 -0400 Message-ID: References: <86hcm4rw70.fsf@macs.hw.ac.uk> <85642imgtp.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189778461 21198 80.91.229.12 (14 Sep 2007 14:01:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2007 14:01:01 +0000 (UTC) Cc: jbw@macs.hw.ac.uk, rms@gnu.org, emacs-devel@gnu.org To: Markus Triska Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 14 16:00:56 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 1IWBj1-00009c-P6 for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 16:00:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWBj1-0005n2-9b for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 10:00:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWBi4-0005Os-Tt for emacs-devel@gnu.org; Fri, 14 Sep 2007 09:59:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWBi3-0005OD-2y for emacs-devel@gnu.org; Fri, 14 Sep 2007 09:59:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWBi2-0005O7-Tk for emacs-devel@gnu.org; Fri, 14 Sep 2007 09:59:50 -0400 Original-Received: from tomts43.bellnexxia.net ([209.226.175.110] helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWBhy-0003Sv-0c; Fri, 14 Sep 2007 09:59:46 -0400 Original-Received: from pastel.home ([70.55.141.227]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070914135937.IQNY26794.tomts43-srv.bellnexxia.net@pastel.home>; Fri, 14 Sep 2007 09:59:37 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3F57C859D; Fri, 14 Sep 2007 09:59:36 -0400 (EDT) In-Reply-To: (Markus Triska's message of "Thu\, 13 Sep 2007 19\:06\:14 +0200") 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:78882 Archived-At: > Yes, that's how I'm doing it now; update is now also added to several > other hooks. One oversight in Emacs is, I think, that the functions in > window-size-change-functions are invoked as regular functions in > xdisp.c, therefore making the hook buffer-local currently results in > an error (due to 't'). I'm thus modifying the global hook for now. I think your code should rely on fontification-functions instead of fiddling with things like window-size-change-functions. It may very well be that fontification-functions doesn't work quite right for you, tho (basically it was defined for jit-lock and I believe that putting more than one function on it won't work right, so maybe you'd want to use jit-lock-register instead). Stefan