diff options
| author | Tino Calancha | 2017-02-02 19:13:27 +0900 |
|---|---|---|
| committer | Tino Calancha | 2017-02-02 19:13:27 +0900 |
| commit | e280b94dcd6ed42439718ddf9dd704169f6bb536 (patch) | |
| tree | 2d1fc5428a6748c22bc1aed0ddde5309ec06cdc5 /doc | |
| parent | 8e871aef10455eefc34790a9ec011c6fec5e93fe (diff) | |
| download | emacs-e280b94dcd6ed42439718ddf9dd704169f6bb536.tar.gz emacs-e280b94dcd6ed42439718ddf9dd704169f6bb536.zip | |
Show current line highlighted in *Occur* buffer
* lisp/replace.el (list-matching-lines-current-line-face)
(list-matching-lines-jump-to-current-line): New user options.
(occur--orig-line, occur--orig-line-str): New variables.
(occur, occur-engine): Use them.
(occur--final-pos): New variable.
(occur-1): Use it.
(occur-engine): Idem.
Show the current line with 'list-matching-lines-current-line-face'.
Set point on the first matching line after the current one.
* etc/NEWS: Add entry for the new option.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/search.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 2a67619678b..a6cb1a4c9f5 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi | |||
| @@ -1726,6 +1726,10 @@ face. A numeric argument @var{n} specifies that @var{n} lines of | |||
| 1726 | context are to be displayed before and after each matching line. | 1726 | context are to be displayed before and after each matching line. |
| 1727 | The default number of context lines is specified by the variable | 1727 | The default number of context lines is specified by the variable |
| 1728 | @code{list-matching-lines-default-context-lines}. | 1728 | @code{list-matching-lines-default-context-lines}. |
| 1729 | When @code{list-matching-lines-jump-to-current-line} is non-nil, | ||
| 1730 | the current line is shown highlighted with face | ||
| 1731 | @code{list-matching-lines-current-line-face} and the point is set | ||
| 1732 | at the first match after such line. | ||
| 1729 | 1733 | ||
| 1730 | You can also run @kbd{M-s o} when an incremental search is active; | 1734 | You can also run @kbd{M-s o} when an incremental search is active; |
| 1731 | this uses the current search string. | 1735 | this uses the current search string. |