[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 0b7c640 074/449: Make use of the multivalued prop
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 0b7c640 074/449: Make use of the multivalued property functions |
Date: |
Fri, 27 Nov 2020 23:15:11 -0500 (EST) |
branch: externals/gnorb
commit 0b7c640097d7d89eae13c14c2c6f7fdd8769df44
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Make use of the multivalued property functions
lisp/gnorb-utils.el: (gnorb-trigger-todo-action) When getting/setting
the gnorb-message-msg-id-key property on entries, use
the *-multivalued-property convenience functions instead of replicating
them ourselves.
---
lisp/gnorb-utils.el | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/lisp/gnorb-utils.el b/lisp/gnorb-utils.el
index 149b281..8b7ebd2 100644
--- a/lisp/gnorb-utils.el
+++ b/lisp/gnorb-utils.el
@@ -129,16 +129,12 @@ the prefix arg."
(point-at-bol))
ret-dest-todo (org-entry-get
root-marker "TODO"))
- (let ((ids (org-entry-get root-marker gnorb-org-msg-id-key))
+ (let ((ids (org-entry-get-multivalued-property
+ root-marker gnorb-org-msg-id-key))
(sent-id (plist-get gnorb-gnus-sending-message-info :msg-id)))
- ;; we can use `org-entry-get-multivalued-property' and
- ;; `org-entry-put-multivalued-property' here.
(when sent-id
- (org-entry-put root-marker
- gnorb-org-msg-id-key
- (if (stringp ids)
- (concat ids "," sent-id)
- sent-id)))
+ (org-entry-add-to-multivalued-property
+ root-marker gnorb-org-msg-id-key))
(if (eq action 'note)
(call-interactively note-func)
(when (or (and ret-dest-todo
- [elpa] externals/gnorb 4a845bd 116/449: Who knew there's actually a version= function?, (continued)
- [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, 2020/11/27
- [elpa] externals/gnorb 0b7c640 074/449: Make use of the multivalued property functions,
Stefan Monnier <=
- [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
- [elpa] externals/gnorb c0e03b2 081/449: Actually add the sent message ID to the TODO, Stefan Monnier, 2020/11/27