emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 123f9e1 258/348: swiper-all should consider magit stash bu


From: Oleh Krehel
Subject: [elpa] master 123f9e1 258/348: swiper-all should consider magit stash buffers too
Date: Sat, 8 Apr 2017 11:04:10 -0400 (EDT)

branch: master
commit 123f9e169ff95b0d042323df9559e9c5be175e4b
Author: Wilfred Hughes <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]