From fa321dae2192bf267c41e425294e4f87c60a748d Mon Sep 17 00:00:00 2001 From: "modula t. worm" Date: Tue, 21 Nov 2023 08:31:34 -0600 Subject: [PATCH] `swiper-all`: Ignore image-mode buffers --- swiper.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swiper.el b/swiper.el index 454a149e..3eb25465 100644 --- a/swiper.el +++ b/swiper.el @@ -1244,6 +1244,8 @@ otherwise continue prompting for buffers." (cond ;; Ignore TAGS buffers, they tend to add duplicate results. ((eq mode #'tags-table-mode) nil) + ;; Ignore buffers being displayed as images + ((eq mode 'image-mode) nil) ;; Always consider dired buffers, even though they're not backed ;; by a file. ((eq mode #'dired-mode) t)