# HG changeset patch # User Glenn Morris # Date 1197166127 0 # Node ID 5e1044759e6cb69ad3bd1609c6144c9dbdb0ad51 # Parent e7e2bc9b899d61a9edd68d85cd3cb5cba731d135 (declare-function): Add compatibility declaration. (mm-append-to-file, w32-focus-frame): Declare as functions. diff -r e7e2bc9b899d -r 5e1044759e6c lisp/gnus/gnus-util.el --- a/lisp/gnus/gnus-util.el Sun Dec 09 02:07:07 2007 +0000 +++ b/lisp/gnus/gnus-util.el Sun Dec 09 02:08:47 2007 +0000 @@ -35,6 +35,9 @@ ;;; Code: +;; For Emacs < 22.2. +(eval-and-compile + (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) (eval-when-compile (require 'cl)) ;; Fixme: this should be a gnus variable, not nnmail-. @@ -987,6 +990,9 @@ (defvar rmail-default-rmail-file) (defvar mm-text-coding-system) +(declare-function mm-append-to-file "mm-util" + (start end filename &optional codesys inhibit)) + (defun gnus-output-to-rmail (filename &optional ask) "Append the current article to an Rmail file named FILENAME." (require 'rmail) @@ -1515,6 +1521,8 @@ (kill-buffer buf)) tchar)) +(declare-function w32-focus-frame "../term/w32-win" (frame)) + (defun gnus-select-frame-set-input-focus (frame) "Select FRAME, raise it, and set input focus, if possible." (cond ((featurep 'xemacs)