Re: [O] Feature request: results type json

2018-03-28 Thread stardiviner
You can wrap result value into another language src block like this: #+begin_src ruby :results code :wrap src shell puts "echo 'hello'" #+end_src #+RESULTS: #+begin_src shell echo 'hello' #+end_src Same for JSON by changed `:wrap src shell` into `wrap json`. But you need the value is JSON.

Re: [O] [PATCH] support insert link without write result to :file link

2018-03-28 Thread stardiviner
`:results file` will write non-empty result to `:file`. But `:results link` don't, it just insert a link of `:file` at result. And that is what I want to solve in the first post of this thread. On 03/29/2018 12:23 AM, Nicolas Goaziou wrote: Hello, stardiviner writes:

Re: [O] Feature request: results type json

2018-03-28 Thread John Kitchin
If you can get ob-sql to output data in tabular form (if it is not nested) you can do something like this: #+name: tabular #+BEGIN_SRC python :results value d = [['type', 'test'], ['format', 'json']] return d #+END_SRC #+RESULTS: tabular | type | test | | format | json | #+BEGIN_SRC

Re: [O] bug#27736: OSX 10.6.8: Building from master branch fails.

2018-03-28 Thread Paul Eggert
On 03/28/2018 12:33 PM, Paul Eggert wrote: Unfortunately the new org code contains the expression (encode-time 0 0 0 0 0 -5), which won't work on Emacs platforms where time_t is 32 bits or is unsigned, since such platforms cannot represent a time_t value corresponding to the year -5.

Re: [O] Feature request: results type json

2018-03-28 Thread agzam . ibragimov
Hmm, it works for emacs-lisp, however I specifically wanted to use it with ob-sql, and can't find a way. On Wed, Mar 28, 2018 at 2:05 PM John Kitchin wrote: > Does this do what you want: > > #+BEGIN_SRC emacs-lisp :wrap json > (json-encode '((type . "text"))) >

Re: [O] Feature request: results type json

2018-03-28 Thread John Kitchin
Does this do what you want: #+BEGIN_SRC emacs-lisp :wrap json (json-encode '((type . "text"))) #+END_SRC #+RESULTS: #+BEGIN_json {"type":"text"} #+END_json John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon

[O] Feature request: results type json

2018-03-28 Thread Ag Ibragimov
Sorry, I don't know the best medium to convey ideas and I'm afraid not qualified (familiar with org-mode codebase) to submit a PR for this. I wonder how difficult would be to add the possibility to have babel src block results to be rendered as json? Basically a new result type

Re: [O] FILETAGS tags hidden by TAGS option

2018-03-28 Thread Nicolas Goaziou
Hello, Mark Edgington writes: > When using org-tags-view, the list of tags used for tab-completion > fails to include tags specified via the #+FILETAGS option when there > exists a #+TAGS option in the file which doesn't contain the > #+FILETAGS tags. > > For example, with

[O] Org export, ignore headline and linebreaks

2018-03-28 Thread Guilherme Passos
Dear all, I am writing an org file to be exported to latex, with some headings for my own use that I would like to be ignored in export. For this I am use the :ignore: tag from extra.el (org-plus-contrib). However, unfortunately it disregards any kind of line or paragraph break just before

Re: [O] Exponential numbers in latex table export

