From c2fd64717e1adb4e725bb5fe8f709d8a76dbb933 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Tue, 6 Feb 2024 09:34:05 +0100 Subject: [PATCH] Make `org-ctags-enable' a better citizen, but maybe to good. --- README.org | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index 07884fe..4a0b140 100644 --- a/README.org +++ b/README.org @@ -2371,7 +2371,17 @@ list detailing and motivating each listing: (defun org-ctags-disable () "Undo calling `org-ctags-enable'." (setq org-ctags-enabled-p nil) - (setq org-open-link-functions nil) + ;; Steal the options list from the `org-ctags-open-link-functions' code. + (setq org-open-link-functions + (seq-difference org-open-link-functions + '(org-ctags-append-topic + org-ctags-ask-append-topic + org-ctags-ask-rebuild-tags-file-then-find-tag + org-ctags-ask-visit-buffer-or-file + org-ctags-fail-silently + org-ctags-find-tag + org-ctags-rebuild-tags-file-then-find-tag + org-ctags-visit-buffer-or-file))) (put 'org-mode 'find-tag-default-function nil)) (with-eval-after-load 'org-ctags