summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-04-05 22:13:16 -0400
committerKyle Meyer <kyle@kyleam.com>2021-04-05 22:15:10 -0400
commit702e782cb654c1a59f9e1b8ac92156e9fb7e7fd2 (patch)
tree0d2c725977ff8f22d2f617f916ba7c9e9cbc2b0d
parentbcfe6f985cc791e90638d3adac8cfa81291375ae (diff)
downloadorg-mode-702e782cb654c1a59f9e1b8ac92156e9fb7e7fd2.tar.gz
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.2016@gmail.com> Ref: https://orgmode.org/list/87lfeqzm3a.fsf@gmail.com Reported-by: Ingo Lohmar <ingo.lohmar@posteo.net> Ref: https://orgmode.org/list/87pmzdhl4b.fsf@kenko.localhost.com
-rw-r--r--lisp/org.el1
1 files changed, 1 insertions, 0 deletions
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)