Fix TAGS regeneration with Universal Ctags
authorBen Scuron <bscuron19@gmail.com>
Sat, 8 Mar 2025 03:29:36 +0000 (22:29 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Mar 2025 18:40:25 +0000 (19:40 +0100)
* 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)

lisp/progmodes/etags-regen.el

index 14791c944ef243f2aea6e3be36e382c3357d9896..7994303284be0f68e7c150f115aea3e8895cd726 100644 (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))