darkroom icon indicating copy to clipboard operation
darkroom copied to clipboard

Bug with `nlinum-mode`

Open joaotavora opened this issue 8 years ago • 3 comments

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").

joaotavora avatar Nov 02 '15 13:11 joaotavora

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.

hinrik avatar Nov 02 '15 13:11 hinrik

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

joaotavora avatar Nov 04 '15 00:11 joaotavora

I'm discussing a fix in https://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01296.html

joaotavora avatar Nov 13 '15 13:11 joaotavora