diff options
| author | Eli Zaretskii | 2019-07-27 17:52:47 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-07-27 17:52:47 +0300 |
| commit | 41c77dc6870fc2d9b196ff203106bc729d38ab1b (patch) | |
| tree | a67d6555f473c51e9d4763b89e39aadf7ef9c268 | |
| parent | ae9202de3265111a6d94d7fc183aff0a3a49c818 (diff) | |
| download | emacs-41c77dc6870fc2d9b196ff203106bc729d38ab1b.tar.gz emacs-41c77dc6870fc2d9b196ff203106bc729d38ab1b.zip | |
Fix documentation of 'redisplay-highlight-region-function'
* lisp/simple.el (redisplay-highlight-region-function): Fix
last change. (Bug#24701)
| -rw-r--r-- | lisp/simple.el | 16 |
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." | |||
| 5614 | (lambda (rol) (when (overlayp rol) (delete-overlay rol)))) | 5614 | (lambda (rol) (when (overlayp rol) (delete-overlay rol)))) |
| 5615 | 5615 | ||
| 5616 | (defvar redisplay-highlight-region-function | 5616 | (defvar redisplay-highlight-region-function |
| 5617 | "Function to move the highlight overlay. | ||
| 5618 | This function is called with four parameters, START, END, WINDOW | ||
| 5619 | and OVERLAY. If OVERLAY is nil, a new overlay is created. In | ||
| 5620 | any case, the overlay is adjusted to reflect the other three | ||
| 5621 | parameters. | ||
| 5622 | |||
| 5623 | The overlay is returned by the function." | ||
| 5624 | (lambda (start end window rol) | 5617 | (lambda (start end window rol) |
| 5625 | (if (not (overlayp rol)) | 5618 | (if (not (overlayp rol)) |
| 5626 | (let ((nrol (make-overlay start end))) | 5619 | (let ((nrol (make-overlay start end))) |
| @@ -5637,7 +5630,14 @@ The overlay is returned by the function." | |||
| 5637 | (eq (overlay-start rol) start) | 5630 | (eq (overlay-start rol) start) |
| 5638 | (eq (overlay-end rol) end)) | 5631 | (eq (overlay-end rol) end)) |
| 5639 | (move-overlay rol start end (current-buffer))) | 5632 | (move-overlay rol start end (current-buffer))) |
| 5640 | rol))) | 5633 | rol)) |
| 5634 | "Function to move the region-highlight overlay. | ||
| 5635 | This function is called with four parameters, START, END, WINDOW | ||
| 5636 | and OVERLAY. If OVERLAY is nil, a new overlay is created. In | ||
| 5637 | any case, the overlay is adjusted to reflect the other three | ||
| 5638 | parameters. | ||
| 5639 | |||
| 5640 | The overlay is returned by the function.") | ||
| 5641 | 5641 | ||
| 5642 | (defun redisplay--update-region-highlight (window) | 5642 | (defun redisplay--update-region-highlight (window) |
| 5643 | (let ((rol (window-parameter window 'internal-region-overlay))) | 5643 | (let ((rol (window-parameter window 'internal-region-overlay))) |