emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/completions-customs f96669e0a4: * lisp/simple.el (cursor-face-hi


From: Stefan Monnier
Subject: feature/completions-customs f96669e0a4: * lisp/simple.el (cursor-face-highlight-mode): Fix copy&paste
Date: Mon, 14 Mar 2022 08:27:48 -0400 (EDT)

branch: feature/completions-customs
commit f96669e0a4a905cc857db389bf4c6b2d8382f3a5
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * lisp/simple.el (cursor-face-highlight-mode): Fix copy&paste
---
 lisp/simple.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index 5768fb3c95..a91895907d 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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]