From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: [PATCH] support insert link without write result to :file link Date: Thu, 29 Mar 2018 11:39:21 +0800 Message-ID: <11213e2f-ed9e-71bb-5732-bbf99bbb2999@gmail.com> References: <87zi2u90f6.fsf@luisa.c0t0d0s0.de> <11516348-a184-6f9e-6a10-15fe4b06d0fb@gmail.com> <87o9jarq4l.fsf@nicolasgoaziou.fr> <55a201ba-d990-ede1-cf12-a6a3814d1979@gmail.com> <874ll0qie3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------F9F5C36590FC7826697EACA3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1OPS-0005HY-W4 for emacs-orgmode@gnu.org; Wed, 28 Mar 2018 23:39:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1OPP-0007So-2f for emacs-orgmode@gnu.org; Wed, 28 Mar 2018 23:39:31 -0400 Received: from mail-pg0-x22c.google.com ([2607:f8b0:400e:c05::22c]:36142) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f1OPO-0007ST-PP for emacs-orgmode@gnu.org; Wed, 28 Mar 2018 23:39:27 -0400 Received: by mail-pg0-x22c.google.com with SMTP id 201so2227457pgg.3 for ; Wed, 28 Mar 2018 20:39:26 -0700 (PDT) In-Reply-To: <874ll0qie3.fsf@nicolasgoaziou.fr> Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------F9F5C36590FC7826697EACA3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit `: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: > >> 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, > --------------F9F5C36590FC7826697EACA3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

`: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,


--------------F9F5C36590FC7826697EACA3--