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