emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: stardiviner <numbchild@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] support insert link without write result to :file link
Date: Thu, 29 Mar 2018 11:39:21 +0800	[thread overview]
Message-ID: <11213e2f-ed9e-71bb-5732-bbf99bbb2999@gmail.com> (raw)
In-Reply-To: <874ll0qie3.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 1380 bytes --]

`: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 <numbchild@gmail.com> 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 ~org-babel-merge-params~, ~info~ is generated from
>> it, but it removed ~link~ in ~:results~.
>> - [ ] org-babel-execute-src-block
>>    - [ ] (org-babel-get-src-block-info)
>>      - [ ] (let* ((info .. (apply #'org-babel-merge-params ...))))  ->
>> info -> :results file replace (been removed here)
>>        - because ~:results link file replace~ are merged into ~:results
>> file replace~?
>>          - where does the ~file~ comes from?
>>            - from ~:file~ header argument?
>>              - which function get this?
>>        - [ ] org-babel-process-params info
>>
>>
>> I added my latest patches in attachment (include test, and added your
>> suggested modification). Can you help me on my code?
> What are the differences between ":results file" and ":results link"?
>
> Regards,
>


[-- Attachment #2: Type: text/html, Size: 2191 bytes --]

  reply	other threads:[~2018-03-29  3:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-26 15:35 How to let ob-shell to download file and get result as a link to file? stardiviner
2018-03-26 18:06 ` Michael Welle
2018-03-27  2:56   ` [PATCH] support insert link without write result to :file link stardiviner
2018-03-27  6:26     ` Nicolas Goaziou
2018-03-28 16:11       ` stardiviner
2018-03-28 16:23         ` Nicolas Goaziou
2018-03-29  3:39           ` stardiviner [this message]
2018-03-29 16:30             ` Berry, Charles

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11213e2f-ed9e-71bb-5732-bbf99bbb2999@gmail.com \
    --to=numbchild@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).