]> git.eshelyaron.com Git - emacs.git/commitdiff
etags-regen--tags-generate: Handle spaces in project root name
authorEli Zaretskii <eliz@gnu.org>
Thu, 11 Apr 2024 17:09:49 +0000 (20:09 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 16:59:21 +0000 (18:59 +0200)
* lisp/progmodes/etags-regen.el (etags-regen--tags-generate):
Quote the tags file name (bug#70329).

(cherry picked from commit af57516ed8991ea6238f1ec4907f9ce751cadb27)

lisp/progmodes/etags-regen.el

index 6cd78d3577af543331ea81195f345b4391fa130f..02d666ceff7d314c8080486d0a641b1f3c10d048 100644 (file)
@@ -279,7 +279,7 @@ File extensions to generate the tags for."
                                      " ")
                           ;; ctags's etags requires '-L' for stdin input.
                           (if ctags-p "-L" "")
-                          tags-file)))
+                          (shell-quote-argument tags-file))))
     (with-temp-buffer
       (mapc (lambda (f)
               (insert f "\n"))