+++
'M-s h l' invokes highlight-lines-matching-regexp using the search
-string to highlight lines matching the search string. This is similar
+string to highlight lines matching the search string. This is similar
to the existing binding 'M-s h r' (highlight-regexp) that highlights
JUST the search string.
"Run HI-LOCK-FUNC to exit isearch, leaving the matches highlighted.
This is the internal function used by `isearch-highlight-regexp'
and `isearch-highlight-lines-matching-regexp' to invoke
-HI-LOCK-FUNC (either `highlight-regexp' or
-`highlight-lines-matching-regexp' respectively)."
+HI-LOCK-FUNC (either `highlight-regexp' or `highlight-lines-matching-regexp',
+respectively)."
(let (
;; Set `isearch-recursive-edit' to nil to prevent calling
;; `exit-recursive-edit' in `isearch-done' that terminates
(and isearch-recursive-edit (exit-recursive-edit)))
(defun isearch-highlight-regexp ()
- "Exit Isearch mode, and call `highlight-regexp' with its regexp
-argument from the last search, and the face from
-`hi-lock-read-face-name'."
+ "Exit Isearch mode and call `highlight-regexp'.
+The arguments passed to `highlight-regexp' are the regexp from
+the last search and the face from `hi-lock-read-face-name'."
(interactive)
(isearch--highlight-regexp-or-lines 'highlight-regexp))
(defun isearch-highlight-lines-matching-regexp ()
- "Exit Isearch mode, and call `highlight-lines-matching-regexp'
-with its regexp argument from the last search, and the face from
-`hi-lock-read-face-name'."
+ "Exit Isearch mode and call `highlight-lines-matching-regexp'.
+The arguments passed to `highlight-lines-matching-regexp' are the
+regexp from the last search and the face from `hi-lock-read-face-name'."
(interactive)
(isearch--highlight-regexp-or-lines 'highlight-lines-matching-regexp))