highlight-indent-guides icon indicating copy to clipboard operation
highlight-indent-guides copied to clipboard

Entering text before a guide removes style.

Open JacksonGariety opened this issue 4 years ago • 5 comments

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.

JacksonGariety avatar Mar 23 '20 07:03 JacksonGariety

Possibly identical to #70

JacksonGariety avatar Mar 23 '20 07:03 JacksonGariety

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.

DarthFennec avatar Mar 23 '20 19:03 DarthFennec

@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.

JacksonGariety avatar Mar 28 '20 06:03 JacksonGariety

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.

DarthFennec avatar Mar 30 '20 20:03 DarthFennec

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

someonewithpc avatar Nov 10 '22 14:11 someonewithpc