From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: RE: something like linum.el ought to be added Date: Fri, 14 Sep 2007 23:04:37 +0800 Message-ID: <63F95800EDD046419F17688AAFD41CCF01DE5468@rnd-ex01.rnd.gdnt.local> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1189785323 13861 80.91.229.12 (14 Sep 2007 15:55:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2007 15:55:23 +0000 (UTC) Cc: jbw@macs.hw.ac.uk, emacs-devel@gnu.org To: , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 14 17:55:21 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 1IWDVT-0005VP-FN for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 17:54:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWDVS-0005Iz-O0 for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 11:54:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWDVP-0005Gn-2b for emacs-devel@gnu.org; Fri, 14 Sep 2007 11:54:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWDVO-0005F6-CP for emacs-devel@gnu.org; Fri, 14 Sep 2007 11:54:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWDVO-0005Eu-4k for emacs-devel@gnu.org; Fri, 14 Sep 2007 11:54:54 -0400 Original-Received: from email.gdnt.com.cn ([202.104.30.38]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWDVI-00027e-5h; Fri, 14 Sep 2007 11:54:48 -0400 Original-Received: from sd-ef-01.cnshn.gdnt.local ([202.38.41.132]) by email.gdnt.com.cn with Microsoft SMTPSVC(6.0.3790.1830); Fri, 14 Sep 2007 23:08:30 +0800 Original-Received: from sd-ex-02.cnshn.gdnt.local ([202.38.38.7]) by sd-ef-01.cnshn.gdnt.local with Microsoft SMTPSVC(6.0.3790.1830); Fri, 14 Sep 2007 10:08:48 -0500 Original-Received: from rnd-ex01.rnd.gdnt.local ([202.38.32.250]) by sd-ex-02.cnshn.gdnt.local with Microsoft SMTPSVC(6.0.3790.1830); Fri, 14 Sep 2007 23:08:48 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: something like linum.el ought to be added Thread-Index: Acf2nrXaeg5Ji5q7TdeHjT4XEbXlrgAQL4jQ X-OriginalArrivalTime: 14 Sep 2007 15:08:48.0142 (UTC) FILETIME=[26BE2AE0:01C7F6E1] X-TM-AS-Product-Ver: SMEX-7.0.0.1345-3.6.1039-15232.002 X-TM-AS-Result: No--12.187200-8.000000-31 X-Detected-Kernel: Windows 2000 SP4, XP SP1+ X-Greylist: delayed 2886 seconds by postgrey-1.27 at monty-python; Fri, 14 Sep 2007 11:54:42 EDT X-Greylist: delayed 2891 seconds by postgrey-1.27 at monty-python; Fri, 14 Sep 2007 11:54:47 EDT 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:78892 Archived-At: Hi Markus, I downloaded the newest version of the linum.el from the web (version = 0.9n), and find that the line number doesn't work well in some folding = function (e.g., outline mode). It can be reproduced by the following = steps: 1. emacs -Q 2. load the linum.el 3. C-h n to open the NEW. 3. M-x linum-mode 4. Click menu: Hide -> Hide Sublevel Then some lines have no line number shown. Regards, Brian -----Original Message----- From: emacs-devel-bounces+brianjiang=3Dgdnt.com.cn@gnu.org = [mailto:emacs-devel-bounces+brianjiang=3Dgdnt.com.cn@gnu.org] On Behalf = Of Markus Triska Sent: 2007=C4=EA9=D4=C214=C8=D5 1:06 To: rms@gnu.org Cc: jbw@macs.hw.ac.uk; emacs-devel@gnu.org Subject: Re: something like linum.el ought to be added Richard Stallman writes: > Indeed, the after-change-functions hook will need to deal with all the = > windows. That is not very hard, with buffer-window-list. 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. > (We can add a primitive to select overlays based on a certain property = > value, to make that faster.) Thanks; however, the current approach in version 0.9m is already so fast = that no new primitives seem to be necessary (for linum.el). _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel