[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] feature/gnus-select2 5868104 30/32: Allow automatic scanni
From: |
Andrew G Cohen |
Subject: |
[Emacs-diffs] feature/gnus-select2 5868104 30/32: Allow automatic scanning of nnselect groups |
Date: |
Sun, 16 Dec 2018 06:54:05 -0500 (EST) |
branch: feature/gnus-select2
commit 5868104a46328425708c1b6fecb27a372d7b3cfe
Author: Andrew G Cohen <address@hidden>
Commit: Andrew G Cohen <address@hidden>
Allow automatic scanning of nnselect groups
* lisp/gnus/gnus-start.el (gnus-read-active-for-groups): Scan when
activating virtual groups.
* lisp/gnus/nnselect.el (nnselect-request-group): Rescan only if no
artlist is present.
(nnselect-request-group-scan): New function to rescan a group.
(nnselect-request-scan): If called with a group arg rescan that
group.
---
lisp/gnus/gnus-start.el | 2 +-
lisp/gnus/nnselect.el | 27 ++++++++++++++++++++-------
2 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index f15d645..381e89c 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -1835,7 +1835,7 @@ backend check whether the group actually exists."
;; by one.
(t
(dolist (info infos)
- (gnus-activate-group (gnus-info-group info) nil nil method t))))))
+ (gnus-activate-group (gnus-info-group info) t nil method t))))))
;; Create a hash table out of the newsrc alist. The `car's of the
;; alist elements are used as keys.
diff --git a/lisp/gnus/nnselect.el b/lisp/gnus/nnselect.el
index 132f9dd..5a566c3 100644
--- a/lisp/gnus/nnselect.el
+++ b/lisp/gnus/nnselect.el
@@ -220,12 +220,12 @@ If this variable is nil, or if the provided function
returns nil,
t)
-(deffoo nnselect-request-group (group &optional server dont-check info)
+(deffoo nnselect-request-group (group &optional server _dont-check info)
(let ((group (nnselect-possibly-change-group group server))
length)
;; Check for cached select result or run the selection and cache
;; the result.
- (unless (and nnselect-artlist dont-check)
+ (unless nnselect-artlist
(gnus-group-set-parameter
group 'nnselect-artlist
(setq nnselect-artlist
@@ -617,15 +617,28 @@ If this variable is nil, or if the provided function
returns nil,
(deffoo nnselect-request-rename-group (_group _new-name &optional _server)
t)
-(deffoo nnselect-request-scan (_group _method)
- t)
+(deffoo nnselect-request-scan (group _method)
+ (when (and group
+ (gnus-group-get-parameter
+ (gnus-group-prefixed-name
+ (gnus-group-short-name group)
+ '(nnselect "nnselect")) 'nnselect-rescan t))
+ (nnselect-request-group-scan group)))
-(deffoo nnselect-request-list (&optional _server)
- t)
+
+(deffoo nnselect-request-group-scan (group &optional server info)
+ (let ((group (nnselect-possibly-change-group group server)))
+ (gnus-group-set-parameter
+ group 'nnselect-artlist
+ (setq nnselect-artlist
+ (nnselect-run
+ (gnus-group-get-parameter group 'nnselect-specs t))))
+ (nnselect-request-update-info
+ group (or info (gnus-get-info group)))))
;; Add any undefined required backend functions
-(nnoo-define-skeleton nnselect)
+;; (nnoo-define-skeleton nnselect)
;;; Util Code:
- [Emacs-diffs] feature/gnus-select2 514f0cb 04/32: Temporary function to ease search group creation, (continued)
- [Emacs-diffs] feature/gnus-select2 514f0cb 04/32: Temporary function to ease search group creation, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 3444486 16/32: Fix pushing marks on nnselect exit, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 fde0e40 21/32: Restore accidentally remove gnus-summary-make-search-group, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 d2e0389 19/32: Improve group-info handling in nnselect, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 6111aa1 09/32: Don't stomp on local variables in gnus-msg, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 c9c16c9 22/32: * lisp/gnus/nnselect.el (nnselect-server-opened): Just return t., Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 2174d0f 20/32: Improve nnselect-request-article, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 8ad88ac 24/32: * lisp/gnus/nnselect.el (nnselect-request-rename-group): Allow it., Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 73c0da2 27/32: Improve search and select group creation, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 fe5f3c2 32/32: Set gnus-newsgroup-selection in the summary buffer, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 5868104 30/32: Allow automatic scanning of nnselect groups,
Andrew G Cohen <=
- [Emacs-diffs] feature/gnus-select2 0693d49 31/32: Remove nnselect-artlist variable in nnselect, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 5699fda 28/32: * lisp/gnus/gnus-srvr.el (gnus-server-mode-map): Use ephemeral group, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 465b580 29/32: * lisp/gnus/nnir.el (nnir-make-specs): Use the current buffer., Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 10c5fa1 18/32: Remove unnecessary listing in nnselect-categorize, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 5d9101a 25/32: Inline nnselect helper macros, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 0187e0b 26/32: Redo entry functions for making search groups, Andrew G Cohen, 2018/12/16
- [Emacs-diffs] feature/gnus-select2 fe97015 01/32: Initial landing of gnus nnselect backend, Andrew G Cohen, 2018/12/16