diff options
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 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. |
| 1480 | Set the point right after such line when there are matches after it." | 1480 | The current line for this purpose is the line of the original buffer |
| 1481 | which was current when \\[list-matching-lines] was invoked. | ||
| 1482 | Point in the `*Occur*' buffer will be set right after such line when | ||
| 1483 | there 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. |
| 1487 | If the face doesn't differ from the default face, | 1490 | The prefix column is the part of display that precedes the actual |
| 1488 | don't highlight the prefix with line numbers specially." | 1491 | contents of the line; it normally shows the line number. \(For |
| 1492 | multiline matches, the prefix column shows the line number for the | ||
| 1493 | first line and whitespace for the rest of the lines.\) | ||
| 1494 | If this face will display the same as the default face, the prefix | ||
| 1495 | column 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 | ||
| 1567 | The lines are shown in a buffer named `*Occur*'. | 1574 | The lines are shown in a buffer named `*Occur*'. |
| 1568 | It serves as a menu to find any of the occurrences in this buffer. | 1575 | That buffer can serve as a menu for finding any of the matches for REGEXP |
| 1576 | in 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. |
| 1570 | If `list-matching-lines-jump-to-current-line' is non-nil, then show | 1578 | |
| 1571 | the current line highlighted with `list-matching-lines-current-line-face' | 1579 | Matches for REGEXP are shown in the face determined by the |
| 1572 | and set point at the first match after such line. | 1580 | variable `list-matching-lines-face'. |
| 1581 | Names of buffers with matched lines are shown in the face determined | ||
| 1582 | by the variable `list-matching-lines-buffer-name-face'. | ||
| 1583 | The line numbers of the matching lines are shown in the face | ||
| 1584 | determined by the variable `list-matching-lines-prefix-face'. | ||
| 1585 | |||
| 1586 | If `list-matching-lines-jump-to-current-line' is non-nil, then the | ||
| 1587 | line in the current buffer which was current when the command was | ||
| 1588 | invoked will be shown in the `*Occur*' buffer highlighted with | ||
| 1589 | the `list-matching-lines-current-line-face', with point at the end | ||
| 1590 | of that line. (If the current line doesn't match REGEXP, it will | ||
| 1591 | nonetheless be inserted into the `*Occur*' buffer between the 2 | ||
| 1592 | closest lines that do match REGEXP.) | ||
| 1573 | 1593 | ||
| 1574 | If REGEXP contains upper case characters (excluding those preceded by `\\') | 1594 | If REGEXP contains upper case characters (excluding those preceded by `\\') |
| 1575 | and `search-upper-case' is non-nil, the matching is case-sensitive. | 1595 | and `search-upper-case' is non-nil, the matching is case-sensitive. |