diff options
| author | Glenn Morris | 2013-05-28 19:46:35 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-05-28 19:46:35 -0700 |
| commit | 3694d13f709e0c3f82b2fdbba33982d188c92aad (patch) | |
| tree | 626977e6261b1ae3cd91964854983cf574004fcc /lisp | |
| parent | cf6a9685f1a33ff97bcbcb5010b56652cdbc8617 (diff) | |
| download | emacs-3694d13f709e0c3f82b2fdbba33982d188c92aad.tar.gz emacs-3694d13f709e0c3f82b2fdbba33982d188c92aad.zip | |
Silence cperl-mode compilation
* progmodes/cperl-mode.el (imenu-choose-buffer-index)
(file-of-tag, etags-snarf-tag, etags-goto-tag-location): Declare.
(cperl-imenu-on-info): Require imenu.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9f9302680be..7d4e2dc1dfc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-05-29 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/cperl-mode.el (imenu-choose-buffer-index) | ||
| 4 | (file-of-tag, etags-snarf-tag, etags-goto-tag-location): Declare. | ||
| 5 | (cperl-imenu-on-info): Require imenu. | ||
| 6 | |||
| 1 | 2013-05-28 Alan Mackenzie <acm@muc.de> | 7 | 2013-05-28 Alan Mackenzie <acm@muc.de> |
| 2 | 8 | ||
| 3 | Handle "capitalised keywords" correctly. | 9 | Handle "capitalised keywords" correctly. |
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 407d4042c39..910e7c49d2a 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -6671,10 +6671,13 @@ Customized by setting variables `cperl-shrink-wrap-info-frame', | |||
| 6671 | (buffer-substring | 6671 | (buffer-substring |
| 6672 | (match-beginning 1) (match-end 1))) | 6672 | (match-beginning 1) (match-end 1))) |
| 6673 | 6673 | ||
| 6674 | (declare-function imenu-choose-buffer-index "imenu" (&optional prompt alist)) | ||
| 6675 | |||
| 6674 | (defun cperl-imenu-on-info () | 6676 | (defun cperl-imenu-on-info () |
| 6675 | "Shows imenu for Perl Info Buffer. | 6677 | "Shows imenu for Perl Info Buffer. |
| 6676 | Opens Perl Info buffer if needed." | 6678 | Opens Perl Info buffer if needed." |
| 6677 | (interactive) | 6679 | (interactive) |
| 6680 | (require 'imenu) | ||
| 6678 | (let* ((buffer (current-buffer)) | 6681 | (let* ((buffer (current-buffer)) |
| 6679 | imenu-create-index-function | 6682 | imenu-create-index-function |
| 6680 | imenu-prev-index-position-function | 6683 | imenu-prev-index-position-function |
| @@ -7134,6 +7137,10 @@ Use as | |||
| 7134 | (defvar cperl-hierarchy '(() ()) | 7137 | (defvar cperl-hierarchy '(() ()) |
| 7135 | "Global hierarchy of classes.") | 7138 | "Global hierarchy of classes.") |
| 7136 | 7139 | ||
| 7140 | ;; Follows call to (autoloaded) visit-tags-table. | ||
| 7141 | (declare-function file-of-tag "etags" (&optional relative)) | ||
| 7142 | (declare-function etags-snarf-tag "etags" (&optional use-explicit)) | ||
| 7143 | |||
| 7137 | (defun cperl-tags-hier-fill () | 7144 | (defun cperl-tags-hier-fill () |
| 7138 | ;; Suppose we are in a tag table cooked by cperl. | 7145 | ;; Suppose we are in a tag table cooked by cperl. |
| 7139 | (goto-char 1) | 7146 | (goto-char 1) |
| @@ -7177,6 +7184,7 @@ Use as | |||
| 7177 | (end-of-line)))) | 7184 | (end-of-line)))) |
| 7178 | 7185 | ||
| 7179 | (declare-function x-popup-menu "menu.c" (position menu)) | 7186 | (declare-function x-popup-menu "menu.c" (position menu)) |
| 7187 | (declare-function etags-goto-tag-location "etags" (tag-info)) | ||
| 7180 | 7188 | ||
| 7181 | (defun cperl-tags-hier-init (&optional update) | 7189 | (defun cperl-tags-hier-init (&optional update) |
| 7182 | "Show hierarchical menu of classes and methods. | 7190 | "Show hierarchical menu of classes and methods. |