From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.devel Subject: Re: something like linum.el ought to be added Date: Wed, 12 Sep 2007 10:14:03 +0100 Message-ID: <86y7fckzz8.fsf@macs.hw.ac.uk> 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=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1189588483 22162 80.91.229.12 (12 Sep 2007 09:14:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2007 09:14:43 +0000 (UTC) Cc: Markus Triska , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 12 11:14: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 1IVOIp-0005ON-4B for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2007 11:14:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVOIo-00036A-KN for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2007 05:14:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IVOIe-000355-0F for emacs-devel@gnu.org; Wed, 12 Sep 2007 05:14:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IVOIY-00034S-9e for emacs-devel@gnu.org; Wed, 12 Sep 2007 05:14:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVOIX-00034P-Qe for emacs-devel@gnu.org; Wed, 12 Sep 2007 05:14:13 -0400 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IVOIQ-0000dI-1U; Wed, 12 Sep 2007 05:14:06 -0400 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:37535 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1IVOIO-0003MA-JF; Wed, 12 Sep 2007 10:14:04 +0100 Original-Received: (nullmailer pid 11585 invoked by uid 1001); Wed, 12 Sep 2007 09:14:03 -0000 In-Reply-To: (Richard Stallman's message of "Wed\, 12 Sep 2007 04\:47\:14 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) 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:78649 Archived-At: Richard Stallman writes: > 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. And the =E2=80=9Cwindow=E2=80=9D overlay property can allow the overlays fo= r the different windows to be completely independent of each other. There could be two overlays for a given line and only one would be displayed in each window. > (We can add a primitive to select overlays based on a certain > property value, to make that faster.) Like next-single-property-change except for overlays instead of text properties? > We could also add this as a display feature. > It might not be very hard. By the way, it might help if there was an easier interface to the data returned by (format-mode-line "%l" WINDOW). That cached information is potentially a big speedup, but hard to access in a nice way. --=20 Joe