comparison lisp/gnus/message.el @ 33301:c1c373a70748

Put some defvars in eval-when-compile.
author Dave Love <fx@gnu.org>
date Wed, 08 Nov 2000 15:36:19 +0000
parents 92f44ab47ab5
children 3fcf9bc886b8
comparison
equal deleted inserted replaced
33300:cae923af5a5d 33301:c1c373a70748
258 (defcustom message-kill-buffer-on-exit nil 258 (defcustom message-kill-buffer-on-exit nil
259 "*Non-nil means that the message buffer will be killed after sending a message." 259 "*Non-nil means that the message buffer will be killed after sending a message."
260 :group 'message-buffers 260 :group 'message-buffers
261 :type 'boolean) 261 :type 'boolean)
262 262
263 (defvar gnus-local-organization) 263 (eval-when-compile
264 (defvar gnus-local-organization))
264 (defcustom message-user-organization 265 (defcustom message-user-organization
265 (or (and (boundp 'gnus-local-organization) 266 (or (and (boundp 'gnus-local-organization)
266 (stringp gnus-local-organization) 267 (stringp gnus-local-organization)
267 gnus-local-organization) 268 gnus-local-organization)
268 (getenv "ORGANIZATION") 269 (getenv "ORGANIZATION")
419 (defvar message-cater-to-broken-inn t 420 (defvar message-cater-to-broken-inn t
420 "Non-nil means Gnus should not fold the `References' header. 421 "Non-nil means Gnus should not fold the `References' header.
421 Folding `References' makes ancient versions of INN create incorrect 422 Folding `References' makes ancient versions of INN create incorrect
422 NOV lines.") 423 NOV lines.")
423 424
424 (defvar gnus-post-method) 425 (eval-when-compile
425 (defvar gnus-select-method) 426 (defvar gnus-post-method)
427 (defvar gnus-select-method))
426 (defcustom message-post-method 428 (defcustom message-post-method
427 (cond ((and (boundp 'gnus-post-method) 429 (cond ((and (boundp 'gnus-post-method)
428 (listp gnus-post-method) 430 (listp gnus-post-method)
429 gnus-post-method) 431 gnus-post-method)
430 gnus-post-method) 432 gnus-post-method)
919 (defvar message-draft-article nil) 921 (defvar message-draft-article nil)
920 (defvar message-mime-part nil) 922 (defvar message-mime-part nil)
921 (defvar message-posting-charset nil) 923 (defvar message-posting-charset nil)
922 924
923 ;; Byte-compiler warning 925 ;; Byte-compiler warning
924 (defvar gnus-active-hashtb) 926 (eval-when-compile
925 (defvar gnus-read-active-file) 927 (defvar gnus-active-hashtb)
928 (defvar gnus-read-active-file))
926 929
927 ;;; Regexp matching the delimiter of messages in UNIX mail format 930 ;;; Regexp matching the delimiter of messages in UNIX mail format
928 ;;; (UNIX From lines), minus the initial ^. It should be a copy 931 ;;; (UNIX From lines), minus the initial ^. It should be a copy
929 ;;; of rmail.el's rmail-unix-mail-delimiter. 932 ;;; of rmail.el's rmail-unix-mail-delimiter.
930 (defvar message-unix-mail-delimiter 933 (defvar message-unix-mail-delimiter
1421 ["Followup-To" message-goto-followup-to t] 1424 ["Followup-To" message-goto-followup-to t]
1422 ["Distribution" message-goto-distribution t] 1425 ["Distribution" message-goto-distribution t]
1423 ["Body" message-goto-body t] 1426 ["Body" message-goto-body t]
1424 ["Signature" message-goto-signature t])) 1427 ["Signature" message-goto-signature t]))
1425 1428
1426 (defvar facemenu-add-face-function) 1429 (eval-when-compile
1427 (defvar facemenu-remove-face-function) 1430 (defvar facemenu-add-face-function)
1431 (defvar facemenu-remove-face-function))
1428 1432
1429 ;;;###autoload 1433 ;;;###autoload
1430 (defun message-mode () 1434 (defun message-mode ()
1431 "Major mode for editing mail and news to be sent. 1435 "Major mode for editing mail and news to be sent.
1432 Like Text Mode but with these additional commands: 1436 Like Text Mode but with these additional commands:
1975 (when message-citation-line-function 1979 (when message-citation-line-function
1976 (unless (bolp) 1980 (unless (bolp)
1977 (insert "\n")) 1981 (insert "\n"))
1978 (funcall message-citation-line-function)))) 1982 (funcall message-citation-line-function))))
1979 1983
1980 (defvar mail-citation-hook) ;Compiler directive 1984 (eval-when-compile (defvar mail-citation-hook)) ;Compiler directive
1981 (defun message-cite-original () 1985 (defun message-cite-original ()
1982 "Cite function in the standard Message manner." 1986 "Cite function in the standard Message manner."
1983 (if (and (boundp 'mail-citation-hook) 1987 (if (and (boundp 'mail-citation-hook)
1984 mail-citation-hook) 1988 mail-citation-hook)
1985 (run-hooks 'mail-citation-hook) 1989 (run-hooks 'mail-citation-hook)
3536 ;; Push the current buffer onto the list. 3540 ;; Push the current buffer onto the list.
3537 (when message-max-buffers 3541 (when message-max-buffers
3538 (setq message-buffer-list 3542 (setq message-buffer-list
3539 (nconc message-buffer-list (list (current-buffer)))))) 3543 (nconc message-buffer-list (list (current-buffer))))))
3540 3544
3541 (defvar mc-modes-alist) 3545 (eval-when-compile (defvar mc-modes-alist))
3542 (defun message-setup (headers &optional replybuffer actions) 3546 (defun message-setup (headers &optional replybuffer actions)
3543 (when (and (boundp 'mc-modes-alist) 3547 (when (and (boundp 'mc-modes-alist)
3544 (not (assq 'message-mode mc-modes-alist))) 3548 (not (assq 'message-mode mc-modes-alist)))
3545 (push '(message-mode (encrypt . mc-encrypt-message) 3549 (push '(message-mode (encrypt . mc-encrypt-message)
3546 (sign . mc-sign-message)) 3550 (sign . mc-sign-message))
4359 (if (let ((mail-abbrev-mode-regexp message-newgroups-header-regexp)) 4363 (if (let ((mail-abbrev-mode-regexp message-newgroups-header-regexp))
4360 (mail-abbrev-in-expansion-header-p)) 4364 (mail-abbrev-in-expansion-header-p))
4361 (message-expand-group) 4365 (message-expand-group)
4362 (tab-to-tab-stop))) 4366 (tab-to-tab-stop)))
4363 4367
4364 (defvar gnus-active-hashtb)
4365 (defun message-expand-group () 4368 (defun message-expand-group ()
4366 "Expand the group name under point." 4369 "Expand the group name under point."
4367 (let* ((b (save-excursion 4370 (let* ((b (save-excursion
4368 (save-restriction 4371 (save-restriction
4369 (narrow-to-region 4372 (narrow-to-region