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:
parent
377addb5b2
commit
53c39a494f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user