darkroom
darkroom copied to clipboard
Bug with `nlinum-mode`
Again from Hinrik Örn Sigurðsson:
I have another issue. When turning off darkroom-tentative-mode, the left margin is hidden. You can see it in action by doing:
(nlinum-mode) (darkroom-tentative-mode) (darkroom-tentative-mode)
The margin with the line numbers is gone after this, but it will reappear as soon as I do any kind of window operation (e.g. "C-x 2").
It also does something odd when using linum-mode
(as opposed to nlinum-mode
). After leaving darkroom-tentative-mode
the margin is restored, but the fringe is not in the same place as it was before entering the mode. It's now on the far left instead of being between the margin and the text. And this does not fix itself automatically when doing subsequent window operations, it's stuck this way. Actually, I see that this is also happening in the original nlinum-mode
example I reported.
I've reproduced the linum-mode
bug, and will propose a fix to the emacs-devel mailing list soon. I believe the problem there lies in that library, not darkroom.el
I'm discussing a fix in https://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01296.html