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: Tue, 11 Jan 2022 19:42:45 +0800

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?

FYI, defvar does not overwrite variable value that is already set.
Try the following:
(setq foo 'my-value) ;; foo = 'my-value
(defvar foo 'value) ;; foo = 'my-value !!
foo ;; foo still = 'my-value

defvar only matters if the variable is not yet defined:
bar ;; => error void-variable
(defvar bar 'value) ;; bar = 'value

Best,
Ihor



reply via email to

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