emacs-diffs
[Top][All Lists]
Advanced

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

feature/completions-customs 11bfff37ad: Add local to remove-hook in curs


From: Jimmy Aguilar Mena
Subject: feature/completions-customs 11bfff37ad: Add local to remove-hook in cursor-face-highlight-mode
Date: Mon, 14 Mar 2022 06:06:34 -0400 (EDT)

branch: feature/completions-customs
commit 11bfff37ad6cced524a43d1a0f77d2b691cabddf
Author: Jimmy Aguilar Mena <spacibba@aol.com>
Commit: Jimmy Aguilar Mena <spacibba@aol.com>

    Add local to remove-hook in cursor-face-highlight-mode
    
    Add LOCAL flag in remove-hook and reword the dock string.
    
    Thanks to Stefan Monnier for this
---
 lisp/simple.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index cada2e5571..5768fb3c95 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -6567,13 +6567,13 @@ which is the window that will be redisplayed.  When 
run, the `current-buffer'
 is set to the buffer displayed in that window.")
 
 (define-minor-mode cursor-face-highlight-mode
-  "When enabled the cursor-face property is respected."
+  "When enabled, respect the cursor-face property."
   :global nil
   (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)))
+              #'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]