From: Ben Scuron Date: Sat, 8 Mar 2025 03:29:36 +0000 (-0500) Subject: Fix TAGS regeneration with Universal Ctags X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6013890fee70bf34fa10864be88a048b2ee00249;p=emacs.git Fix TAGS regeneration with Universal Ctags * lisp/progmodes/etags-regen.el (etags-regen--append-tags): Move the "-o" option to before the filename, as Ctags doesn't allow it to follow the file name. (Bug#76855) Copyright-paperwork-exempt: yes (cherry picked from commit 35c7837c6616b3a2b845ba06d3ed797bb12fb749) --- diff --git a/lisp/progmodes/etags-regen.el b/lisp/progmodes/etags-regen.el index 14791c944ef..7994303284b 100644 --- a/lisp/progmodes/etags-regen.el +++ b/lisp/progmodes/etags-regen.el @@ -381,7 +381,7 @@ File extensions to generate the tags for." ;; Like 10ms vs 20ms here. But `shell-command' makes it easy to ;; direct stderr to a separate buffer. (shell-command - (format "%s %s %s -o -" + (format "%s %s -o - %s" etags-regen-program (mapconcat #'identity options " ") (mapconcat #'identity file-names " ")) t etags-regen--errors-buffer-name))