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: Wed, 12 Sep 2007 04:47:14 -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 1189587163 15272 80.91.229.12 (12 Sep 2007 08:52:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2007 08:52:43 +0000 (UTC) Cc: jbw@macs.hw.ac.uk, emacs-devel@gnu.org To: Markus Triska Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 12 10:52:41 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 1IVNxf-00088I-QQ for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2007 10:52:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVNxf-0006He-O6 for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2007 04:52:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IVNst-00039F-1C for emacs-devel@gnu.org; Wed, 12 Sep 2007 04:47:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IVNsq-00035g-GR for emacs-devel@gnu.org; Wed, 12 Sep 2007 04:47:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVNsq-00035W-7W for emacs-devel@gnu.org; Wed, 12 Sep 2007 04:47:40 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IVNsp-00033p-Tp for emacs-devel@gnu.org; Wed, 12 Sep 2007 04:47:39 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IVNsQ-0003Am-IX; Wed, 12 Sep 2007 04:47:14 -0400 In-reply-to: (message from Markus Triska on Tue, 11 Sep 2007 20:15:04 +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:78647 Archived-At: I see what you mean; the main complication is that existing overlays can still be necessary in other windows that show the same buffer. That is true. So making all overlays available for (re-)consumption would entail walking all visible windows and adjusting (new or existing) overlays where necessary, Indeed, the after-change-functions hook will need to deal with all the windows. That is not very hard, with buffer-window-list. If each overlay records which windows it is meant for, the window-scroll-functions can could delete and redo only those that pertain to the current window. Each window will run the window-scroll-functions to recompute the overlays it needs. (We can add a primitive to select overlays based on a certain property value, to make that faster.) We could also add this as a display feature. It might not be very hard.