Re: [O] org-map-entries but with arguments?

2019-09-19 Thread Matt Price
On Wed., Sep. 18, 2019, 9:42 p.m. John Kitchin, wrote: > You can get an alist of all the properties in an entry with > org-entry-properties, and then you can let-alist these, or do something > else. Here is an example that might be related. > > * test > :PROPERTIES: > :some-random-property: T

Re: [O] org-map-entries but with arguments?

2019-09-18 Thread John Kitchin
You can get an alist of all the properties in an entry with org-entry-properties, and then you can let-alist these, or do something else. Here is an example that might be related. * test :PROPERTIES: :some-random-property: True :END: #+BEGIN_SRC emacs-lisp :results code (org-entry-propertie

Re: [O] org-map-entries but with arguments?

2019-09-18 Thread Adam Porter
Matt Price writes: > OK, this is pretty cool, thank you. I took John's excellent > suggestion of using a headline property to store the appropriate > actions, but it makes sense to switch to org-ql if I can master the > syntax (which seems awfully powerful). One questions: does > org-ql-se

Re: [O] org-map-entries but with arguments?

2019-09-18 Thread Matt Price
Sorry, replied to Adam directly by accident. On Wed, Sep 18, 2019 at 8:32 PM Matt Price wrote: > > > On Wed, Sep 18, 2019 at 5:31 PM Adam Porter wrote: > >> Matt Price writes: >> >> > Is there a lisp trick for adding arguments to the function called by >> > `org-map-entries`? >> > >> > I have

Re: [O] org-map-entries but with arguments?

2019-09-18 Thread John Kitchin
I guess this information should be accessible in the entry where the function is called, e.g. by a property (that may be inherited or set in the file). then in your function just get the property values and do what you want. Alternatively, you can probably do this with global (or maybe lexically le

Re: [O] org-map-entries but with arguments?

2019-09-18 Thread Adam Porter
Matt Price writes: > Is there a lisp trick for adding arguments to the function called by > `org-map-entries`? > > I have the following function: > > (cl-defun org-lms-return-all-assignments (&optional (send-all nil) (also-mail > nil) (post-to-lms t) ) > "By default mail all subtrees 'READY' t

[O] org-map-entries but with arguments?

2019-09-18 Thread Matt Price
Is there a lisp trick for adding arguments to the function called by `org-map-entries`? I have the following function: (cl-defun org-lms-return-all-assignments (&optional (send-all nil) (also-mail nil) (post-to-lms t) ) "By default mail all subtrees 'READY' to student recipients, unless SEND-AL