diff options
| author | Glenn Morris | 2007-12-09 02:04:18 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-09 02:04:18 +0000 |
| commit | 9640c3bce092d39e121b8101756282c816b99066 (patch) | |
| tree | bdebf47be52e246f741b582f5c90f25369095562 | |
| parent | c486a8e4ff23168c0a45466f72ffe4efb6a8dfc9 (diff) | |
| download | emacs-9640c3bce092d39e121b8101756282c816b99066.tar.gz emacs-9640c3bce092d39e121b8101756282c816b99066.zip | |
(declare-function): Add compatibility declaration.
(w3-region, w3m-region, Info-menu): Declare as functions.
| -rw-r--r-- | lisp/gnus/gnus-art.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 4bb9ceb97ba..d8f03ff2cb8 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -27,6 +27,9 @@ | |||
| 27 | 27 | ||
| 28 | ;;; Code: | 28 | ;;; Code: |
| 29 | 29 | ||
| 30 | ;; For Emacs < 22.2. | ||
| 31 | (eval-and-compile | ||
| 32 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 30 | (eval-when-compile | 33 | (eval-when-compile |
| 31 | (require 'cl)) | 34 | (require 'cl)) |
| 32 | (defvar tool-bar-map) | 35 | (defvar tool-bar-map) |
| @@ -2705,6 +2708,9 @@ charset defined in `gnus-summary-show-article-charset-alist' is used." | |||
| 2705 | (t | 2708 | (t |
| 2706 | (apply (car func) (cdr func)))))))))) | 2709 | (apply (car func) (cdr func)))))))))) |
| 2707 | 2710 | ||
| 2711 | ;; External. | ||
| 2712 | (declare-function w3-region "ext:w3-display" (st nd)) | ||
| 2713 | |||
| 2708 | (defun gnus-article-wash-html-with-w3 () | 2714 | (defun gnus-article-wash-html-with-w3 () |
| 2709 | "Wash the current buffer with w3." | 2715 | "Wash the current buffer with w3." |
| 2710 | (mm-setup-w3) | 2716 | (mm-setup-w3) |
| @@ -2716,6 +2722,9 @@ charset defined in `gnus-summary-show-article-charset-alist' is used." | |||
| 2716 | (w3-region (point-min) (point-max)) | 2722 | (w3-region (point-min) (point-max)) |
| 2717 | (error)))) | 2723 | (error)))) |
| 2718 | 2724 | ||
| 2725 | ;; External. | ||
| 2726 | (declare-function w3m-region "ext:w3m" (start end &optional url charset)) | ||
| 2727 | |||
| 2719 | (defun gnus-article-wash-html-with-w3m () | 2728 | (defun gnus-article-wash-html-with-w3m () |
| 2720 | "Wash the current buffer with emacs-w3m." | 2729 | "Wash the current buffer with emacs-w3m." |
| 2721 | (mm-setup-w3m) | 2730 | (mm-setup-w3m) |
| @@ -7682,6 +7691,9 @@ url is put as the `gnus-button-url' overlay property on the button." | |||
| 7682 | "Fetch KDE style info URL." | 7691 | "Fetch KDE style info URL." |
| 7683 | (gnus-info-find-node (gnus-url-unhex-string url))) | 7692 | (gnus-info-find-node (gnus-url-unhex-string url))) |
| 7684 | 7693 | ||
| 7694 | ;; (info) will autoload info.el | ||
| 7695 | (declare-function Info-menu "info" (menu-item &optional fork)) | ||
| 7696 | |||
| 7685 | (defun gnus-button-handle-info-keystrokes (url) | 7697 | (defun gnus-button-handle-info-keystrokes (url) |
| 7686 | "Call `info' when pushing the corresponding URL button." | 7698 | "Call `info' when pushing the corresponding URL button." |
| 7687 | ;; For links like `C-h i d m gnus RET', `C-h i d m CC Mode RET'. | 7699 | ;; For links like `C-h i d m gnus RET', `C-h i d m CC Mode RET'. |