diff options
| author | Richard M. Stallman | 1992-06-14 19:58:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-06-14 19:58:01 +0000 |
| commit | 343fbb30bf3228a38c9901eddc769bafed65184c (patch) | |
| tree | 046162b65dac6ca769f31736bb799cbbb371909b | |
| parent | 70e14c01eb7cebff3e3ca175797c5042b821065a (diff) | |
| download | emacs-343fbb30bf3228a38c9901eddc769bafed65184c.tar.gz emacs-343fbb30bf3228a38c9901eddc769bafed65184c.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/gnus.el | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/lisp/gnus.el b/lisp/gnus.el index fe44ffcba8c..17a0c2d206a 100644 --- a/lisp/gnus.el +++ b/lisp/gnus.el | |||
| @@ -50,12 +50,17 @@ | |||
| 50 | (require 'nntp) | 50 | (require 'nntp) |
| 51 | (require 'mail-utils) | 51 | (require 'mail-utils) |
| 52 | 52 | ||
| 53 | (defvar gnus-nntp-server (or (getenv "NNTPSERVER") gnus-default-nntp-server) | 53 | (defvar gnus-nntp-server (or (getenv "NNTPSERVER") |
| 54 | (and (boundp 'gnus-default-nntp-server) | ||
| 55 | gnus-default-nntp-server)) | ||
| 54 | "The name of the host running NNTP server. | 56 | "The name of the host running NNTP server. |
| 55 | If it is a string such as `:DIRECTORY', the user's private DIRECTORY | 57 | If it is a string such as `:DIRECTORY', the user's private DIRECTORY |
| 56 | is used as a news spool. | 58 | is used as a news spool. |
| 57 | Initialized from the NNTPSERVER environment variable.") | 59 | Initialized from the NNTPSERVER environment variable.") |
| 58 | 60 | ||
| 61 | (defvar gnus-nntp-service "nntp" | ||
| 62 | "The name of the network service for GNUS to use. Usually \"nntp\".") | ||
| 63 | |||
| 59 | (defvar gnus-signature-file "~/.signature" | 64 | (defvar gnus-signature-file "~/.signature" |
| 60 | "*Your .signature file. Use `.signature-DISTRIBUTION' instead if exists.") | 65 | "*Your .signature file. Use `.signature-DISTRIBUTION' instead if exists.") |
| 61 | 66 | ||
| @@ -819,13 +824,13 @@ User customizable variables: | |||
| 819 | gnus-nntp-server | 824 | gnus-nntp-server |
| 820 | Specifies the name of the host running the NNTP server. If its | 825 | Specifies the name of the host running the NNTP server. If its |
| 821 | value is a string such as `:DIRECTORY', the user's private | 826 | value is a string such as `:DIRECTORY', the user's private |
| 822 | DIRECTORY is used as a news spool. The variable is initialized | 827 | DIRECTORY is used as a news spool. If its value is `::', then |
| 823 | from the NNTPSERVER environment variable. | 828 | the local news spool on the current machine is used directly. |
| 829 | The `NNTPSERVER' environment variable specifies the initial value | ||
| 830 | for this variable. | ||
| 824 | 831 | ||
| 825 | gnus-nntp-service | 832 | gnus-nntp-service |
| 826 | Specifies a NNTP service name. It is usually \"nntp\" or 119. Nil | 833 | Specifies a NNTP service name. It is usually \"nntp\". |
| 827 | forces GNUS to use a local news spool if the variable | ||
| 828 | `gnus-nntp-server' is set to the local host name. | ||
| 829 | 834 | ||
| 830 | gnus-startup-file | 835 | gnus-startup-file |
| 831 | Specifies a startup file (.newsrc). If there is a file named | 836 | Specifies a startup file (.newsrc). If there is a file named |
| @@ -4713,16 +4718,15 @@ Run gnus-Open-server-hook just before opening news server." | |||
| 4713 | ;; If no server name is given, local host is assumed. | 4718 | ;; If no server name is given, local host is assumed. |
| 4714 | (if (string-equal gnus-nntp-server "") | 4719 | (if (string-equal gnus-nntp-server "") |
| 4715 | (setq gnus-nntp-server (system-name))) | 4720 | (setq gnus-nntp-server (system-name))) |
| 4716 | (cond ((string-match ":" gnus-nntp-server) | 4721 | (cond ((string= gnus-nntp-server) "::") |
| 4722 | (require 'nnspool) | ||
| 4723 | (gnus-define-access-method 'nnspool) | ||
| 4724 | (message "Looking up local news spool...")) | ||
| 4725 | ((string-match ":" gnus-nntp-server) | ||
| 4717 | ;; :DIRECTORY | 4726 | ;; :DIRECTORY |
| 4718 | (require 'mhspool) | 4727 | (require 'mhspool) |
| 4719 | (gnus-define-access-method 'mhspool) | 4728 | (gnus-define-access-method 'mhspool) |
| 4720 | (message "Looking up private directory...")) | 4729 | (message "Looking up private directory...")) |
| 4721 | ((and (null gnus-nntp-service) | ||
| 4722 | (string-equal gnus-nntp-server (system-name))) | ||
| 4723 | (require 'nnspool) | ||
| 4724 | (gnus-define-access-method 'nnspool) | ||
| 4725 | (message "Looking up local news spool...")) | ||
| 4726 | (t | 4730 | (t |
| 4727 | (gnus-define-access-method 'nntp) | 4731 | (gnus-define-access-method 'nntp) |
| 4728 | (message "Connecting to NNTP server on %s..." gnus-nntp-server))) | 4732 | (message "Connecting to NNTP server on %s..." gnus-nntp-server))) |