branch: master
commit 64a4d085ec528d11bed6309fd0d03a6eafa9a03b
Author: Eric Abrahamsen <e...@ericabrahamsen.net>
Commit: Eric Abrahamsen <e...@ericabrahamsen.net>

    [gnorb] Check for live Gnus before searching messages
    
    * packages/gnorb/gnorb-gnus.el (gnorb-gnus-search-messages): I thought
    the existing check in nnir-run-gnorb was in the right place to catch
    all this, but apparently not.
---
 packages/gnorb/gnorb-gnus.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/packages/gnorb/gnorb-gnus.el b/packages/gnorb/gnorb-gnus.el
index 9d12e6a..46c1654 100644
--- a/packages/gnorb/gnorb-gnus.el
+++ b/packages/gnorb/gnorb-gnus.el
@@ -892,6 +892,8 @@ HEAD-TEXT, if present, as its name.  Otherwise create an
 ephemeral one, with RET as the value of its quit-config."
   (interactive)
   (require 'nnir)
+  (unless (gnus-alive-p)
+    (gnus))
   (let* ((nnir-address (gnorb-gnus-find-gnorb-server))
         (name (if persist
                   (read-string

Reply via email to