[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/rec-mode a89b7c2 89/98: rec-mode: split fields by comma
From: |
Stefan Monnier |
Subject: |
[elpa] externals/rec-mode a89b7c2 89/98: rec-mode: split fields by comma and whitespace for summary |
Date: |
Thu, 12 Nov 2020 13:18:47 -0500 (EST) |
branch: externals/rec-mode
commit a89b7c2842ed125c1c597bfb89081d2a18a6695b
Author: Antoine Kalmbach <ane@iki.fi>
Commit: Antoine Kalmbach <ane@iki.fi>
rec-mode: split fields by comma and whitespace for summary
2020-11-07 Antoine Kalmbach <ane@iki.fi>
* etc/rec-mode.el (rec-summary-fields): split by comma and space
(rec-cmd-show-summary): split minibuffer input
---
etc/rec-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/etc/rec-mode.el b/etc/rec-mode.el
index b354800..b91c91f 100644
--- a/etc/rec-mode.el
+++ b/etc/rec-mode.el
@@ -912,7 +912,7 @@ current record set."
(when descriptor
(let ((fields-str (rec-record-assoc rec-keyword-summary descriptor)))
(when fields-str
- (split-string (car fields-str)))))))
+ (split-string (car fields-str) "[ ,]"))))))
(defun rec-mandatory-fields ()
"Return a list with the names of the mandatory fields in the
@@ -2077,7 +2077,7 @@ the user is prompted."
(unless summary-fields
(setq summary-fields (list (rec-key)))
(unless (car summary-fields)
- (setq summary-fields (list (read-from-minibuffer "Fields to use in
the summary: ")))))
+ (setq summary-fields (split-string (read-from-minibuffer "Fields
to use in the summary: ") "[ ,]"))))
(if (car summary-fields)
(let* ((query (rec-query :fex (rec-join-string summary-fields
",")))
(summary-list (mapcar (lambda (rec)
- [elpa] externals/rec-mode f7b30a1 34/98: rec-mode: folding of fields., (continued)
- [elpa] externals/rec-mode f7b30a1 34/98: rec-mode: folding of fields., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode cdf4a16 48/98: rec-mode: rec-cmd-count now suggests a default selection expression when invoked with a numeric prefix., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 033a600 64/98: rec-mode: new constant rec-mode-version, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 460a48d 65/98: copyright years updated in some files, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode a997b92 70/98: src, doc, elisp: remove support for hyphens in field names., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 2735e99 72/98: rec-mode: avoid extra unused window in fast selection., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 7e5c145 74/98: rec-mode: use a prefix argument to move N records forward/backward, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 797445b 77/98: rec-mode: fix a call to string-match-p with invalid arguments., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode ef55915 78/98: rec-mode: support search-insensitive searches., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode b447b39 86/98: rec-mode: require tabulated-list., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode a89b7c2 89/98: rec-mode: split fields by comma and whitespace for summary,
Stefan Monnier <=
- [elpa] externals/rec-mode 3e2f5a7 46/98: rec-mode: support for multiple field names in %type entries., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode ceb00b5 41/98: rec-mode: rec-cmd-edit-field supports a numeric argument., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 9f7a14d 43/98: rec-mode: fix edition of the default record set., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode b149dfc 58/98: rec-mode: avoid trying to delete the sole window in the current frame., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode eaf5e93 60/98: rec-mode: support for a mode hook., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 4b485a0 76/98: rec-mode: several fixes while removing byte-compilation warnings., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 80b2815 75/98: rec-mode: fix selection commands when there are more than one record sets on the recfile., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode d97175a 82/98: rec-mode: define faces and use them, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode e94505f 95/98: README, COPYING, Info fixes, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 472f378 39/98: rec-mode: initial work for selection., Stefan Monnier, 2020/11/12