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: Sun, 16 Sep 2007 01:34:17 -0400 Message-ID: References: <86hcm4rw70.fsf@macs.hw.ac.uk> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1189921056 19972 80.91.229.12 (16 Sep 2007 05:37:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Sep 2007 05:37:36 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org To: Markus Triska Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 16 07:37:34 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 1IWmp4-0000Rl-1J for ged-emacs-devel@m.gmane.org; Sun, 16 Sep 2007 07:37:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWmp3-0005lk-30 for ged-emacs-devel@m.gmane.org; Sun, 16 Sep 2007 01:37:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWmmO-00043O-Oi for emacs-devel@gnu.org; Sun, 16 Sep 2007 01:34:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWmmN-00042b-VA for emacs-devel@gnu.org; Sun, 16 Sep 2007 01:34:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWmmN-00042H-Of for emacs-devel@gnu.org; Sun, 16 Sep 2007 01:34:47 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWmmN-0001LP-8K for emacs-devel@gnu.org; Sun, 16 Sep 2007 01:34:47 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IWmlt-0007c3-A5; Sun, 16 Sep 2007 01:34:17 -0400 In-reply-to: (message from Markus Triska on Sat, 15 Sep 2007 18:01:38 +0200) 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:79016 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. The hook could be called by redisplay_window, if current_matrix_up_to_date_p is zero. Would someone like to try implementing this?