Silence some cperl-mode compiler warnings

* progmodes/cperl-mode.el (cperl-mode): Use fboundp.
(Info-find-node, Man-getpage-in-background): Declare.
This commit is contained in:
Glenn Morris 2013-05-23 23:57:39 -07:00
parent 9e614a3fa0
commit ded62b0881
2 changed files with 9 additions and 1 deletions

View file

@ -1906,7 +1906,7 @@ or as help on variables `cperl-tips', `cperl-problems',
(and (boundp 'msb-menu-cond)
(not cperl-msb-fixed)
(cperl-msb-fix))
(if (featurep 'easymenu)
(if (fboundp 'easy-menu-add)
(easy-menu-add cperl-menu)) ; A NOP in Emacs.
(run-mode-hooks 'cperl-mode-hook)
(if cperl-hook-after-change
@ -6530,6 +6530,9 @@ side-effect of memorizing only. Examples in `cperl-style-examples'."
(let ((perl-dbg-flags (concat cperl-extra-perl-args " -wc")))
(eval '(mode-compile)))) ; Avoid a warning
(declare-function Info-find-node "info"
(filename nodename &optional no-going-back))
(defun cperl-info-buffer (type)
;; Returns buffer with documentation. Creates if missing.
;; If TYPE, this vars buffer.
@ -8517,6 +8520,8 @@ the appropriate statement modifier."
;;(error "Not at `if', `unless', `while', `until', `for' or `foreach'")
(cperl-invert-if-unless-modifiers)))
(declare-function Man-getpage-in-background "man" (topic))
;;; By Anthony Foiani <afoiani@uswest.com>
;;; Getting help on modules in C-h f ?
;;; This is a modified version of `man'.