From: Dave Love Date: Wed, 8 Nov 2000 15:36:19 +0000 (+0000) Subject: Put some defvars in eval-when-compile. X-Git-Tag: emacs-pretest-21.0.90~224 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=534aa266c715e65c6684998fe6bf54c1f6d7eb47;p=emacs.git Put some defvars in eval-when-compile. --- diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 0f10d5e1b05..287b565c4d4 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -260,7 +260,8 @@ should return the new buffer name." :group 'message-buffers :type 'boolean) -(defvar gnus-local-organization) +(eval-when-compile + (defvar gnus-local-organization)) (defcustom message-user-organization (or (and (boundp 'gnus-local-organization) (stringp gnus-local-organization) @@ -421,8 +422,9 @@ might set this variable to '(\"-f\" \"you@some.where\")." Folding `References' makes ancient versions of INN create incorrect NOV lines.") -(defvar gnus-post-method) -(defvar gnus-select-method) +(eval-when-compile + (defvar gnus-post-method) + (defvar gnus-select-method)) (defcustom message-post-method (cond ((and (boundp 'gnus-post-method) (listp gnus-post-method) @@ -921,8 +923,9 @@ The first matched address (not primary one) is used in the From field." (defvar message-posting-charset nil) ;; Byte-compiler warning -(defvar gnus-active-hashtb) -(defvar gnus-read-active-file) +(eval-when-compile + (defvar gnus-active-hashtb) + (defvar gnus-read-active-file)) ;;; Regexp matching the delimiter of messages in UNIX mail format ;;; (UNIX From lines), minus the initial ^. It should be a copy @@ -1423,8 +1426,9 @@ Point is left at the beginning of the narrowed-to region." ["Body" message-goto-body t] ["Signature" message-goto-signature t])) -(defvar facemenu-add-face-function) -(defvar facemenu-remove-face-function) +(eval-when-compile + (defvar facemenu-add-face-function) + (defvar facemenu-remove-face-function)) ;;;###autoload (defun message-mode () @@ -1977,7 +1981,7 @@ prefix, and don't delete any headers." (insert "\n")) (funcall message-citation-line-function)))) -(defvar mail-citation-hook) ;Compiler directive +(eval-when-compile (defvar mail-citation-hook)) ;Compiler directive (defun message-cite-original () "Cite function in the standard Message manner." (if (and (boundp 'mail-citation-hook) @@ -3538,7 +3542,7 @@ than 988 characters long, and if they are not, trim them until they are." (setq message-buffer-list (nconc message-buffer-list (list (current-buffer)))))) -(defvar mc-modes-alist) +(eval-when-compile (defvar mc-modes-alist)) (defun message-setup (headers &optional replybuffer actions) (when (and (boundp 'mc-modes-alist) (not (assq 'message-mode mc-modes-alist))) @@ -4361,7 +4365,6 @@ Do a `tab-to-tab-stop' if not in those headers." (message-expand-group) (tab-to-tab-stop))) -(defvar gnus-active-hashtb) (defun message-expand-group () "Expand the group name under point." (let* ((b (save-excursion diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index 05ad19024ee..2e1bd1675f4 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el @@ -507,8 +507,9 @@ If MML is non-nil, return the buffer up till the correspondent mml tag." (mail-header-encode-parameter (symbol-name type) value)))))) -(defvar ange-ftp-name-format) -(defvar efs-path-regexp) +(eval-when-compile + (defvar ange-ftp-name-format) + (defvar efs-path-regexp)) (defun mml-parse-file-name (path) (if (if (boundp 'efs-path-regexp) (string-match efs-path-regexp path) diff --git a/lisp/gnus/nnheader.el b/lisp/gnus/nnheader.el index e3a98f36173..92fb31668af 100644 --- a/lisp/gnus/nnheader.el +++ b/lisp/gnus/nnheader.el @@ -813,8 +813,9 @@ If FILE, find the \".../etc/PACKAGE\" file instead." (setq path (cdr path)))) result)) -(defvar ange-ftp-path-format) -(defvar efs-path-regexp) +(eval-when-compile + (defvar ange-ftp-path-format) + (defvar efs-path-regexp)) (defun nnheader-re-read-dir (path) "Re-read directory PATH if PATH is on a remote system." (if (and (fboundp 'efs-re-read-dir) (boundp 'efs-path-regexp))