Subject: Re: bug#18035: Linum-mode + org-indent-mode results in graphical bug

From: Lionel Henry <[email-masked]>
Date: Sat, 26 Jul 2014 17:03:49 +0200

Le 16 juil. 2014 à 18:38, Eli Zaretskii <[email-masked]> a écrit :

>> From: Lionel Henry <[email-masked]>
>> Date: Wed, 16 Jul 2014 15:39:04 +0200
>> 
>> Activating both linum-mode and org-indent-mode will cause several graphical glitches in the current line.
>> See http://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg01204.html
> 
> That discussion provides no reproducible recipe.

OK I finally found a ROA

First create a .org file and put the rainbow-delimiters package in your load path.
Then execute this :

(progn
  (require 'rainbow-delimiters)
  (rainbow-delimiters-mode)
  (linum-mode)
  (org-indent-mode))

Then enter this in the org file :

* head 1
** head 2
line 1
line 2

Line 2 is important, without it the bug does not happens. Now modify head 2.
The linum number will disappear and the whole active line will shift to the left.

So it's an interaction between linum, org-indent-mode, and rainbow-delimiters-mode.

Lionel