Re: [O] ANN: org-ql agenda block support

2019-09-16 Thread Adam Porter
Mikhail Skorzhinskii writes: > Great overview, thanks a lot. > > So I give it a try and completely fell in love. On my data set it is > visibly faster then org-agenda. I also wrote a lot of code around > org-agenda over the years to support my sometimes awkward needs. And now > I just threw all

[O] Capture template issue ?

2019-09-16 Thread Jean-Christophe Helary
I have an issue with my capture templates where if I add an item at the end of list, the item seems to "eat" the following line break and merges with the item that follows: * List 1 ** item 1 ** item 2 * List 2 ** item 3 ** item 4 displayed * List 1 ... * List 2 ... I add item 5 to List 1, I

Re: [O] Bug: COMMENT and noweb-ref

2019-09-16 Thread Sebastian Miele
GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10) of 2019-08-29 Org mode version 9.2.6 (release_9.2.6-538-g23113f @ /home/w/borg/emacs/org/lisp/)

[O] Bug: COMMENT and noweb-ref

2019-09-16 Thread Sebastian Miele
org-babel-tangle on * A #+BEGIN_SRC elisp :tangle yes :noweb yes ;; A <> #+END_SRC * COMMENT B #+BEGIN_SRC elisp :noweb-ref B ;; B #+END_SRC * COMMENT C #+BEGIN_SRC elisp :tangle yes ;; C #+END_SRC produces a file with A and B in it. Expected:

Re: [O] Modify a variable before it is passed to babel (or exported)?

2019-09-16 Thread Ken Mankoff
Hello, I solved this with (org-sbe). For example, using "add-one" and "table" from the original email #+Name: test-add-one #+BEGIN_SRC python :results output values :var data=(org-sbe add-one (data table)) print(data) #+END_SRC #+RESULTS: test-add-one : 43 Or src_elisp{(org-sbe add-one

[O] Modify a variable before it is passed to babel (or exported)?

2019-09-16 Thread Ken Mankoff
I'd like to modify a variable with a babel block before another block sees the variable. For example, I always want to add one to a variable: #+NAME: add-one #+BEGIN_SRC bash :results verbatim :var data=0 data=$(( data + 1 )) echo $data #+END_SRC #+RESULTS: add_one : 1 Test it: #+CALL:

Re: [O] [PATCH] ox-latex.el: Extend :placement attribute to source blocks

2019-09-16 Thread Nicolas Goaziou
Hello, Mario Schlegel writes: > * lisp/ox-latex.el (org-latex-src-block): Extend :placement attribute > to source blocks when the minted package is used. Applied. Thank you! Regards, -- Nicolas Goaziou

Re: [O] [PATCH] org: Prevent loss of `re-search-forward' results

2019-09-16 Thread Nicolas Goaziou
Hello, Max Mouratov writes: > * org.el (org-activate-links): `match-beginning' and `match-end` should > be called shortly after `re-search-forward'. Otherwise, they may return > values corresponding to a different invocation of `re-search-forward'. Applied. Thank you! Regards, -- Nicolas

Re: [O] org-icalendar: Change dates to today in VEVENT export

2019-09-16 Thread Nicolas Goaziou
Hello, Michaël Cadilhac writes: > Right, you pointed this out the first time, and I forgot to address > this: How would you build such a timestamp *with the -end bits* using > org-timestamp-from-time? It seems that > org-icalendar-convert-timestamp expects that these be filled. I suggest to

Re: [O] [PATCH] org-macs: Fix indentation for fullwidth characters

2019-09-16 Thread Nicolas Goaziou
Hello, Yuichiro Hakozaki writes: > @@ -335,7 +335,7 @@ if it fails." >(let ((min-ind (point-max))) > (save-excursion >(while (re-search-forward "^[ \t]*\\S-" nil t) > -(let ((ind (1- (current-column > +

Re: [O] Patch: strip (unneeded) quotes from singular value results

2019-09-16 Thread Nicolas Goaziou
Hello, Mike Ivanov writes: > lisp/ob-lisp.el | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lisp/ob-lisp.el b/lisp/ob-lisp.el > index e717fc34e..0afb8c053 100644 > --- a/lisp/ob-lisp.el > +++ b/lisp/ob-lisp.el > @@ -107,7 +107,7 @@ a property list containing the

Re: [O] Import CSV file, remove columns, print table

2019-09-16 Thread John Kitchin
Here is another 'source block' solution, this time in python. You could so something similar in elisp. Here I use the library of babel approach so you can call it wherever you want. #+name: csv | ID | Name | Titel / Title | Vorname / First Name | Nachname / Surname | Institution

Re: [O] Toggle on/off the display of individual image?

2019-09-16 Thread Jean Louis
* henr...@keemail.me [2019-09-16 12:35]: > Is it possible to toggle on/off the display of one specific image? I > am aware of org-display-inline-images but it acts on the whole > buffer, so it toggles all images. > > It would be nice if there was some way to toggle individual images > on/off. A

Re: [O] Import CSV file, remove columns, print table

2019-09-16 Thread Loris Bennett
Hi John, Thanks - that's a nicely compact solution, albeit in the category 'source block' and in a language I'm not very skilled at :-) I realise that I have slightly misstated the problem. The ID in the imported CSV is just a key from the database - I don't need it on the list of participants.

[O] Toggle on/off the display of individual image?

2019-09-16 Thread henry35
Hello Is it possible to toggle on/off the display of one specific image? I am aware of org-display-inline-images but it acts on the whole buffer, so it toggles all images. It would be nice if there was some way to toggle individual images on/off. A workaround of sorts would be to put each

Re: [O] Nested calls in babel

2019-09-16 Thread Carlos Sánchez de La Lama
Hi Chuck, >> I am being unable to make nested calls work. Here is a minimal snippet: >> >> --8<---cut here---start->8--- >> #+NAME: foo >> #+BEGIN_SRC emacs-lisp >> "foo" >> #+END_SRC >> >> #+NAME: bar >> #+CALL: foo() >> >> #+RESULTS: bar >> : foo >> >>