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

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

Re: Line Number in the mode line shows ??.


From: Eli Zaretskii
Subject: Re: Line Number in the mode line shows ??.
Date: Sun, 16 May 2021 08:29:04 +0300

> From: Christopher Dimech <dimech@gmx.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Sun, 16 May 2021 06:43:23 +0200
> 
> When I load the file, the line number is there and is correct.  Howewer, when
> I start changing the file, I then get "??".  It continues to be "??" even when
> I save the file.  
> 
> Then I close emacs and load the file to get the line number correct again.

How many lines are there in the file, and what is the length of the
longest line?

Emacs will not stop showing line numbers until it actually displays
for the first time a line that is wider that
line-number-display-limit-width columns.  So if the number of lines
there is less that line-number-display-limit, but one of the lines is
very wide, and that wide line is not at the first portion of the file
that Emacs displayed when you visit the file, then you could have line
numbers initially, but they will be turned off whenever the wide line
comes into the view.



reply via email to

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