]> git.eshelyaron.com Git - emacs.git/commitdiff
Add new variable cperl-tags-file-name
authorStefan Kangas <stefan@marxist.se>
Thu, 19 Nov 2020 05:12:25 +0000 (06:12 +0100)
committerStefan Kangas <stefan@marxist.se>
Thu, 19 Nov 2020 05:13:43 +0000 (06:13 +0100)
* lisp/progmodes/cperl-mode.el (cperl-tags-file-name): New variable.
(cperl-write-tags): Use above new variable instead of hardcoding
filename "TAGS".  (Bug#8802)

lisp/progmodes/cperl-mode.el

index b7dc59bed9dda1e04248d034d25db21dc640c2b0..30a80ea8f22a64a9e4e699193e337812897a4e25 100644 (file)
@@ -6602,6 +6602,9 @@ Use as
 "
   (cperl-write-tags nil nil t t))
 
+(defvar cperl-tags-file-name "TAGS"
+  "TAGS file name to use in `cperl-write-tags'.")
+
 (defun cperl-write-tags (&optional file erase recurse dir inbuffer noxs topdir)
   ;; If INBUFFER, do not select buffer, and do not save
   ;; If ERASE is `ignore', do not erase, and do not try to delete old info.
@@ -6611,7 +6614,7 @@ Use as
     (if (and (not dir) (buffer-modified-p)) (error "Save buffer first!")))
   (or topdir
       (setq topdir default-directory))
-  (let ((tags-file-name "TAGS")
+  (let ((tags-file-name cperl-tags-file-name)
         (inhibit-read-only t)
        (case-fold-search nil)
        xs rel)