[gnus git] branch master updated: m0-5-295-gb6318d7 =1= nnir.el (gnus-nnir-group-p): Fix to work with unprefixed groups.

Andrew Cohen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  b6318d71b730210cd123dd373d9e800374acfb93 (commit)
      from  6c572d958646cf42abc5c163812a92f183f5be27 (commit)


- Log -----------------------------------------------------------------
commit b6318d71b730210cd123dd373d9e800374acfb93
Author: Andrew Cohen <[email protected]>
Date:   Thu Apr 4 11:07:09 2013 -0400

    nnir.el (gnus-nnir-group-p): Fix to work with unprefixed groups.

diff --git a/lisp/nnir.el b/lisp/nnir.el
index 871ac96..779bd2c 100644
--- a/lisp/nnir.el
+++ b/lisp/nnir.el
@@ -1709,8 +1709,9 @@ actually)."
 
 (defun gnus-nnir-group-p (group)
   "Say whether GROUP is nnir or not."
-  (eq 'nnir (car (gnus-find-method-for-group group))))
-
+  (if (gnus-group-prefixed-p group)
+      (eq 'nnir (car (gnus-find-method-for-group group)))
+    (and group (string-match "^nnir" group))))
 
 (defun nnir-read-parms (nnir-search-engine)
   "Reads additional search parameters according to `nnir-engines'."

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/nnir.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.