1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00

org-ctags: Don't assume ctags-program-name is bound

* lisp/org-ctags.el (org-ctags-path-to-ctags): Fall back to "ctags" if
ctags-program-name isn't bound because that wasn't introduced until
Emacs 30.

This is a follow-up commit to the port of Emacs's 9082b4e6e.
This commit is contained in:
Kyle Meyer 2024-05-27 22:43:00 -04:00
parent 377addb5b2
commit 53c39a494f

View File

@ -162,9 +162,11 @@ Format is: /REGEXP/TAGNAME/FLAGS,TAGTYPE/
See the ctags documentation for more information.")
(defcustom org-ctags-path-to-ctags
(if (executable-find "ctags-exuberant")
"ctags-exuberant"
ctags-program-name)
(cond ((executable-find "ctags-exuberant")
"ctags-exuberant")
((boundp 'ctags-program-name)
ctags-program-name)
(t "ctags")) ; Emacs < 30
"Name of the ctags executable file."
:version "24.1"
:type 'file)