diff options
author | Katsumi Yamaoka <yamaoka@jpl.org> | 2015-08-18 01:31:57 +0000 |
---|---|---|
committer | Katsumi Yamaoka <yamaoka@jpl.org> | 2015-08-18 01:31:57 +0000 |
commit | c24a067eacef1b5292116e367b0213c27f1195b9 (patch) | |
tree | ec7e9cfce875b7eabc8d4bc561ca0d2a5be51d30 /lisp | |
parent | 0b67a2005656395d1f8dbdaebf0150893e130aaf (diff) | |
download | emacs-c24a067eacef1b5292116e367b0213c27f1195b9.tar.gz |
message.el: Silent the byte compiler
* lisp/gnus/message.el (message-overlay-put, message-make-overlay)
(message-kill-all-overlays, message-overlays-in, message-overlay-get)
(message-delete-overlay, message-window-inside-pixel-edges):
Declare before using.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/gnus/message.el | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 7e39aa9d3c1..a5196c8d1ea 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -2005,6 +2005,22 @@ You must have the \"hashcash\" binary installed, see `hashcash-path'." (unless (fboundp 'mail-dont-reply-to) (defalias 'mail-dont-reply-to 'rmail-dont-reply-to)) +(eval-and-compile + (if (featurep 'emacs) + (progn + (defalias 'message-delete-overlay 'delete-overlay) + (defun message-kill-all-overlays () + (mapcar #'delete-overlay (overlays-in (point-min) (point-max)))) + (defalias 'message-make-overlay 'make-overlay) + (defalias 'message-overlay-get 'overlay-get) + (defalias 'message-overlay-put 'overlay-put) + (defalias 'message-overlays-in 'overlays-in) + (defalias 'message-window-inside-pixel-edges + 'window-inside-pixel-edges)) + (defun message-kill-all-overlays () + (map-extents (lambda (extent ignore) (delete-extent extent)))) + (defalias 'message-window-inside-pixel-edges 'ignore))) + ;;; @@ -7885,20 +7901,6 @@ which specify the range to operate on." (goto-char (prog1 (mark t) (set-marker (mark-marker) (point))))) -(if (featurep 'emacs) - (progn - (defalias 'message-delete-overlay 'delete-overlay) - (defun message-kill-all-overlays () - (mapcar #'delete-overlay (overlays-in (point-min) (point-max)))) - (defalias 'message-make-overlay 'make-overlay) - (defalias 'message-overlay-get 'overlay-get) - (defalias 'message-overlay-put 'overlay-put) - (defalias 'message-overlays-in 'overlays-in) - (defalias 'message-window-inside-pixel-edges 'window-inside-pixel-edges)) - (defun message-kill-all-overlays () - (map-extents (lambda (extent ignore) (delete-extent extent)))) - (defalias 'message-window-inside-pixel-edges 'ignore)) - ;; Support for toolbar (defvar tool-bar-mode) |