aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el34
1 files changed, 27 insertions, 7 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index f131d263ec6..71c6e651c74 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -1477,15 +1477,22 @@ If the value is nil, don't highlight the buffer names specially."
1477 1477
1478(defcustom list-matching-lines-jump-to-current-line nil 1478(defcustom list-matching-lines-jump-to-current-line nil
1479 "If non-nil, \\[list-matching-lines] shows the current line highlighted. 1479 "If non-nil, \\[list-matching-lines] shows the current line highlighted.
1480Set the point right after such line when there are matches after it." 1480The current line for this purpose is the line of the original buffer
1481which was current when \\[list-matching-lines] was invoked.
1482Point in the `*Occur*' buffer will be set right after such line when
1483there are matches after it."
1481:type 'boolean 1484:type 'boolean
1482:group 'matching 1485:group 'matching
1483:version "26.1") 1486:version "26.1")
1484 1487
1485(defcustom list-matching-lines-prefix-face 'shadow 1488(defcustom list-matching-lines-prefix-face 'shadow
1486 "Face used by \\[list-matching-lines] to show the prefix column. 1489 "Face used by \\[list-matching-lines] to show the prefix column.
1487If the face doesn't differ from the default face, 1490The prefix column is the part of display that precedes the actual
1488don't highlight the prefix with line numbers specially." 1491contents of the line; it normally shows the line number. \(For
1492multiline matches, the prefix column shows the line number for the
1493first line and whitespace for the rest of the lines.\)
1494If this face will display the same as the default face, the prefix
1495column will not be highlighted speciall."
1489 :type 'face 1496 :type 'face
1490 :group 'matching 1497 :group 'matching
1491 :version "24.4") 1498 :version "24.4")
@@ -1565,11 +1572,24 @@ REGION must be a list of (START . END) positions as returned by
1565`region-bounds'. 1572`region-bounds'.
1566 1573
1567The lines are shown in a buffer named `*Occur*'. 1574The lines are shown in a buffer named `*Occur*'.
1568It serves as a menu to find any of the occurrences in this buffer. 1575That buffer can serve as a menu for finding any of the matches for REGEXP
1576in the current buffer.
1569\\<occur-mode-map>\\[describe-mode] in that buffer will explain how. 1577\\<occur-mode-map>\\[describe-mode] in that buffer will explain how.
1570If `list-matching-lines-jump-to-current-line' is non-nil, then show 1578
1571the current line highlighted with `list-matching-lines-current-line-face' 1579Matches for REGEXP are shown in the face determined by the
1572and set point at the first match after such line. 1580variable `list-matching-lines-face'.
1581Names of buffers with matched lines are shown in the face determined
1582by the variable `list-matching-lines-buffer-name-face'.
1583The line numbers of the matching lines are shown in the face
1584determined by the variable `list-matching-lines-prefix-face'.
1585
1586If `list-matching-lines-jump-to-current-line' is non-nil, then the
1587line in the current buffer which was current when the command was
1588invoked will be shown in the `*Occur*' buffer highlighted with
1589the `list-matching-lines-current-line-face', with point at the end
1590of that line. (If the current line doesn't match REGEXP, it will
1591nonetheless be inserted into the `*Occur*' buffer between the 2
1592closest lines that do match REGEXP.)
1573 1593
1574If REGEXP contains upper case characters (excluding those preceded by `\\') 1594If REGEXP contains upper case characters (excluding those preceded by `\\')
1575and `search-upper-case' is non-nil, the matching is case-sensitive. 1595and `search-upper-case' is non-nil, the matching is case-sensitive.