Hello, stardiviner <numbch...@gmail.com> 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