DarthFennec / highlight-indent-guides

Emacs minor mode to highlight indentation
573 stars 28 forks source link

Entering text before a guide removes style. #78

Open ColemanGariety opened 4 years ago

ColemanGariety commented 4 years ago

You can put your cursor on a guide and insert text before the guide, and the guide will lose its style. It doesn't appear to save along with the buffer, but it looks like it will, because it moves with text and does not go away with the other indent guides.

ColemanGariety commented 4 years ago

Possibly identical to #70

DarthFennec commented 4 years ago

Similar to #70, but not necessarily identical. This is some sort of bug. The mode is written so that when you insert text before a guide, the guide is removed entirely. I expect this is happening for the same reason as your other issue, #77 (whatever that reason might be). So, same questions as I asked there: Does this happen only in specific situations, or any time you insert text before a guide? Does it work properly for you if you use an empty emacs configuration, where only this mode is loaded? There might be some conflict in your configuration that's causing it.

ColemanGariety commented 4 years ago

@DarthFennec I can reproduce it with an empty config + web-mode. It happens any time you insert text before a guide, as long as web-mode is enabled in that buffer. web-mode is rather bloated, but it's currently the only way to get tsx file highlighting in emacs, so it looks like it will remain a major player in the emacs ecosystem for a while.

DarthFennec commented 4 years ago

In that case it probably is related to #70, since they're both web-mode exclusive. I'll look deeper into web-mode and see if I can find anything weird. Thanks.

someonewithpc commented 2 years ago

I'm also seeing this behaviour in emacs-lisp-mode, with Doom Emacs