Allen Li <darkfel...@felesatra.moe> writes:

>> Allen Li <darkfel...@felesatra.moe> writes:
>>
>>> In ob-tangle.el, the line
>>>
>>> (defvar org-id-link-to-org-use-id nil) ; Dynamically scoped
>>>
>>> appears to override the user's customization of
>>> org-id-link-to-org-use-id.
>>
>> Have you seen this happening?
>
> Yes, that's why I filed the bug.

If you saw this, then the root cause is probably not in defvar.
Are you able to provide a reproducer?

>> defvar only matters if the variable is not yet defined:
>> bar ;; => error void-variable
>> (defvar bar 'value) ;; bar = 'value
>
> Yes, that is so.
>
> Even if org-id-link-to-org-use-id were always set at this point, there
> would be no reason to use
>
> (defvar org-id-link-to-org-use-id nil)
>
> instead of
>
> (defvar org-id-link-to-org-use-id)

I agree. The question is whether changing to
(defvar org-id-link-to-org-use-id)
solves your problem.

Best,
Ihor

Reply via email to