aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-05-23 23:57:39 -0700
committerGlenn Morris2013-05-23 23:57:39 -0700
commitded62b0881fdb895138bb0f36c7e75950395e84f (patch)
tree1a8b81a79d325e0c8a67f10696882b71d136d24a
parent9e614a3fa083b1882666b6df50f027df4e471806 (diff)
downloademacs-ded62b0881fdb895138bb0f36c7e75950395e84f.tar.gz
emacs-ded62b0881fdb895138bb0f36c7e75950395e84f.zip
Silence some cperl-mode compiler warnings
* progmodes/cperl-mode.el (cperl-mode): Use fboundp. (Info-find-node, Man-getpage-in-background): Declare.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/progmodes/cperl-mode.el7
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6baa68cae77..e11944a6808 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12013-05-24 Glenn Morris <rgm@gnu.org> 12013-05-24 Glenn Morris <rgm@gnu.org>
2 2
3 * progmodes/cperl-mode.el (cperl-mode): Use fboundp.
4 (Info-find-node, Man-getpage-in-background): Declare.
5
3 * mail/unrmail.el (unrmail): 6 * mail/unrmail.el (unrmail):
4 Replace obsolete detect-coding-with-priority. 7 Replace obsolete detect-coding-with-priority.
5 8
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index b6e4297081d..407d4042c39 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -1906,7 +1906,7 @@ or as help on variables `cperl-tips', `cperl-problems',
1906 (and (boundp 'msb-menu-cond) 1906 (and (boundp 'msb-menu-cond)
1907 (not cperl-msb-fixed) 1907 (not cperl-msb-fixed)
1908 (cperl-msb-fix)) 1908 (cperl-msb-fix))
1909 (if (featurep 'easymenu) 1909 (if (fboundp 'easy-menu-add)
1910 (easy-menu-add cperl-menu)) ; A NOP in Emacs. 1910 (easy-menu-add cperl-menu)) ; A NOP in Emacs.
1911 (run-mode-hooks 'cperl-mode-hook) 1911 (run-mode-hooks 'cperl-mode-hook)
1912 (if cperl-hook-after-change 1912 (if cperl-hook-after-change
@@ -6530,6 +6530,9 @@ side-effect of memorizing only. Examples in `cperl-style-examples'."
6530 (let ((perl-dbg-flags (concat cperl-extra-perl-args " -wc"))) 6530 (let ((perl-dbg-flags (concat cperl-extra-perl-args " -wc")))
6531 (eval '(mode-compile)))) ; Avoid a warning 6531 (eval '(mode-compile)))) ; Avoid a warning
6532 6532
6533(declare-function Info-find-node "info"
6534 (filename nodename &optional no-going-back))
6535
6533(defun cperl-info-buffer (type) 6536(defun cperl-info-buffer (type)
6534 ;; Returns buffer with documentation. Creates if missing. 6537 ;; Returns buffer with documentation. Creates if missing.
6535 ;; If TYPE, this vars buffer. 6538 ;; If TYPE, this vars buffer.
@@ -8517,6 +8520,8 @@ the appropriate statement modifier."
8517 ;;(error "Not at `if', `unless', `while', `until', `for' or `foreach'") 8520 ;;(error "Not at `if', `unless', `while', `until', `for' or `foreach'")
8518 (cperl-invert-if-unless-modifiers))) 8521 (cperl-invert-if-unless-modifiers)))
8519 8522
8523(declare-function Man-getpage-in-background "man" (topic))
8524
8520;;; By Anthony Foiani <afoiani@uswest.com> 8525;;; By Anthony Foiani <afoiani@uswest.com>
8521;;; Getting help on modules in C-h f ? 8526;;; Getting help on modules in C-h f ?
8522;;; This is a modified version of `man'. 8527;;; This is a modified version of `man'.