[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: |
Nicolas Goaziou |
Subject: |
Re: [O] coderef does not provide file path for org-insert-link when not in original buffre |
Date: |
Wed, 26 Sep 2018 15:18:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
stardiviner <address@hidden> writes:
> I take a look at the org.el code of functions `org-store-link`,
> `org-insert-link`, they can't inherit the original buffer file name
> `buffer-file-name`.
Why can't they?
> So can't use `org-link-file-path-type 'adaptive` case. But I found
> `org-insert-link` function definition has this snippet of code:
[...]
> ;; 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.
Regards,
--
Nicolas Goaziou 0x80A93738