From 1059d89317364943b85e6cc043b0e5285734e000 Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Thu, 7 Dec 2023 10:44:39 +0100 Subject: [PATCH] Fix 'M-.' on Emacs C sources * lisp/progmodes/etags.el (tags-included-tables): Ensure that 'tags-included-tables-function' is a function. --- lisp/progmodes/etags.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index d48dcc6659d..c2fcbaee91f 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el @@ -773,7 +773,8 @@ tags-included-tables "Return a list of tags tables included by the current table. Assumes the tags table is the current buffer." (or tags-included-tables - (setq tags-included-tables (funcall tags-included-tables-function)))) + (setq tags-included-tables (and (functionp tags-included-tables-function) + (funcall tags-included-tables-function))))) (defun tags-completion-table (&optional buf) "Build `tags-completion-table' on demand for a buffer's tags tables. -- 2.43.0