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
This commit is contained in:
Ben Scuron 2025-03-07 22:29:36 -05:00 committed by Eli Zaretskii
parent b1a9a4a48e
commit 35c7837c66

View file

@ -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))