[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] coderef does not provide file path for org-insert-link when not
From: |
stardiviner |
Subject: |
Re: [O] coderef does not provide file path for org-insert-link when not in original buffre |
Date: |
Wed, 24 Oct 2018 10:51:47 +0800 |
User-agent: |
mu4e 1.1.0; emacs 26.1 |
Nicolas Goaziou <address@hidden> writes:
>> ;; I tried to add this, but failed. because `coderef` is executed in
>> `org-edit-src-code` which invokes `org-src--edit-element`, it create a
>> dedicated buffer which does not have `buffer-file-name`. I don't know how to
>> archive what I want now.
>> ;; ((eq org-link-file-path-type 'adaptive)
>
> In "org-src.el", we create local variables to store information from
> original buffer. See, e.g., `org-src--src-type' or `org-src--tab-width'.
> Anyway, see my first question.
Thanks for this hint, I added a new entry in org-src--babel-info list to
pass the original parent file path.
0001-org.el-fix-org-coderef-does-not-support-adaptive-fil.patch
Description: Text Data
--
[ stardiviner ]
I try to make every word tell the meaning what I want to express.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
- Re: [O] coderef does not provide file path for org-insert-link when not in original buffre,
stardiviner <=