]> code.delx.au - gnu-emacs/commit
Restore the point in grep buffers when traversing the history
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 3 Apr 2016 18:13:52 +0000 (20:13 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 3 Apr 2016 18:13:52 +0000 (20:13 +0200)
commitf7c5f79ca565d3ef3feeb1e0af5ca261f1bcf58a
tree5703de03b14af261effa3a689e419072ae3fb6ca
parenta32eea60ac90d367435860fe3a10bf843e6f497c
Restore the point in grep buffers when traversing the history

* lisp/progmodes/grep.el (grep-process-setup): Allow moving
point to a specific place after finishing the grep command.
(grep-mode): Use it to restore point after traversing the history.
(grep--history-point): New internal variable.
(grep--save-history, grep-forward-history): Use it to restore
the point.
lisp/progmodes/grep.el