Malabarba / aggressive-indent-mode

Emacs minor mode that keeps your code always indented. More reliable than electric-indent-mode.
853 stars 35 forks source link

global-hl-line-mode blinks with aggressive-indent-mode #91

Closed Dickby closed 8 years ago

Dickby commented 8 years ago

If global-hl-line-mode and aggresssive-indent-mode is enabled, the highlighted line blinks at every inserted character. This doesn't happen if I enable hl-line-mode locally.

Malabarba commented 8 years ago

I can't reproduce that here. Could you provide a minimal example?

Dickby commented 8 years ago

I realized it happens not in every buffer, but for example in C code files. I use emacs 95.0.95. This produces the blinking:

I start with emacs -Q and open a new .c file

M-x package-initialize, M-x global-hl-line-mode, M-x aggressive-indent-mode

insert a new line with cursor back to first line with C-p if I now start to type the highlighted line blinks. M-x hl-line-mode and the blinking stops

Malabarba commented 8 years ago

Odd. And what's your aggressive-indent version?

On Tue, 5 Jul 2016 11:58 pm Dickby, notifications@github.com wrote:

I realized it happens not in every buffer, but for example in C code files. I use emacs 95.0.95. This produces the blinking:

I start with emacs -Q and open a new .c file

M-x package-initialize, M-x global-hl-line-mode, M-x aggressive-indent-mode

insert a new line with cursor back to first line with C-p if I now start to type the highlighted line blinks. M-x hl-line-mode and the blinking stops

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Malabarba/aggressive-indent-mode/issues/91#issuecomment-230659471, or mute the thread https://github.com/notifications/unsubscribe/AAbppcS5Vy3Vg9rzFllP4ozjnZKZfg4Mks5qSxnNgaJpZM4JFMLB .

Dickby commented 8 years ago

the version is 20160608.1625

Dickby commented 8 years ago

I solved this just by enabling hl-line-mode in the c-mode-hook that enables aggressive-indent-mode. But it would be nicer without this hack.

Malabarba commented 8 years ago

This could be a performance issue. Unfortunately, I still can't reproduce it. :-(