From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Line number in mode-line with column-number-mode on in GNU Emacs 23.x
Date: Fri, 25 Dec 2009 16:46:10 +0200 [thread overview]
Message-ID: <83fx6z5cy5.fsf@gnu.org> (raw)
In-Reply-To: <4B974CC3-BEDC-4F8A-BF11-89D641233662@Web.DE>
> From: Peter Dyballa <Peter_Dyballa@Web.DE>
> Date: Fri, 25 Dec 2009 11:51:58 +0100
>
> In compilation mode it happens that the line number is substituted to
> "??" although I've set line-number-display-limit to nil, i.e., GNU
> Emacs should not stop counting. I also set line-number-display-limit-
> width (first) to 625, although some lines can be as long as a few
> 10,000 characters (later set to 62,500, but no change).
The code seems to remember that a window had long lines, and once that
happens, this window will not have line numbers, until you switch to
another buffer. Is that your case -- that you enlarged
line-number-display-limit-width only _after_ you saw "??" instead of a
line number? If so, does it help to switch to a different buffer and
then switch back to the original one in the same window?
Failing that, I don't see any explanation for what you report.
Perhaps try stepping with a debugger through decode_mode_spec, or
submit a bug report with a clear recipe to reproduce this behavior.
> Is there a way to force display of the line number?
I don't see one, except enlarging line-number-display-limit-width to a
very large number (but not too large -- Emacs multiplies it by about
100 (depending on your window height), and if the result overflows,
you get the opposite of what you wanted.
Maybe we should allow nil as a value, meaning unlimited line width.
> Is it suppressed because of duration of high CPU load?
This code runs during redisplay, so it's not a good idea for it to be
too slow. But I never profiled this, so I have no idea if it really
can be slow for long lines.
next prev parent reply other threads:[~2009-12-25 14:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-25 10:51 Line number in mode-line with column-number-mode on in GNU Emacs 23.x Peter Dyballa
2009-12-25 14:46 ` Eli Zaretskii [this message]
2009-12-25 17:19 ` Peter Dyballa
2009-12-25 19:25 ` Eli Zaretskii
2009-12-25 20:13 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83fx6z5cy5.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).