Make org-ctags-disable' interactive and point to visit-tags-table'

This commit is contained in:
Gerard Vermeulen 2024-02-22 10:37:23 +01:00
parent 9b0dffd3e4
commit d8e2b47af5

View File

@ -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