From 525df5272d69c5e2738f9c7f9095d75253bfc1dd Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 24 Jan 2023 21:37:22 +0800 Subject: [PATCH] Backport commit 9082b4e6e from Emacs * lisp/org-ctags.el (org-ctags-path-to-ctags): Use new variables. Make binaries distributed with Emacs work on Android 9082b4e6ee27b995cbb61668cb437d7b91c7f5f8 Po Lu Tue Jan 24 21:37:22 2023 +0800 [km] A follow-up commit will adjust this to be compatible with Emacs < 30. --- lisp/org-ctags.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-ctags.el b/lisp/org-ctags.el index d58304850..c7239a200 100644 --- a/lisp/org-ctags.el +++ b/lisp/org-ctags.el @@ -156,7 +156,9 @@ 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") + (if (executable-find "ctags-exuberant") + "ctags-exuberant" + ctags-program-name) "Name of the ctags executable file." :version "24.1" :type 'file)