[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb a51a99d 142/449: Speedier display of messages in
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb a51a99d 142/449: Speedier display of messages in nnir search |
Date: |
Fri, 27 Nov 2020 23:15:26 -0500 (EST) |
branch: externals/gnorb
commit a51a99d314faf9b54b293ee0f13078c4c6aec7b1
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Speedier display of messages in nnir search
lisp/nngnorb.el: (nnir-run-gnorb) Was using gnus-activate-group for each
link, to ensure it existed. Dog slow, and unnecessary:
if gnus-request-head errors, that's all we need to know
to drop the link
---
lisp/nngnorb.el | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/lisp/nngnorb.el b/lisp/nngnorb.el
index 581d95f..01d19e7 100644
--- a/lisp/nngnorb.el
+++ b/lisp/nngnorb.el
@@ -117,17 +117,14 @@ be scanned for gnus messages, and those messages
displayed."
(gnus))
(dolist (m links (when vectors
(nreverse vectors)))
- (let (server-group msg-id artno)
+ (let (server-group msg-id result artno)
(setq m (org-link-unescape m))
(when (string-match "\\`\\([^#]+\\)\\(#\\(.*\\)\\)?" m)
(setq server-group (match-string 1 m)
- msg-id (match-string 3 m))
- ;; I swear just finding the `gnus-request-head' function
- ;; was a trial in itself. But I've only tried it with
- ;; nnimap -- does it work for other backends?
- (when (gnus-activate-group server-group)
- (setq artno
- (cdr (gnus-request-head msg-id server-group)))
+ msg-id (match-string 3 m)
+ result (ignore-errors (gnus-request-head msg-id
server-group)))
+ (when result
+ (setq artno (cdr result))
(when (and (integerp artno) (> artno 0))
(push (vector server-group artno 100) vectors)))))))))
- [elpa] externals/gnorb e3db6ae 111/449: Return visit candidates correctly., (continued)
- [elpa] externals/gnorb e3db6ae 111/449: Return visit candidates correctly., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4a845bd 116/449: Who knew there's actually a version= function?, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 85797d0 120/449: Be more careful about what MIME parts we attach, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e4ab4d5 122/449: Finer control over how attachments are saved, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5d20bb5 125/449: Clean up saved sent-message info, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 908cdee 107/449: Slight improvement to point placement in new messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a083a99 114/449: First draft: BBDB field for saving links to messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e33a758 127/449: Clearer docstring, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f3f3bf2 128/449: Fix Agenda BBDB popup for searches with no tags, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7e9235f 138/449: First highly ugly version of gnorb-gnus-view, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a51a99d 142/449: Speedier display of messages in nnir search,
Stefan Monnier <=
- [elpa] externals/gnorb 0b7c640 074/449: Make use of the multivalued property functions, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f3e56d2 042/449: gnorb-org-mail-todos -- new docstring and default, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8f598e1 044/449: Delete previous commented function, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b5d3731 046/449: What on earth was that still doing there?, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 0db3991 051/449: Move mail search backend stuff to gnorb-gnus, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9fff78a 057/449: Changing email TODO handling to operate by org ID, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 30afb67 068/449: Various docstring and comment edits., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7052248 069/449: New generalized function gnorb-trigger-todo-action, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 70b5534 070/449: Make TODOs from outgoing messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb bda9cfe 079/449: More complete docs: How to use Gnorb for email tracking, Stefan Monnier, 2020/11/27