emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH 5/8] ox-taskjuggler.el: add 'org-taskjuggler-multivalued-property'
@ 2015-11-08 10:18 Kosyrev Serge
  2015-11-12 16:53 ` Rasmus
  0 siblings, 1 reply; 3+ messages in thread
From: Kosyrev Serge @ 2015-11-08 10:18 UTC (permalink / raw)
  To: emacs-orgmode


* 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-12 17:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-08 10:18 [PATCH 5/8] ox-taskjuggler.el: add 'org-taskjuggler-multivalued-property' Kosyrev Serge
2015-11-12 16:53 ` Rasmus
2015-11-12 17:03   ` Kosyrev Serge

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).