[Top][All Lists]

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

Re: how can i number lines in emacs

From: Ehud Karni
Subject: Re: how can i number lines in emacs
Date: Wed, 22 Aug 2001 21:05:17 +0300

On Sat, 18 Aug 2001 10:50:23 +0300, Eli Zaretskii <eliz@is.elta.co.il> wrote:
> > From: Deepak Goel <deego@glue.umd.edu>
> > Newsgroups: comp.emacs,gnu.emacs.bug
> > Date: 17 Aug 2001 13:52:48 -0400
> > 
> > IMHO, the documentation of line-number-mode ought to add:
> > "See also `line-number-display-limit'"
> Thanks, it already does in the current development sources:
>     Toggle Line Number mode.
>     With arg, turn Line Number mode on iff arg is positive.
>     When Line Number mode is enabled, the line number appears
>     in the mode line.
>     Line numbers do not appear for very large buffers, see variable
>     `line-number-display-limit'.

Eli, you forgot the problem of long lines (> 200), Here's you own
answer from 2001-06-01:

  > From: Niranjan Rao <NRao@usinteractive.com>
  > Date: Tue, 19 Jun 2001 17:50:07 -0400
  > Emacs fails to display line numbers if the number of columns is
  > greater than 200.
  Thank you for your report.
  This is a limitation of the display engine used in Emacs 20 and
  before.  In the next version 21.1, this limit can be customized,
  so you will be able to control it.

The variable's name is: line_number_display_limit_width
And its documentation:
    "*Maximum line width (in characters) for line number display.
If the average length of the lines near point is bigger than this, then the
line number may be omitted from the mode line."



 Ehud Karni     Mivtach - Simon  Insurance   /"\
 Tel: +972-3-6212-757 Fax: +972-3-6292-544   \ /  ASCII Ribbon Campaign
 (USA) Fax and  voice  mail: 1-815-5509341    X   Against  HTML  Mail
     Better     Safe     Than     Sorry      / \
     mailto:ehud@unix.simonwiesel.co.il    http://www.simonwiesel.co.il

reply via email to

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