Re: [O] Using property values in source code blocks

2016-07-15 Thread Joon Ro
> > Example: > > --8<---cut here---start->8--- > > * Top Heading > > #+NAME: get-property > #+BEGIN_SRC emacs-lisp :noweb yes :var prop="prop" :var pom=0 > (car (org-entry-get-multivalued-property pom prop)) > #+END_SRC > > ** Subheading > :PROPERTIES: > :

Re: [O] Using property values in source code blocks

2016-07-15 Thread Charles C. Berry
On Fri, 15 Jul 2016, Joon Ro wrote: I spoke too early - with (org-entry-get nil prop) I have to put the code block under the subtree I want to extract the property value from. Would it be possible to get the property value of the current subtree? Give org-entry-get a suitable value for `pom

Re: [O] Using property values in source code blocks

2016-07-15 Thread Joon Ro
It seems org-property-values gets the property value for the buffer - it ends up getting the property value from the last subtree in the buffer. I solved this by using either (org-entry-get nil prop) or (car (org-entry-get-multivalued-property nil prop)) instead of (car (org-property-values pr

Re: [O] Using property values in source code blocks

2016-07-15 Thread Joon Ro
> --8<---cut here---end--->8--- > > * Subtree > :PROPERTIES: > :DUMMY: Value > :END: > > #+NAME: get-property > #+BEGIN_SRC emacs-lisp :var prop="prop" > (car (org-property-values prop)) > #+END_SRC > > #+BEGIN_SRC shell :noweb yes > > echo <> > > #+END_SRC

[O] remove sections with specific names

2016-07-15 Thread Phillip Lord
I'm trying to remove sections with specific names from the exported output (I know about adding a :noexport: tag, but I always want to remove the ones of the same name). I've tried using :filter-section but if I return nil from this, it removes the section but this leaves the headline in and I w

Re: [O] negating a filetag on an entry?

2016-07-15 Thread Juan Pechiar
On Fri, Jul 15, 2016 at 08:20:58AM -0400, John Kitchin wrote: > If I use a line like: > > #+FILETAGS: f16-06625 > > and I want a headline in the file to not have that tag, is that possible? There is a hack by David Maus to remove redundant (already inherited) tags from a heading: https://lists.gn

[O] bug#23917: 25.0.95; commit 3a9d6296b35e5317c497674d5725eb52699bd3b8 causing org-capture to error out

2016-07-15 Thread Eli Zaretskii
> Date: Fri, 08 Jul 2016 20:03:35 +0300 > From: Eli Zaretskii > Cc: 23...@debbugs.gnu.org > > > which already does save-match-data. If I globally disable the org > > element cache by (setq org-element-use-cache nil) the issue > > disappears, so now I'm confused as to what's going on. > > Load th

[O] negating a filetag on an entry?

2016-07-15 Thread John Kitchin
If I use a line like: #+FILETAGS: f16-06625 and I want a headline in the file to not have that tag, is that possible? -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.che