Re: [O] Add contents-begin and contents-end to src-block in org-element.el

2017-12-25 Thread Nicolas Goaziou
Hello, "Somelauw ." writes: > 2017-12-24 16:05 GMT+01:00 Nicolas Goaziou : >> Contents mean "data in Org syntax". There are no such contents in source >> blocks. Therefore, the parser does not provide :contents-begin >> and :contents-end for them. > >

Re: [O] Add contents-begin and contents-end to src-block in org-element.el

2017-12-25 Thread Somelauw .
2017-12-25 9:49 GMT+01:00 Nicolas Goaziou > "Somelauw ." writes: > >> By the way, do you know of any other org-elements that have an inner >> body that doesn't classify as "data in Org syntax"? > > comment, comment blocks, example blocks, export

Re: [O] TIL about use of eval in user Org macros.. Documentation?

2017-12-25 Thread Nicolas Goaziou
Hello, Kaushal Modi writes: > #+MACRO: sec (eval (concat "" (number-to-string > (org-macro--counter-increment $1 $2)) "")) Or, #+MACRO: sec @@html:@@{{{n($1,$2)}}}@@html:@@ > 1. Can you please document the use of eval form in Org macro definitions in > the Org

Re: [O] babel header argument :var is not expanded when tangling

2017-12-25 Thread numbch...@gmail.com
I see. I will use noweb style for now. But should tangle expand :var variables when tangling? I think this is the correct behaviour. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36

Re: [O] Confusing org-cycle invocation when cursor is in invisible text

2017-12-25 Thread Nicolas Goaziou
Hello, Ruy Exel writes: > Consider the following simple tree structure > > - > > * Trees > ** Pine > It is a conifer > ** Oak > Place cursor here -> > It belongs to the genus Quercus > > - > > If you place the cursor where indicated (i.e. after the sentence > "Place

Re: [O] Searching all attachments in org-files

2017-12-25 Thread Ihor Radchenko
Dear Narendra, Here is what I am using: (defun org-att-complete-link ( arg) "Completion dispatcher for att: links (rewritten from org-attach-open)" (let* ((attach-dir (org-attach-dir t)) (files (org-attach-file-list attach-dir)) (file (if (= (length files) 1)

Re: [O] BUG: TODO statistics in parent heading prevent evaluation of TODOs with TRIGGER property

2017-12-25 Thread Adrian Bradd
Just wanted to bump this. Let me know if there is a preferred/better way to attack this issue and I can give it a shot. Cheers, Adrian Adrian Bradd writes: > I should probably add that this will require org-depend.el to be loaded. > > On 10 December 2017 at 17:50,

Re: [O] advice please: best way to export to DOC(X) with maths

2017-12-25 Thread Adrian Bradd
According to Karl's post [1], pandoc now supports conversion with some template support. I haven't tried it myself though. Cheers, Adrian [1] http://www.karl-voit.at/2017/12/17/pandoc-docx-reference/ Tim O'Callaghan writes: > Thanks! > I will experiment with this work-flow,

Re: [O] Add contents-begin and contents-end to src-block in org-element.el

2017-12-25 Thread Nicolas Goaziou
"Somelauw ." writes: I suggest the following. For contents begin: (save-excursion (goto-char (org-element-property :post-affiliated element)) (line-beginning-position 2)) For contents end: (save-excursion (goto-char (org-element-property :end

[O] Searching all attachments in org-files

2017-12-25 Thread Narendra Joshi
Hi, Is there a way to quick get a link to an existing attachment? A lot of times, I find myself referring to the same file. I like to keep files as attachments so that they are committed with my org-files. Any help here, either in fixing my workflow or helping me figure out how to get a link to