diff options
| author | Glenn Morris | 2007-12-09 02:08:47 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-09 02:08:47 +0000 |
| commit | 88bfa2e405c457e05f6a481344c511fdfde2ebba (patch) | |
| tree | a589bf9f348fcef5e571f9cd64312e259d5fdc53 | |
| parent | d09ae6ca78bb45c9c8042bdbc5e568febc020980 (diff) | |
| download | emacs-88bfa2e405c457e05f6a481344c511fdfde2ebba.tar.gz emacs-88bfa2e405c457e05f6a481344c511fdfde2ebba.zip | |
(declare-function): Add compatibility declaration.
(mm-append-to-file, w32-focus-frame): Declare as functions.
| -rw-r--r-- | lisp/gnus/gnus-util.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index de01fb2db11..8a6e8fa71cb 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -35,6 +35,9 @@ | |||
| 35 | 35 | ||
| 36 | ;;; Code: | 36 | ;;; Code: |
| 37 | 37 | ||
| 38 | ;; For Emacs < 22.2. | ||
| 39 | (eval-and-compile | ||
| 40 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 38 | (eval-when-compile | 41 | (eval-when-compile |
| 39 | (require 'cl)) | 42 | (require 'cl)) |
| 40 | ;; Fixme: this should be a gnus variable, not nnmail-. | 43 | ;; Fixme: this should be a gnus variable, not nnmail-. |
| @@ -987,6 +990,9 @@ with potentially long computations." | |||
| 987 | (defvar rmail-default-rmail-file) | 990 | (defvar rmail-default-rmail-file) |
| 988 | (defvar mm-text-coding-system) | 991 | (defvar mm-text-coding-system) |
| 989 | 992 | ||
| 993 | (declare-function mm-append-to-file "mm-util" | ||
| 994 | (start end filename &optional codesys inhibit)) | ||
| 995 | |||
| 990 | (defun gnus-output-to-rmail (filename &optional ask) | 996 | (defun gnus-output-to-rmail (filename &optional ask) |
| 991 | "Append the current article to an Rmail file named FILENAME." | 997 | "Append the current article to an Rmail file named FILENAME." |
| 992 | (require 'rmail) | 998 | (require 'rmail) |
| @@ -1515,6 +1521,8 @@ CHOICE is a list of the choice char and help message at IDX." | |||
| 1515 | (kill-buffer buf)) | 1521 | (kill-buffer buf)) |
| 1516 | tchar)) | 1522 | tchar)) |
| 1517 | 1523 | ||
| 1524 | (declare-function w32-focus-frame "../term/w32-win" (frame)) | ||
| 1525 | |||
| 1518 | (defun gnus-select-frame-set-input-focus (frame) | 1526 | (defun gnus-select-frame-set-input-focus (frame) |
| 1519 | "Select FRAME, raise it, and set input focus, if possible." | 1527 | "Select FRAME, raise it, and set input focus, if possible." |
| 1520 | (cond ((featurep 'xemacs) | 1528 | (cond ((featurep 'xemacs) |