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 /etc | |
| 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 'etc')
| -rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -311,6 +311,11 @@ substituted by a home directory by writing it as "/foo:/:/~/file". | |||
| 311 | * Editing Changes in Emacs 26.1 | 311 | * Editing Changes in Emacs 26.1 |
| 312 | 312 | ||
| 313 | +++ | 313 | +++ |
| 314 | ** Two new user options 'list-matching-lines-jump-to-current-line' and | ||
| 315 | 'list-matching-lines-current-line-face' to show highlighted the current | ||
| 316 | line in *Occur* buffer. | ||
| 317 | |||
| 318 | +++ | ||
| 314 | ** The 'occur' command can now operate on the region. | 319 | ** The 'occur' command can now operate on the region. |
| 315 | 320 | ||
| 316 | +++ | 321 | +++ |