branch: externals-release/org commit 702e782cb654c1a59f9e1b8ac92156e9fb7e7fd2 Author: Kyle Meyer <k...@kyleam.com> Commit: Kyle Meyer <k...@kyleam.com>
org.el: Mark org-link-descriptive as buffer-local * lisp/org.el (org-mode): Mark org-link-descriptive as buffer-local. Calling org-toggle-link-display is an inherently buffer-local operation because it works via the buffer-local buffer-invisibility-spec, so toggling the global value leads to a mismatched, invalid state in all other buffers. Reported-by: Gustavo Barros <gusbrs.2...@gmail.com> Ref: https://orgmode.org/list/87lfeqzm3a....@gmail.com Reported-by: Ingo Lohmar <ingo.loh...@posteo.net> Ref: https://orgmode.org/list/87pmzdhl4b....@kenko.localhost.com --- lisp/org.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org.el b/lisp/org.el index 97ff44c..ac627a2 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4792,6 +4792,7 @@ The following commands are available: (org-load-modules-maybe) (org-install-agenda-files-menu) (when org-link-descriptive (add-to-invisibility-spec '(org-link))) + (make-local-variable 'org-link-descriptive) (add-to-invisibility-spec '(org-hide-block . t)) (setq-local outline-regexp org-outline-regexp) (setq-local outline-level 'org-outline-level)