[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/elisa 14af9ae960 66/98: Improve collection management
From: |
ELPA Syncer |
Subject: |
[elpa] externals/elisa 14af9ae960 66/98: Improve collection management |
Date: |
Wed, 17 Jul 2024 18:58:05 -0400 (EDT) |
branch: externals/elisa
commit 14af9ae960214e31bb12a95fecc9c2c668210b13
Author: Sergey Kostyaev <kostyaev.sergey2@wb.ru>
Commit: Sergey Kostyaev <kostyaev.sergey2@wb.ru>
Improve collection management
---
elisa.el | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/elisa.el b/elisa.el
index e2cc56a9fc..aa06752113 100644
--- a/elisa.el
+++ b/elisa.el
@@ -1152,6 +1152,12 @@ Call ON-DONE callback with result as an argument after
FUNC evaluation done."
(setq elisa-enabled-collections
(cl-remove col elisa-enabled-collections :test #'string=))))
+;;;###autoload
+(defun elisa-disble-all-collections ()
+ "Disable all collections."
+ (interactive)
+ (mapc #'elisa-disable-collection elisa-enabled-collections))
+
;;;###autoload
(defun elisa-enable-collection (&optional collection)
"Enable COLLECTION."
@@ -1159,10 +1165,13 @@ Call ON-DONE callback with result as an argument after
FUNC evaluation done."
(let ((col (or collection
(completing-read
"Enable collection: "
- (flatten-tree
- (sqlite-select
- elisa-db
- "select name from collections;"))))))
+ (cl-remove-if
+ (lambda (c)
+ (cl-find c elisa-enabled-collections :test #'string=))
+ (flatten-tree
+ (sqlite-select
+ elisa-db
+ "select name from collections;")))))))
(push col elisa-enabled-collections)))
;;;###autoload
- [elpa] externals/elisa e5691f59c5 80/98: Make syncronous functions non-interactive, (continued)
- [elpa] externals/elisa e5691f59c5 80/98: Make syncronous functions non-interactive, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa e92628390b 82/98: Update example configuration, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa 39915439a4 84/98: Update installation instructions, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa fbfe3b4ae1 86/98: Merge pull request #12 from s-kostyaev/semantic-split, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa 3882b9b322 87/98: Bump version, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa 04d580f072 92/98: add vector- and vss-path to injected variables on async, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa 1acc89545d 31/98: Merge pull request #13 from s-kostyaev/fix-builtin-manuals-parsing, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa 3eff22d4b6 53/98: Use new railways for info manuals, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa 503083c0fb 58/98: Truncate long lines in done message, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa 25e0df1dca 65/98: Create customization group, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa 14af9ae960 66/98: Improve collection management,
ELPA Syncer <=
- [elpa] externals/elisa 7460059992 85/98: Update CI, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa cdf3ece6b4 93/98: Merge pull request #19 from dabi/patch-1, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa 3372452de2 94/98: Bump version, ELPA Syncer, 2024/07/17
- [elpa] externals/elisa 7cbb3bfc13 97/98: Merge pull request #18 from s-kostyaev/gnu-elpa-release, ELPA Syncer, 2024/07/17