diff options
author | Eli Zaretskii <eliz@gnu.org> | 2021-04-03 10:16:34 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2021-04-03 10:16:34 +0300 |
commit | 3ec93bb7c240edd6e06647a75df31acc6ce600dd (patch) | |
tree | d4b910abc0eb5b8aec91f3c4a312b0cd0443b103 /lisp/replace.el | |
parent | 8a92030f6af29c8b4892218052c2f8da00c45806 (diff) | |
download | emacs-3ec93bb7c240edd6e06647a75df31acc6ce600dd.tar.gz emacs-3ec93bb7c240edd6e06647a75df31acc6ce600dd.tar.bz2 emacs-3ec93bb7c240edd6e06647a75df31acc6ce600dd.zip |
Improve doc strings in replace.el
* lisp/replace.el (occur, list-matching-lines-prefix-face)
(list-matching-lines-jump-to-current-line): Doc fixes.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r-- | lisp/replace.el | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 416d9f1d1ec..43534d23bb5 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -1386,15 +1386,22 @@ If the value is nil, don't highlight the buffer names specially." (defcustom list-matching-lines-jump-to-current-line nil "If non-nil, \\[list-matching-lines] shows the current line highlighted. -Set the point right after such line when there are matches after it." +The current line for this purpose is the line of the original buffer +which was current when \\[list-matching-lines] was invoked. +Point in the `*Occur*' buffer will be set right after such line when +there are matches after it." :type 'boolean :group 'matching :version "26.1") (defcustom list-matching-lines-prefix-face 'shadow "Face used by \\[list-matching-lines] to show the prefix column. -If the face doesn't differ from the default face, -don't highlight the prefix with line numbers specially." +The prefix column is the part of display that precedes the actual +contents of the line; it normally shows the line number. \(For +multiline matches, the prefix column shows the line number for the +first line and whitespace for the rest of the lines.\) +If this face will display the same as the default face, the prefix +column will not be highlighted speciall." :type 'face :group 'matching :version "24.4") @@ -1471,11 +1478,24 @@ REGION must be a list of (START . END) positions as returned by `region-bounds'. The lines are shown in a buffer named `*Occur*'. -It serves as a menu to find any of the occurrences in this buffer. +That buffer can serve as a menu for finding any of the matches for REGEXP +in the current buffer. \\<occur-mode-map>\\[describe-mode] in that buffer will explain how. -If `list-matching-lines-jump-to-current-line' is non-nil, then show -the current line highlighted with `list-matching-lines-current-line-face' -and set point at the first match after such line. + +Matches for REGEXP are shown in the face determined by the +variable `list-matching-lines-face'. +Names of buffers with matched lines are shown in the face determined +by the variable `list-matching-lines-buffer-name-face'. +The line numbers of the matching lines are shown in the face +determined by the variable `list-matching-lines-prefix-face'. + +If `list-matching-lines-jump-to-current-line' is non-nil, then the +line in the current buffer which was current when the command was +invoked will be shown in the `*Occur*' buffer highlighted with +the `list-matching-lines-current-line-face', with point at the end +of that line. (If the current line doesn't match REGEXP, it will +nonetheless be inserted into the `*Occur*' buffer between the 2 +closest lines that do match REGEXP.) If REGEXP contains upper case characters (excluding those preceded by `\\') and `search-upper-case' is non-nil, the matching is case-sensitive. |