aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTino Calancha2017-02-02 19:13:27 +0900
committerTino Calancha2017-02-02 19:13:27 +0900
commite280b94dcd6ed42439718ddf9dd704169f6bb536 (patch)
tree2d1fc5428a6748c22bc1aed0ddde5309ec06cdc5 /doc
parent8e871aef10455eefc34790a9ec011c6fec5e93fe (diff)
downloademacs-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.texi4
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
1726context are to be displayed before and after each matching line. 1726context are to be displayed before and after each matching line.
1727The default number of context lines is specified by the variable 1727The 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}.
1729When @code{list-matching-lines-jump-to-current-line} is non-nil,
1730the current line is shown highlighted with face
1731@code{list-matching-lines-current-line-face} and the point is set
1732at the first match after such line.
1729 1733
1730You can also run @kbd{M-s o} when an incremental search is active; 1734You can also run @kbd{M-s o} when an incremental search is active;
1731this uses the current search string. 1735this uses the current search string.