From: Stefan Monnier Date: Mon, 14 Mar 2022 12:27:31 +0000 (-0400) Subject: * lisp/simple.el (cursor-face-highlight-mode): Fix copy&paste X-Git-Tag: emacs-29.0.90~1931^2~1002^2~4 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f96669e0a4a905cc857db389bf4c6b2d8382f3a5;p=emacs.git * lisp/simple.el (cursor-face-highlight-mode): Fix copy&paste --- diff --git a/lisp/simple.el b/lisp/simple.el index 5768fb3c956..a91895907d2 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -6572,8 +6572,8 @@ is set to the buffer displayed in that window.") (if cursor-face-highlight-mode (add-hook 'pre-redisplay-functions #'redisplay--update-cursor-face-highlight nil t) - (add-hook 'pre-redisplay-functions - #'redisplay--update-cursor-face-highlight t))) + (remove-hook 'pre-redisplay-functions + #'redisplay--update-cursor-face-highlight t))) (defun redisplay--pre-redisplay-functions (windows) (with-demoted-errors "redisplay--pre-redisplay-functions: %S"