]> git.eshelyaron.com Git - emacs.git/commitdiff
Add local to remove-hook in cursor-face-highlight-mode
authorJimmy Aguilar Mena <spacibba@aol.com>
Mon, 14 Mar 2022 08:46:32 +0000 (09:46 +0100)
committerJimmy Aguilar Mena <spacibba@aol.com>
Mon, 14 Mar 2022 08:50:41 +0000 (09:50 +0100)
Add LOCAL flag in remove-hook and reword the dock string.

Thanks to Stefan Monnier for this

lisp/simple.el

index cada2e5571ab5e474e06d5dc858f7428a1ffa676..5768fb3c956187ab4dd94946b432055a62dd66ce 100644 (file)
@@ -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"