[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b894874 309/348: ivy.el (ivy-occur-grep-mode): Call wgrep-
From: |
Oleh Krehel |
Subject: |
[elpa] master b894874 309/348: ivy.el (ivy-occur-grep-mode): Call wgrep-setup if available |
Date: |
Sat, 8 Apr 2017 11:04:20 -0400 (EDT) |
branch: master
commit b8948744176bb423cafbc0fd9f185dc101b4371e
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy-occur-grep-mode): Call wgrep-setup if available
* ivy.el (ivy-occur-revert-buffer): Call `wgrep-setup', through
`ivy-occur-grep-mode'.
Re #904
---
ivy.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/ivy.el b/ivy.el
index f5af50a..fc21d19 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3435,9 +3435,9 @@ When `ivy-calling' isn't nil, call `ivy-occur-press'."
"Major mode for output from \\[ivy-occur].
\\{ivy-occur-grep-mode-map}"
- (setq-local view-read-only nil))
-
-(add-hook 'ivy-occur-grep-mode-hook 'wgrep-setup)
+ (setq-local view-read-only nil)
+ (when (fboundp 'wgrep-setup)
+ (wgrep-setup)))
(defvar ivy--occurs-list nil
"A list of custom occur generators per command.")
@@ -3519,7 +3519,8 @@ updated original buffer."
(error "buffer was killed"))
(let ((inhibit-read-only t))
(erase-buffer)
- (funcall (plist-get ivy--occurs-list caller) t))))
+ (funcall (plist-get ivy--occurs-list caller) t)
+ (ivy-occur-grep-mode))))
((memq caller '(counsel-git-grep counsel-grep counsel-ag counsel-rg))
(let ((inhibit-read-only t))
(erase-buffer)
- [elpa] master 20744aa 337/348: doc/Changelog.org: Prepare for 0.9.0, (continued)
- [elpa] master 20744aa 337/348: doc/Changelog.org: Prepare for 0.9.0, Oleh Krehel, 2017/04/08
- [elpa] master 13a3f2d 342/348: doc/Changelog.org: Sort stuff, Oleh Krehel, 2017/04/08
- [elpa] master 69dfed9 146/348: counsel.el (counsel-dpkg): Remove typo, Oleh Krehel, 2017/04/08
- [elpa] master 55a90c9 152/348: Make with-ivy-window not necessary in action, Oleh Krehel, 2017/04/08
- [elpa] master 9d693ec 158/348: Use a lighter color for ivy-remote in dark themes, Oleh Krehel, 2017/04/08
- [elpa] master 9b13aa4 170/348: ivy.el (ivy-flip): Allow to flip candidates/input, Oleh Krehel, 2017/04/08
- [elpa] master 2bc1d7b 276/348: ivy.el (ivy--occur-insert-lines): Scroll to first cand, Oleh Krehel, 2017/04/08
- [elpa] master b1c6cc8 300/348: swiper.el (swiper-all): Fix case-fold-search, Oleh Krehel, 2017/04/08
- [elpa] master c3f5f28 305/348: Add circe-mode to swiper-font-lock-exclude, Oleh Krehel, 2017/04/08
- [elpa] master 7100925 302/348: ivy.el (ivy-completing-read-handlers-alist): New defcustom, Oleh Krehel, 2017/04/08
- [elpa] master b894874 309/348: ivy.el (ivy-occur-grep-mode): Call wgrep-setup if available,
Oleh Krehel <=
- [elpa] master 80d3fe3 310/348: Fix compilation warnings, Oleh Krehel, 2017/04/08
- [elpa] master b0ccc7a 312/348: README.md: Recommend enable-recursive-minibuffers, Oleh Krehel, 2017/04/08
- [elpa] master 1ac1cc1 316/348: ivy.el (ivy-completing-read): Don't require-match for null, Oleh Krehel, 2017/04/08
- [elpa] master 7ca301b 334/348: swiper.el (swiper-goto-start-of-match) New defcustom, Oleh Krehel, 2017/04/08
- [elpa] master fc2e198 335/348: swiper.el (swiper--action): Set evil search direction to forward, Oleh Krehel, 2017/04/08
- [elpa] master 718a06b 345/348: doc/Changelog.org: Fix links, Oleh Krehel, 2017/04/08
- [elpa] master 802c9da 271/348: counsel.el: Add counsel-command-history, Oleh Krehel, 2017/04/08
- [elpa] master ee91a25 283/348: ivy.el (ivy--sort-maybe): Fix byte-compiler warning, Oleh Krehel, 2017/04/08
- [elpa] master dc693c3 280/348: Make ivy--flx-sort more intelligent, Oleh Krehel, 2017/04/08
- [elpa] master 182e35e 298/348: Apply search highlighting for evil when applicable, Oleh Krehel, 2017/04/08