]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove some XEmacs compat code from cperl-mode.el
authorStefan Kangas <stefankangas@gmail.com>
Sun, 15 Sep 2024 02:02:25 +0000 (04:02 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 16 Sep 2024 10:04:54 +0000 (12:04 +0200)
The 'initialize-new-tags-table' function is unconditionally available
after 'etags' has been loaded, which is done further up.

* lisp/progmodes/cperl-mode.el (cperl-write-tags): Remove XEmacs compat
code.

(cherry picked from commit 4464062f4e4fe29aea237eec82cd5ddaaeac4052)

lisp/progmodes/cperl-mode.el

index 6f4726b25f3c3103e2e3a1df8894029fa4f3a1d2..cbb75c3d930b7399ade64013f23aa9409d2a32d8 100644 (file)
@@ -7556,6 +7556,8 @@ Use as
 (defvar cperl-tags-file-name "TAGS"
   "TAGS file name to use in `cperl-write-tags'.")
 
+(declare-function initialize-new-tags-table "etags" ())
+
 (defun cperl-write-tags (&optional file erase recurse dir inbuffer noxs topdir)
   "Write tags for FILE.  If this is a directory, RECURSE if non-nil.
 If ERASE is `ignore', do not erase, and do not try to delete old info.
@@ -7632,8 +7634,7 @@ If INBUFFER, do not select buffer, and do not save."
              (insert (cperl-find-tags file xs topdir))))))
       (if inbuffer nil                 ; Delegate to the caller
        (save-buffer 0)                 ; No backup
-       (if (fboundp 'initialize-new-tags-table)
-           (initialize-new-tags-table))))))
+        (initialize-new-tags-table)))))
 
 (defvar cperl-tags-hier-regexp-list
   (concat