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: Sun, 16 Sep 2007 19:04:07 -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 1189983863 7327 80.91.229.12 (16 Sep 2007 23:04:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Sep 2007 23:04:23 +0000 (UTC) Cc: lekktu@gmail.com, Markus Triska , 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 01:04:20 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 1IX3A3-00085z-R5 for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 01:04:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IX3A2-0004zM-It for ged-emacs-devel@m.gmane.org; Sun, 16 Sep 2007 19:04:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IX39z-0004z7-Bw for emacs-devel@gnu.org; Sun, 16 Sep 2007 19:04:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IX39w-0004xw-WE for emacs-devel@gnu.org; Sun, 16 Sep 2007 19:04:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IX39w-0004xt-PX for emacs-devel@gnu.org; Sun, 16 Sep 2007 19:04:12 -0400 Original-Received: from tomts25.bellnexxia.net ([209.226.175.188] helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IX39t-0007nK-Ey; Sun, 16 Sep 2007 19:04:09 -0400 Original-Received: from ceviche.home ([70.55.141.227]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070916230408.HWFS19497.tomts25-srv.bellnexxia.net@ceviche.home>; Sun, 16 Sep 2007 19:04:08 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 271BCB4128; Sun, 16 Sep 2007 19:04:07 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Sun\, 16 Sep 2007 01\:34\:17 -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:79053 Archived-At: > Yes, and I also found it's not enough to update line numbers in > window-size-change-functions, configuration-change-hook, and > after-change-functions; one should also do it in hs-...-hook, > allout-..., outline-..., and many others. > 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. After all, the progression of linum.el follows the one from lazy-lock.el to jit-lock.el (lazy-lock suffered from the same problems with outline-mode, as a matter of fact). Stefan