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 ?

Stefan
  • 26,154
  • 3
  • 46
  • 84
user3875715
  • 121
  • 2
  • 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 '16 at 03: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 '16 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 '16 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 '16 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 '16 at 19:27
  • @glucas: I have tried emacs on version 24.5,23.4,24.3(windows) and plugin on nlinum-mode 1.6, linum-mode0.9.24. – user3875715 May 11 '16 at 01:35
  • Is this still an issue on 25.1? – xuhdev Nov 02 '16 at 08:41
  • I see the same behaviour in my (fairly recent build from upstream) emacs: GNU Emacs 26.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9) of 2017-02-07 – NickD Mar 07 '17 at 20:56

1 Answers1

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.

Erik B
  • 156
  • 5