emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] ob-tangle overrides user customization of org-id-link-to-org-u


From: Ihor Radchenko
Subject: Re: [BUG] ob-tangle overrides user customization of org-id-link-to-org-use-id [9.5.2 (9.5.2-gfbff08 @ /home/ionasal/.emacs.d/elpa/org-9.5.2/)]
Date: Wed, 12 Jan 2022 22:41:53 +0800

Allen Li <darkfeline@felesatra.moe> writes:

>> Allen Li <darkfeline@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

[Prev in Thread] Current Thread [Next in Thread]