]> git.eshelyaron.com Git - emacs.git/commit
Support occur command operating on the region from Isearch.
authorJuri Linkov <juri@linkov.net>
Tue, 6 Feb 2018 21:20:10 +0000 (23:20 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 6 Feb 2018 21:20:10 +0000 (23:20 +0200)
commit31350817ae6eda2e071dbc28f1f1edc50e5f3b0c
tree60bc5152558543048b7dc6446ca27a13b7091926
parent5c414441ed73f1a302a2953dc493e83b98589262
Support occur command operating on the region from Isearch.

* lisp/isearch.el (isearch-occur): Use region-bounds as region arg of occur.
(isearch-query-replace): Use use-region-p.

* lisp/replace.el (occur--region-start-line): Rename from
occur--matches-threshold.
(occur): Use complete lines when region is active for line-oriented occur.
(occur-engine): Count lines either from occur--region-start-line or 1.
lisp/isearch.el
lisp/replace.el