2018-03-28 Thread Günter Lichtenberg
On Wednesday, 28 March 2018 13:55:01 CEST Nicolas Goaziou wrote: > > > > \begin{center} > > \begin{tabular}{r} > > \hline > > 1.2e09 (abs)\\ > > 2.3\,(-09)\\ > > 3.4\,(09)\\ > > \hline > > \end{tabular} > > > See `org-latex-table-scientific-notation'. I also find the default value > a bit

Re: [O] [PATCH] support insert link without write result to :file link

2018-03-28 Thread Nicolas Goaziou
Hello, stardiviner writes: > Hi, Nicolas, I have problem in my code. Even after many times and > 5 hourse Edebug on ob-core.el code. Still can't find out where is > wrong. After Edebug, just know somewhere is wrong. here is my info: > > - [ ] probelm is on

Re: [O] [PATCH] support insert link without write result to :file link

2018-03-28 Thread stardiviner
Hi, Nicolas, I have problem in my code. Even after many times and 5 hourse Edebug on ob-core.el code. Still can't find out where is wrong. After Edebug, just know somewhere is wrong. here is my info: - [ ] probelm is on ~org-babel-merge-params~, ~info~ is generated from it, but it removed

Re: [O] insert evaluation results in place

2018-03-28 Thread Zhihao Ding
Thank you! Zhihao On Wed, Mar 28, 2018 at 4:28 PM Berry, Charles wrote: > > > > On Mar 28, 2018, at 7:42 AM, Zhihao Ding wrote: > > > > I was wondering if anyone could share an example for referencing the > results of a source code block in place. > >

Re: [O] insert evaluation results in place

2018-03-28 Thread Berry, Charles
> On Mar 28, 2018, at 7:42 AM, Zhihao Ding wrote: > > I was wondering if anyone could share an example for referencing the results > of a source code block in place. > See (info "(org) Evaluating code blocks") Example #+Name: put_in_para #+BEGIN_SRC R :exports

Re: [O] maybe typo in orgmode manual

2018-03-28 Thread Nicolas Goaziou
Hello, Буковская Агнесса writes: > Maybe there is typo in orgmode manual: > https://orgmode.org/org.html#capture-protocol > >> To use this feature, add a bookmark with an arbitrary name, e.g. ‘Org: >> capture’ and enter this as ‘Location’: >> >>

[O] FILETAGS tags hidden by TAGS option

2018-03-28 Thread Mark Edgington
When using org-tags-view, the list of tags used for tab-completion fails to include tags specified via the #+FILETAGS option when there exists a #+TAGS option in the file which doesn't contain the #+FILETAGS tags. For example, with the following options, the foo tag will not show up when trying

[O] insert evaluation results in place

2018-03-28 Thread Zhihao Ding
Hi there, I was wondering if anyone could share an example for referencing the results of a source code block in place. For example, a source code block could be defined as below #+HEADER: n_value #+HEADER: :results value #+HEADER: :noweb yes #+BEGIN_SRC R n_value=10 n_value

Re: [O] [PATCH 1/1] ob-clojure.el: Add :ns to specify evaluation namespace

2018-03-28 Thread stardiviner
This implementation has some problem that some side case are not handled. Please reference this previous patch email: https://lists.gnu.org/archive/html/emacs-orgmode/2018-03/msg00507.html

Re: [O] Exponential numbers in latex table export

2018-03-28 Thread Nicolas Goaziou
Hello, Günter Lichtenberg writes: > I have a document with many automatically generated tables that contain > numbers in exponential Format, e.g. 2e09. When I export the tables to LaTeX > and pdf I get something like 2 (-09) in the pdf, if there is no character >

[O] maybe typo in orgmode manual

2018-03-28 Thread Буковская Агнесса
Hello! Maybe there is typo in orgmode manual: https://orgmode.org/org.html#capture-protocol > To use this feature, add a bookmark with an arbitrary name, e.g. ‘Org: > capture’ and enter this as ‘Location’: > > javascript:location.href='org-protocol://template=x'+ >

[O] [PATCH 1/1] ob-clojure.el: Add :ns to specify evaluation namespace

2018-03-28 Thread roberthambrock
From: Robert Hambrock * lisp/ob-clojure.el (org-babel-execute:clojure): Implement :ns. --- lisp/ob-clojure.el | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el index 890f60ada..b8c5c6375 100644 ---

[O] Exponential numbers in latex table export

2018-03-28 Thread Günter Lichtenberg
Hi I have a document with many automatically generated tables that contain numbers in exponential Format, e.g. 2e09. When I export the tables to LaTeX and pdf I get something like 2 (-09) in the pdf, if there is no character after the number in the table Minimal Example: |--| |

[O] [PATCH 0/1] ob-clojure.el: Add :ns to specify evaluation namespace

2018-03-28 Thread roberthambrock
From: Robert Hambrock Dear Org maintainer, this patch implements namespace specification for Clojure source blocks, necessary in Org files with Clojure source blocks segregated from their applicable namespace declaration (Clojure source file, REPL declaration, or