comparison lisp/gnus/gnus.el @ 32981:6a62ea78ba04

2000-10-27 Dave Love <fx@gnu.org> * gnus.el: Don't require custom. Don't require message at top level. (gnus-message-archive-method): Require message here. 2000-10-27 ShengHuo ZHU <zsh@cs.rochester.edu> * gnus.el (gnus-xmas-define): Defalias gnus-overlay-buffer, gnus-overlay-start. * gnus.el (gnus-agent-fetching): New variable.
author Dave Love <fx@gnu.org>
date Fri, 27 Oct 2000 19:15:42 +0000
parents ca7ec5a76115
children e06db3b8e558
comparison
equal deleted inserted replaced
32980:3e47b3d08800 32981:6a62ea78ba04
2 ;; Copyright (C) 1987, 1988, 1989, 1990, 1993, 1994, 1995, 1996, 2 ;; Copyright (C) 1987, 1988, 1989, 1990, 1993, 1994, 1995, 1996,
3 ;; 1997, 1998, 2000 Free Software Foundation, Inc. 3 ;; 1997, 1998, 2000 Free Software Foundation, Inc.
4 4
5 ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet> 5 ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
6 ;; Lars Magne Ingebrigtsen <larsi@gnus.org> 6 ;; Lars Magne Ingebrigtsen <larsi@gnus.org>
7 ;; Maintainer: bugs@gnus.org
7 ;; Keywords: news, mail 8 ;; Keywords: news, mail
8 9
9 ;; This file is part of GNU Emacs. 10 ;; This file is part of GNU Emacs.
10 11
11 ;; GNU Emacs is free software; you can redistribute it and/or modify 12 ;; GNU Emacs is free software; you can redistribute it and/or modify
29 30
30 (eval '(run-hooks 'gnus-load-hook)) 31 (eval '(run-hooks 'gnus-load-hook))
31 32
32 (eval-when-compile (require 'cl)) 33 (eval-when-compile (require 'cl))
33 (require 'mm-util) 34 (require 'mm-util)
34
35 (require 'message)
36 35
37 (defgroup gnus nil 36 (defgroup gnus nil
38 "The coffee-brewing, all singing, all dancing, kitchen sink newsreader." 37 "The coffee-brewing, all singing, all dancing, kitchen sink newsreader."
39 :group 'news 38 :group 'news
40 :group 'mail) 39 :group 'mail)
279 (unless (featurep 'gnus-xmas) 278 (unless (featurep 'gnus-xmas)
280 (defalias 'gnus-make-overlay 'make-overlay) 279 (defalias 'gnus-make-overlay 'make-overlay)
281 (defalias 'gnus-delete-overlay 'delete-overlay) 280 (defalias 'gnus-delete-overlay 'delete-overlay)
282 (defalias 'gnus-overlay-put 'overlay-put) 281 (defalias 'gnus-overlay-put 'overlay-put)
283 (defalias 'gnus-move-overlay 'move-overlay) 282 (defalias 'gnus-move-overlay 'move-overlay)
283 (defalias 'gnus-overlay-buffer 'overlay-buffer)
284 (defalias 'gnus-overlay-start 'overlay-start)
284 (defalias 'gnus-overlay-end 'overlay-end) 285 (defalias 'gnus-overlay-end 'overlay-end)
285 (defalias 'gnus-extent-detached-p 'ignore) 286 (defalias 'gnus-extent-detached-p 'ignore)
286 (defalias 'gnus-extent-start-open 'ignore) 287 (defalias 'gnus-extent-start-open 'ignore)
287 (defalias 'gnus-set-text-properties 'set-text-properties) 288 (defalias 'gnus-set-text-properties 'set-text-properties)
288 (defalias 'gnus-group-remove-excess-properties 'ignore) 289 (defalias 'gnus-group-remove-excess-properties 'ignore)
838 (gnus-splash) 839 (gnus-splash)
839 (gnus-get-buffer-create gnus-group-buffer)))) 840 (gnus-get-buffer-create gnus-group-buffer))))
840 841
841 ;;; Do the rest. 842 ;;; Do the rest.
842 843
843 (require 'custom)
844 (require 'gnus-util) 844 (require 'gnus-util)
845 (require 'nnheader) 845 (require 'nnheader)
846 846
847 (defcustom gnus-home-directory "~/" 847 (defcustom gnus-home-directory "~/"
848 "Directory variable that specifies the \"home\" directory. 848 "Directory variable that specifies the \"home\" directory.
942 see the manual for details." 942 see the manual for details."
943 :group 'gnus-server 943 :group 'gnus-server
944 :type 'gnus-select-method) 944 :type 'gnus-select-method)
945 945
946 (defcustom gnus-message-archive-method 946 (defcustom gnus-message-archive-method
947 `(nnfolder 947 (progn
948 "archive" 948 ;; Don't require it at top level to avoid circularity.
949 (nnfolder-directory ,(nnheader-concat message-directory "archive")) 949 (require 'message)
950 (nnfolder-active-file 950 `(nnfolder
951 ,(nnheader-concat message-directory "archive/active")) 951 "archive"
952 (nnfolder-get-new-mail nil) 952 (nnfolder-directory ,(nnheader-concat message-directory "archive"))
953 (nnfolder-inhibit-expiry t)) 953 (nnfolder-active-file
954 ,(nnheader-concat message-directory "archive/active"))
955 (nnfolder-get-new-mail nil)
956 (nnfolder-inhibit-expiry t)))
954 "*Method used for archiving messages you've sent. 957 "*Method used for archiving messages you've sent.
955 This should be a mail method. 958 This should be a mail method.
956 959
957 It's probably not very effective to change this variable once you've 960 It's probably not very effective to change this variable once you've
958 run Gnus once. After doing that, you must edit this server from the 961 run Gnus once. After doing that, you must edit this server from the
1504 :group 'gnus-charset) 1507 :group 'gnus-charset)
1505 1508
1506 1509
1507 ;;; Internal variables 1510 ;;; Internal variables
1508 1511
1512 (defvar gnus-agent-gcc-header "X-Gnus-Agent-Gcc")
1509 (defvar gnus-agent-meta-information-header "X-Gnus-Agent-Meta-Information") 1513 (defvar gnus-agent-meta-information-header "X-Gnus-Agent-Meta-Information")
1510 (defvar gnus-group-get-parameter-function 'gnus-group-get-parameter) 1514 (defvar gnus-group-get-parameter-function 'gnus-group-get-parameter)
1511 (defvar gnus-original-article-buffer " *Original Article*") 1515 (defvar gnus-original-article-buffer " *Original Article*")
1512 (defvar gnus-newsgroup-name nil) 1516 (defvar gnus-newsgroup-name nil)
1513 (defvar gnus-ephemeral-servers nil) 1517 (defvar gnus-ephemeral-servers nil)
1514 1518
1515 (defvar gnus-agent nil 1519 (defvar gnus-agent nil
1516 "Whether we want to use the Gnus agent or not.") 1520 "Whether we want to use the Gnus agent or not.")
1521
1522 (defvar gnus-agent-fetching nil
1523 "Whether Gnus agent is in fetching mode.")
1517 1524
1518 (defvar gnus-command-method nil 1525 (defvar gnus-command-method nil
1519 "Dynamically bound variable that says what the current backend is.") 1526 "Dynamically bound variable that says what the current backend is.")
1520 1527
1521 (defvar gnus-current-select-method nil 1528 (defvar gnus-current-select-method nil