summaryrefslogtreecommitdiff
path: root/ebib-keywords.el
diff options
context:
space:
mode:
authorJoost Kremers <joostkremers@fastmail.fm>2015-01-25 23:59:11 +0100
committerJoost Kremers <joostkremers@fastmail.fm>2015-01-25 23:59:11 +0100
commite164cb45bac5a173189d63df098862b2eff7f125 (patch)
tree066c50ced9849ddda3ef474af2d38e7fb5efd17c /ebib-keywords.el
parente9ef71bbb4ccb6847d46a225129f1aaebadb259e (diff)
Add TODO note to ebib--keywords-to-list
Diffstat (limited to 'ebib-keywords.el')
-rw-r--r--ebib-keywords.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/ebib-keywords.el b/ebib-keywords.el
index d5333cf..e1a59c6 100644
--- a/ebib-keywords.el
+++ b/ebib-keywords.el
@@ -135,6 +135,10 @@ Also automatically remove duplicates."
"Convert STR to a list of keywords.
STR should be a string containing keywords separated by
`ebib-keywords-separator'."
+ ;; TODO The strings should really be trimmed. In Emacs 24.4,
+ ;; `split-string' has an additional argument that does this, but that's
+ ;; not available in 24.3. An alternative would be `s-trim' from the `s'
+ ;; library.
(split-string str (regexp-quote ebib-keywords-separator) t))
(defun ebib--keywords-sort (keywords)