help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Does emacs have a line numbering feature?


From: brianjiang
Subject: RE: Does emacs have a line numbering feature?
Date: Sat, 8 Sep 2007 23:53:54 +0800

I will post my my figures on the wiki later. I never edited wiki before and 
don't know to do it now. 

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).

 

-----Original Message-----
From: help-gnu-emacs-bounces+brianjiang=gdnt.com.cn@gnu.org 
[mailto:help-gnu-emacs-bounces+brianjiang=gdnt.com.cn@gnu.org] On Behalf Of 
Drew Adams
Sent: 2007年9月8日 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 
> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]