From d8e2b47af53dca4e594bd2fd41fafbb9587127e5 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Thu, 22 Feb 2024 10:37:23 +0100 Subject: [PATCH] Make `org-ctags-disable' interactive and point to `visit-tags-table' --- README.org | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 20cda21..6534a8d 100644 --- a/README.org +++ b/README.org @@ -2387,11 +2387,19 @@ list detailing and motivating each listing: #+caption: Undo calling =org-ctags-enable=. #+name: lst:undo-org-ctags #+begin_src emacs-lisp -n :results silent -;; See also `org-link-search-must-match-exact-headline' for link searches. -;; Undo calling `org-ctags-enable'. For what may cause `org-ctags' -;; loading, see: https://list.orgmode.org/87mt43agk6.fsf@localhost/ +;; See also `org-link-search-must-match-exact-headline' for link +;; searches. Undo calling `org-ctags-enable'. For what may cause +;; `org-ctags' loading, see: +;; https://list.orgmode.org/87mt43agk6.fsf@localhost/ +;; +;; Completion may call `visit-tags-table' which also prompts for a +;; TAGS table but this is another mechanism. While editing Python +;; source blocks, start a Python interpreter to get rid of such +;; prompts. (defun org-ctags-disable () - "Undo calling `org-ctags-enable'." + "Undo calling `org-ctags-enable'. +Watch out for completion `visit-tags-table' prompts." + (interactive) (setq org-ctags-enabled-p nil) ;; Steal the options list from the `org-ctags-open-link-functions' code. (setq org-open-link-functions