12

I have linum-mode enabled as well as truncate-lines. Works fine as long as Emacs displays column 0:

enter image description here The line number is showed on left (OK)

But as soon as the window is scrolled horizontally, the line numbers disappear:

enter image description here The line number is not showed on left

How do I make it so the line numbers (on the left) stay displayed when I move along a long logical line ?

8
  • 3
    I think you're seeing a plain bug. This affects both linum-mode and nlinum-mode, apparently. I recommend you M-x report-emacs-bug.
    – Stefan
    May 10, 2016 at 3:35
  • FYI: I don't observe this behaviour with Emacs 24.5.1 and linum-mode 0.9.24 on Linux, the line numbers remain visible.
    – ph0t0nix
    May 10, 2016 at 15:23
  • I see the same problem, Emacs 25.0.93.1 on Windows. @user3875715 what version of Emacs are you running?
    – glucas
    May 10, 2016 at 16:26
  • 1
    @ph0t0nix: I do see this behavior on Emacs 24.5 on Linux. Curious if you tried it with emacs -Q
    – nispio
    May 10, 2016 at 18:54
  • Sorry for the confusion. You are both right, I observe the same thing. I totally missed the part where the OP says column 0 shouldn't be visible for this to appear.
    – ph0t0nix
    May 10, 2016 at 19:27

1 Answer 1

1

This is a bug in linum-mode.

bug#24169: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24169

Line numbers will indeed disappear with horizontal scrolling when using line-truncation. See reproduction details in bug report.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.