diff options
author | Stephen Berman <stephen.berman@gmx.net> | 2016-05-26 11:30:29 +0200 |
---|---|---|
committer | Stephen Berman <stephen.berman@gmx.net> | 2016-05-26 11:30:29 +0200 |
commit | 16be3e90545972dec16014253a843229d5bdf388 (patch) | |
tree | 862abd927225b9f9d1a1f68af8d9dfe0f41e2b72 /lisp/emacs-lisp | |
parent | e971ce6de27f982720ef312637e1d40da80e8d1f (diff) | |
download | emacs-16be3e90545972dec16014253a843229d5bdf388.tar.gz emacs-16be3e90545972dec16014253a843229d5bdf388.tar.bz2 emacs-16be3e90545972dec16014253a843229d5bdf388.zip |
hl-line.el: Fix flickering of highlighted line (bug#23510)
* lisp/hl-line.el (hl-line-maybe-unhighlight)
(global-hl-line-highlight-all)
(global-hl-line-maybe-unhighlight): New functions.
(hl-line-overlay-buffer): New variable.
(hl-line-mode): Use it. Replace hl-line-unhighlight on
pre-command-hook by hl-line-maybe-unhighlight on
post-command-hook, to prevent hl-line from flickering.
Adjust document string.
(global-hl-line-mode): Use global-hl-line-highlight-all to
simultaneously highlight the current line in all live windows.
Replace global-hl-line-unhighlight on pre-command-hook by
global-hl-line-maybe-unhighlight on post-command-hook, to
prevent global-hl-line from flickering. Remove
global-hl-line-unhighlight from change-major-mode-hook on
disabling the mode. Adjust document string.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions