From: Kosyrev Serge <_deepfire@feelingofgreen.ru>
To: emacs-orgmode@gnu.org
Subject: [PATCH 5/8] ox-taskjuggler.el: add 'org-taskjuggler-multivalued-property'
Date: Sun, 8 Nov 2015 13:18:43 +0300 [thread overview]
Message-ID: <87h9kulrol.fsf@feelingofgreen.ru> (raw)
* ox-taskjuggler.el (org-taskjuggler-multivalued-property): new function
to operate on multivalued properties.
---
contrib/lisp/ox-taskjuggler.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/contrib/lisp/ox-taskjuggler.el b/contrib/lisp/ox-taskjuggler.el
index 82aaa7e..8036af3 100644
--- a/contrib/lisp/ox-taskjuggler.el
+++ b/contrib/lisp/ox-taskjuggler.el
@@ -836,6 +836,16 @@ channel."
;; Closing report.
"}\n"))
+(defun org-taskjuggler-multivalued-property (property element)
+ "Obtain PROPERTY of ELEMENT, treating it as a multi-valued property.
+
+See `org-entry-get-multivalued-property' for details."
+ (let ((prop (org-element-property property element)))
+ (and prop
+ (mapcar 'org-entry-restore-space
+ (org-split-string prop
+ "[ \t]")))))
+
(defun org-taskjuggler--build-task (task info)
"Return a task declaration.
--
2.5.0
next reply other threads:[~2015-11-09 22:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-08 10:18 Kosyrev Serge [this message]
2015-11-12 16:53 ` [PATCH 5/8] ox-taskjuggler.el: add 'org-taskjuggler-multivalued-property' Rasmus
2015-11-12 17:03 ` Kosyrev Serge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h9kulrol.fsf@feelingofgreen.ru \
--to=_deepfire@feelingofgreen.ru \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).