[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 40fe377 391/449: Gnorb: Try harder to find the nn
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 40fe377 391/449: Gnorb: Try harder to find the nngnorb server |
Date: |
Fri, 27 Nov 2020 23:16:18 -0500 (EST) |
branch: externals/gnorb
commit 40fe377c3b64a3ada84b0188324785de9b91cbeb
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Gnorb: Try harder to find the nngnorb server
* packages/gnorb/gnorb-gnus.el (gnorb-gnus-search-messages): Check
gnus-secondary-select-methods, gnus-server-alist, and
gnus-server-method-cache.
---
gnorb-gnus.el | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/gnorb-gnus.el b/gnorb-gnus.el
index 0750261..dfef37a 100644
--- a/gnorb-gnus.el
+++ b/gnorb-gnus.el
@@ -731,20 +731,31 @@ reply."
(defun gnorb-gnus-search-messages (str persist &optional head-text ret)
"Initiate a search for gnus message links in an org subtree.
The arg STR can be one of two things: an Org heading id value
-\(IDs should be prefixed with \"id+\"\), in which case links will
+\(IDs should be prefixed with \"id+\"), in which case links will
be collected from that heading, or a string corresponding to an
Org tags search, in which case links will be collected from all
matching headings.
In either case, once a collection of links have been made, they
will all be displayed in an ephemeral group on the \"nngnorb\"
-server. There must be an active \"nngnorb\" server for this to
-work."
+server. There must be an active \"nngnorb\" server for this to
+work.
+
+If PERSIST is non-nil, make a permanent group, and offer
+HEAD-TEXT, if present, as its name. Otherwise create an
+ephemeral one, with RET as the value of its quit-config."
(interactive)
(require 'nnir)
(let* ((nnir-address
(or (catch 'found
- (dolist (s gnus-server-method-cache)
+ ;; Try very hard to find the server.
+ (when (assoc 'nngnorb gnus-secondary-select-methods)
+ (throw 'found
+ (format
+ "nngnorb:%s"
+ (nth 1 (assoc 'nngnorb
+ gnus-seconard-select-methods)))))
+ (dolist (s (append gnus-server-alist gnus-server-method-cache))
(when (eq 'nngnorb (cadr s))
(throw 'found (car s)))))
(user-error
@@ -756,8 +767,10 @@ work."
(concat "gnorb-" str)))
(method (list 'nnir nnir-address))
(spec (list
- (cons 'nnir-specs (list (cons 'nnir-query-spec `((query .
,str)))
- (cons 'nnir-group-spec `((,nnir-address
,(list name))))))
+ (cons 'nnir-specs (list (cons 'nnir-query-spec
+ `((query . ,str)))
+ (cons 'nnir-group-spec
+ `((,nnir-address ,(list name))))))
(cons 'nnir-artlist nil))))
(if persist
(progn
- [elpa] externals/gnorb 27b58a9 364/449: Fix autoloads for BBDB functions, (continued)
- [elpa] externals/gnorb 27b58a9 364/449: Fix autoloads for BBDB functions, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d1299d2 388/449: Gnorb: Consolidate all after-capture functions into one, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 6722839 327/449: Formatting improvements, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8c2fb15 329/449: nngnorb.el: Handle non-existent nnir-tmp-buffer, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9da022f 366/449: Fix creation of nngnorb/nnir groups, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 632b03d 367/449: Add gnorb-version command, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7908f75 371/449: Update Gnus summary article line after trigger process, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e865a8b 381/449: Odd bug in gnorb-org-handle-mail, bump to 1.3.1, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb af3521f 385/449: When responding, let a blank sender pass, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5d59ba6 392/449: Gnorb: Bump version to 1.3.3, tiny manual fix, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 40fe377 391/449: Gnorb: Try harder to find the nngnorb server,
Stefan Monnier <=
- [elpa] externals/gnorb 30a6171 404/449: Factor out function for finding nngnorb server, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb ccf7847 443/449: [gnorb] Check for live Gnus before searching messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 15a38e9 423/449: gnorb: More guards for visiting an original Org capture buffer, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5261d2f7 407/449: New gnorb-helm file, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5fbc25e 395/449: Gnorb: Re-work the capture hook functions., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 1f71a97 408/449: Update copyright notices, bump to version 1.5, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 0b503b4 436/449: [gnorb] Update copyright years, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 03ba6e5 412/449: [gnorb] Don't use make-temp-name for registry searches, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5bac9a7 428/449: [gnorb] Compiler-complaint fixes, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 0856e48 446/449: [gnorb] Add code path for users with nnselect available, Stefan Monnier, 2020/11/27