diff options
| -rw-r--r-- | lisp/paren.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/paren.el b/lisp/paren.el index 4a83fa1cb4c..562831dae9a 100644 --- a/lisp/paren.el +++ b/lisp/paren.el | |||
| @@ -181,6 +181,9 @@ if there's no opener/closer near point, or a list of the form | |||
| 181 | Where HERE-BEG..HERE-END is expected to be near point.") | 181 | Where HERE-BEG..HERE-END is expected to be near point.") |
| 182 | 182 | ||
| 183 | (defun show-paren--default () | 183 | (defun show-paren--default () |
| 184 | "Finds the opener/closer near point and its match. | ||
| 185 | |||
| 186 | It is the default value of `show-paren-data-function'." | ||
| 184 | (let* ((temp (show-paren--locate-near-paren)) | 187 | (let* ((temp (show-paren--locate-near-paren)) |
| 185 | (dir (car temp)) | 188 | (dir (car temp)) |
| 186 | (outside (cdr temp)) | 189 | (outside (cdr temp)) |
| @@ -233,9 +236,8 @@ Where HERE-BEG..HERE-END is expected to be near point.") | |||
| 233 | (if (= dir 1) pos (1+ pos)) | 236 | (if (= dir 1) pos (1+ pos)) |
| 234 | mismatch))))))) | 237 | mismatch))))))) |
| 235 | 238 | ||
| 236 | ;; Find the place to show, if there is one, | ||
| 237 | ;; and show it until input arrives. | ||
| 238 | (defun show-paren-function () | 239 | (defun show-paren-function () |
| 240 | "Highlight the parentheses until the next input arrives." | ||
| 239 | (let ((data (and show-paren-mode (funcall show-paren-data-function)))) | 241 | (let ((data (and show-paren-mode (funcall show-paren-data-function)))) |
| 240 | (if (not data) | 242 | (if (not data) |
| 241 | (progn | 243 | (progn |