diff options
| author | Stefan Kangas | 2024-09-15 04:02:25 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2024-09-15 14:02:36 +0200 |
| commit | 4464062f4e4fe29aea237eec82cd5ddaaeac4052 (patch) | |
| tree | 5a217e698f81bca3473609e3f55b7cc467f38b28 | |
| parent | 16a142c2b2203a2b18743ff27208dace756d86b2 (diff) | |
| download | emacs-4464062f4e4fe29aea237eec82cd5ddaaeac4052.tar.gz emacs-4464062f4e4fe29aea237eec82cd5ddaaeac4052.zip | |
Remove some XEmacs compat code from cperl-mode.el
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.
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 7b6381b02f6..36ab3557a21 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -7559,6 +7559,8 @@ Use as | |||
| 7559 | (defvar cperl-tags-file-name "TAGS" | 7559 | (defvar cperl-tags-file-name "TAGS" |
| 7560 | "TAGS file name to use in `cperl-write-tags'.") | 7560 | "TAGS file name to use in `cperl-write-tags'.") |
| 7561 | 7561 | ||
| 7562 | (declare-function initialize-new-tags-table "etags" ()) | ||
| 7563 | |||
| 7562 | (defun cperl-write-tags (&optional file erase recurse dir inbuffer noxs topdir) | 7564 | (defun cperl-write-tags (&optional file erase recurse dir inbuffer noxs topdir) |
| 7563 | "Write tags for FILE. If this is a directory, RECURSE if non-nil. | 7565 | "Write tags for FILE. If this is a directory, RECURSE if non-nil. |
| 7564 | If ERASE is `ignore', do not erase, and do not try to delete old info. | 7566 | If ERASE is `ignore', do not erase, and do not try to delete old info. |
| @@ -7635,8 +7637,7 @@ If INBUFFER, do not select buffer, and do not save." | |||
| 7635 | (insert (cperl-find-tags file xs topdir)))))) | 7637 | (insert (cperl-find-tags file xs topdir)))))) |
| 7636 | (if inbuffer nil ; Delegate to the caller | 7638 | (if inbuffer nil ; Delegate to the caller |
| 7637 | (save-buffer 0) ; No backup | 7639 | (save-buffer 0) ; No backup |
| 7638 | (if (fboundp 'initialize-new-tags-table) | 7640 | (initialize-new-tags-table))))) |
| 7639 | (initialize-new-tags-table)))))) | ||
| 7640 | 7641 | ||
| 7641 | (defvar cperl-tags-hier-regexp-list | 7642 | (defvar cperl-tags-hier-regexp-list |
| 7642 | (concat | 7643 | (concat |