From: Stefan Kangas Date: Thu, 19 Nov 2020 05:12:25 +0000 (+0100) Subject: Add new variable cperl-tags-file-name X-Git-Tag: emacs-28.0.90~5109 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b6d2ea05cc886298f68e47de009fcdf1a5140c59;p=emacs.git Add new variable cperl-tags-file-name * 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) --- diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index b7dc59bed9d..30a80ea8f22 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el @@ -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)