From 8156bff81ae505ce8ba2b323f880853d0b719a94 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 24 Aug 2024 20:02:38 +0100 Subject: (Emacs/config)~+project/generate-tags uses root folder Instead of giving all the project files that project.el THINKS I want, let's just use the folder itself and abuse ctags. Leads to better TAGS overall. --- Emacs/.config/emacs/config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 9a019d0..40883e1 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -2609,14 +2609,14 @@ quickly generate them in C/C++ projects. (if (not project) (message "+project/generate-tags: Not in project.") (let ((tags-file (concat (project-root project) "TAGS")) - (files (format "%s" (project-files project)))) + (folder (format "%s" (project-root project)))) (set-process-sentinel (start-process-shell-command "PROJECT-GENERATE-TAGS" "*gen-tags*" (format "ctags -Re -f %s %s" tags-file - (substring files 1 (- (length files) 1)))) + (concat folder "*"))) (lambda (p event) (when (string= event "finished\n") (visit-tags-table (concat (project-root (project-current)) "TAGS")) -- cgit v1.2.3-13-gbd6f