]> git.eshelyaron.com Git - emacs.git/commit
Improve cursor-face-highlight-mode a bit more.
authorJimmy Aguilar Mena <spacibba@aol.com>
Mon, 14 Mar 2022 01:55:27 +0000 (02:55 +0100)
committerJimmy Aguilar Mena <spacibba@aol.com>
Mon, 14 Mar 2022 01:55:27 +0000 (02:55 +0100)
commitc1ea52f4ad2e673e364ca8565938ba3584126556
treef3d1130f1d282e872802557dea244017a03676fb
parente06c4039c2d77f5cacb8c2a76e310e4a2e041fbc
Improve cursor-face-highlight-mode a bit more.

Add the hook locally to the buffer only when needed to avoid even
calling the function redisplay--update-cursor-face-highlight when the
mode is enabled.

* lisp/simple.el (redisplay--update-cursor-face-highlight) : Remove
unneeded condition.
(cursor-face-highlight-mode) : Conditionally add or remove
redisplay--update-cursor-face-highlight to pre-redisplay-functions with
buffer local flag.
lisp/simple.el