summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-07-27 17:52:47 +0300
committerEli Zaretskii <eliz@gnu.org>2019-07-27 17:52:47 +0300
commit41c77dc6870fc2d9b196ff203106bc729d38ab1b (patch)
treea67d6555f473c51e9d4763b89e39aadf7ef9c268 /lisp
parentae9202de3265111a6d94d7fc183aff0a3a49c818 (diff)
downloademacs-41c77dc6870fc2d9b196ff203106bc729d38ab1b.tar.gz
Fix documentation of 'redisplay-highlight-region-function'
* lisp/simple.el (redisplay-highlight-region-function): Fix last change. (Bug#24701)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/simple.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 2c6fc84e73f..75be4fe7cb5 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5614,13 +5614,6 @@ separate contiguous regions for each line."
(lambda (rol) (when (overlayp rol) (delete-overlay rol))))
(defvar redisplay-highlight-region-function
- "Function to move the highlight overlay.
-This function is called with four parameters, START, END, WINDOW
-and OVERLAY. If OVERLAY is nil, a new overlay is created. In
-any case, the overlay is adjusted to reflect the other three
-parameters.
-
-The overlay is returned by the function."
(lambda (start end window rol)
(if (not (overlayp rol))
(let ((nrol (make-overlay start end)))
@@ -5637,7 +5630,14 @@ The overlay is returned by the function."
(eq (overlay-start rol) start)
(eq (overlay-end rol) end))
(move-overlay rol start end (current-buffer)))
- rol)))
+ rol))
+ "Function to move the region-highlight overlay.
+This function is called with four parameters, START, END, WINDOW
+and OVERLAY. If OVERLAY is nil, a new overlay is created. In
+any case, the overlay is adjusted to reflect the other three
+parameters.
+
+The overlay is returned by the function.")
(defun redisplay--update-region-highlight (window)
(let ((rol (window-parameter window 'internal-region-overlay)))