branch: master
commit 123f9e169ff95b0d042323df9559e9c5be175e4b
Author: Wilfred Hughes <[email protected]>
Commit: Oleh Krehel <[email protected]>
swiper-all should consider magit stash buffers too
These sometimes contain interesting text that isn't currently present in
any other buffer.
Fixes #819
---
swiper.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/swiper.el b/swiper.el
index b5ad76b..09e3f69 100644
--- a/swiper.el
+++ b/swiper.el
@@ -764,6 +764,10 @@ Run `swiper' for those buffers."
;; Always consider dired buffers, even though they're not backed
;; by a file.
((eq major-mode #'dired-mode) t)
+ ;; Always consider stash buffers too, as they may have
+ ;; interesting content not present in any buffers. We don't #'
+ ;; quote to satisfy the byte-compiler.
+ ((eq major-mode 'magit-stash-mode) t)
;; Otherwise, only consider the file if it's backed by a file.
(t (buffer-file-name buffer)))))