From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: RE: Does emacs have a line numbering feature? Date: Sat, 8 Sep 2007 23:53:54 +0800 Message-ID: <63F95800EDD046419F17688AAFD41CCF01D96391@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 1189266994 15633 80.91.229.12 (8 Sep 2007 15:56:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2007 15:56:34 +0000 (UTC) To: , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 08 17:56:31 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IU2fY-0008CZ-Uo for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Sep 2007 17:56:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IU2fW-0007HI-Jc for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Sep 2007 11:56:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IU2fE-0007HB-KE for help-gnu-emacs@gnu.org; Sat, 08 Sep 2007 11:56:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IU2fE-0007Gz-42 for Help-gnu-emacs@gnu.org; Sat, 08 Sep 2007 11:56:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IU2fD-0007Gw-VU for Help-gnu-emacs@gnu.org; Sat, 08 Sep 2007 11:56:03 -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 1IU2fD-0004nY-6j for Help-gnu-emacs@gnu.org; Sat, 08 Sep 2007 11:56:03 -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); Sat, 8 Sep 2007 23:57:48 +0800 Original-Received: from sd-ex-01.cnshn.gdnt.local ([202.38.38.8]) by sd-ef-01.cnshn.gdnt.local with Microsoft SMTPSVC(6.0.3790.1830); Sat, 8 Sep 2007 10:58:02 -0500 Original-Received: from rnd-ex01.rnd.gdnt.local ([202.38.32.250]) by sd-ex-01.cnshn.gdnt.local with Microsoft SMTPSVC(6.0.3790.1830); Sat, 8 Sep 2007 23:58:00 +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: Does emacs have a line numbering feature? Thread-Index: AcfyJp62Pz6SfbttSDmlg1Yq9Xk2sAAB+Lzw X-OriginalArrivalTime: 08 Sep 2007 15:58:00.0968 (UTC) FILETIME=[08492880:01C7F231] X-TM-AS-Product-Ver: SMEX-7.0.0.1345-3.6.1039-15232.002 X-TM-AS-Result: No--17.877300-8.000000-31 X-Detected-Kernel: Windows 2000 SP4, XP SP1+ X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47368 Archived-At: I will post my my figures on the wiki later. I never edited wiki before = and don't know to do it now.=20 The crash can be reproduced even I starting emacs with -Q option. The = file I used to test has 115000 lines and its size is about 15M. The error message is: "Emacs Clipboard: emacs.exe -Application Error". I = use WIN XP SP2 and the computer has 2G memory. My emacs version is: This is GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE The version of My copy of setnum.el is (Maybe out of date): (defconst setnu-mode-version "1.06" ... BTW: I have taken a look at the code of linum.el. The linum.el uses a very = simple approach to show the line number and it only makes overlays for = the line visible in the screen. So it runs very fast and consumes less = memory. The codes are very simple and have only about 100 lines = (including comments). =20 -----Original Message----- From: help-gnu-emacs-bounces+brianjiang=3Dgdnt.com.cn@gnu.org = [mailto:help-gnu-emacs-bounces+brianjiang=3Dgdnt.com.cn@gnu.org] On = Behalf Of Drew Adams Sent: 2007=C4=EA9=D4=C28=C8=D5 22:37 To: Help-gnu-emacs@gnu.org Subject: RE: Does emacs have a line numbering feature? > Thanks for the link. I try the "linum.el" mentioned in the link. > It is very faster than setnu.el. > I try linum mode in a file has 115000 lines, the line number show=20 > immediately. When I try setnu in the same file, my Emacs crashed! > > quote from the link: > Linum > > Library linum.el works incrementally and can number large files very = fast. > > http://stud4.tuwien.ac.at/~e0225855/linum/linum.html > > > How is this feature toggled on and off? > > > http://www.emacswiki.org/cgi-bin/wiki/LineNumbers I agree. As I said on that page, Linum seems to be an improvement over = Setnu. Suggestion: post your performance figures on the wiki, so that = others can benefit from it. Wrt your Setnu crash - please report the bug, if you can reproduce it, = starting with emacs -Q (that is, without .emacs). _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs