diff options
| author | Richard M. Stallman | 1993-07-20 04:25:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-20 04:25:28 +0000 |
| commit | 44cdca98f73869c8e03ab6a14cd6c22cca933f97 (patch) | |
| tree | 906284dc0668a78cf93002981f42f747c76d2a69 | |
| parent | 9723a15c97d0ba09c47482d251d732479863eb96 (diff) | |
| download | emacs-44cdca98f73869c8e03ab6a14cd6c22cca933f97.tar.gz emacs-44cdca98f73869c8e03ab6a14cd6c22cca933f97.zip | |
(gnus-emacs-version): New variable.
(gnus-version): Updated to 4.1.
(gnus-newsrc-to-gnus-format): Use different regexp in 18 and 19.
(gnus-group-startup-message): Use gnus-emacs-version.
| -rw-r--r-- | lisp/gnus.el | 65 |
1 files changed, 34 insertions, 31 deletions
diff --git a/lisp/gnus.el b/lisp/gnus.el index 3e1e423d4d3..84b0bd6a8f9 100644 --- a/lisp/gnus.el +++ b/lisp/gnus.el | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | ;;; GNUS: an NNTP-based News Reader for GNU Emacs | 1 | ;;; GNUS: an NNTP-based News Reader for GNU Emacs |
| 2 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1993 Free Software Foundation, Inc. | 2 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1993 Free Software Foundation, Inc. |
| 3 | ;; $Header: /home/fsf/rms/e19/lisp/RCS/gnus.el,v 1.22 1993/06/29 23:03:21 jimb Exp rms $ | 3 | |
| 4 | ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet> | ||
| 5 | ;; Version: $Header: gnus.el,v 4.1 93/07/19 15:42:20 umerin Exp $ | ||
| 6 | ;; Keywords: news | ||
| 4 | 7 | ||
| 5 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 6 | 9 | ||
| @@ -80,39 +83,24 @@ | |||
| 80 | ;; If you are not allowed to create the Info file to the standard | 83 | ;; If you are not allowed to create the Info file to the standard |
| 81 | ;; Info-directory, create it in your private directory and set the | 84 | ;; Info-directory, create it in your private directory and set the |
| 82 | ;; variable gnus-info-directory to that directory. | 85 | ;; variable gnus-info-directory to that directory. |
| 83 | |||
| 84 | ;; GNUS Mailing List: | ||
| 85 | ;; There are two mailing lists for GNUS lovers in the world: | ||
| 86 | ;; | ||
| 87 | ;; info-gnus@flab.fujitsu.co.jp, and | ||
| 88 | ;; info-gnus-english@tut.cis.ohio-state.edu. | ||
| 89 | ;; | ||
| 90 | ;; They are intended to exchange useful information about GNUS, such | ||
| 91 | ;; as bug fixes, useful hooks, and extensions. The major difference | ||
| 92 | ;; between the lists is what the official language is. Both Japanese | ||
| 93 | ;; and English are available in info-gnus, while English is only | ||
| 94 | ;; available in info-gnus-english. There is no need to subscribe to | ||
| 95 | ;; info-gnus if you cannot read Japanese messages, because most of the | ||
| 96 | ;; discussion and important announcements will be sent to | ||
| 97 | ;; info-gnus-english. Moreover, if you can read gnu.emacs.gnus | ||
| 98 | ;; newsgroup of USENET, you need not, either. info-gnus-english and | ||
| 99 | ;; gnu.emacs.gnus are linked each other. | ||
| 100 | ;; | ||
| 101 | ;; Please send subscription request to: | ||
| 102 | ;; | 86 | ;; |
| 103 | ;; info-gnus-request@flab.fujitsu.co.jp, or | 87 | ;; For getting more information about GNUS, consult USENET newsgorup |
| 104 | ;; info-gnus-english-request@cis.ohio-state.edu | 88 | ;; gnu.emacs.gnus. |
| 105 | 89 | ||
| 106 | ;; TO DO: | 90 | ;; TO DO: |
| 107 | ;; (1) Incremental update of active info. | 91 | ;; (1) Incremental update of active info. |
| 108 | ;; (2) GNUS own poster. | 92 | ;; (2) Asynchronous transmission of large messages. |
| 109 | ;; (3) Multi-GNUS (Talking to many hosts same time). | 93 | |
| 110 | ;; (4) Asynchronous transmission of large messages. | 94 | ;;; Code: |
| 111 | 95 | ||
| 112 | (provide 'gnus) | 96 | (provide 'gnus) |
| 113 | (require 'nntp) | 97 | (require 'nntp) |
| 114 | (require 'mail-utils) | 98 | (require 'mail-utils) |
| 115 | 99 | ||
| 100 | (defvar gnus-default-nntp-server nil | ||
| 101 | "*Specify default NNTP server. | ||
| 102 | This variable should be defined in paths.el.") | ||
| 103 | |||
| 116 | (defvar gnus-nntp-server (or (getenv "NNTPSERVER") gnus-default-nntp-server) | 104 | (defvar gnus-nntp-server (or (getenv "NNTPSERVER") gnus-default-nntp-server) |
| 117 | "*The name of the host running NNTP server. | 105 | "*The name of the host running NNTP server. |
| 118 | If it is a string such as `:DIRECTORY', the user's private DIRECTORY | 106 | If it is a string such as `:DIRECTORY', the user's private DIRECTORY |
| @@ -605,9 +593,16 @@ use this; if non-nil, use no host name (user name only)") | |||
| 605 | 593 | ||
| 606 | ;; Internal variables. | 594 | ;; Internal variables. |
| 607 | 595 | ||
| 608 | (defconst gnus-version "GNUS 3.15" | 596 | (defconst gnus-version "GNUS 4.1" |
| 609 | "Version numbers of this version of GNUS.") | 597 | "Version numbers of this version of GNUS.") |
| 610 | 598 | ||
| 599 | (defconst gnus-emacs-version | ||
| 600 | (progn | ||
| 601 | (string-match "[0-9]*" emacs-version) | ||
| 602 | (string-to-int (substring emacs-version | ||
| 603 | (match-beginning 0) (match-end 0)))) | ||
| 604 | "Major version number of this emacs.") | ||
| 605 | |||
| 611 | (defvar gnus-info-nodes | 606 | (defvar gnus-info-nodes |
| 612 | '((gnus-group-mode "(gnus)Newsgroup Commands") | 607 | '((gnus-group-mode "(gnus)Newsgroup Commands") |
| 613 | (gnus-summary-mode "(gnus)Summary Commands") | 608 | (gnus-summary-mode "(gnus)Summary Commands") |
| @@ -1211,8 +1206,9 @@ If optional argument CONFIRM is non-nil, ask NNTP server." | |||
| 1211 | (defun gnus-group-startup-message () | 1206 | (defun gnus-group-startup-message () |
| 1212 | "Insert startup message in current buffer." | 1207 | "Insert startup message in current buffer." |
| 1213 | ;; Insert the message. | 1208 | ;; Insert the message. |
| 1214 | (insert " | 1209 | (insert |
| 1215 | GNUS Version 3.15 | 1210 | (format " |
| 1211 | %s | ||
| 1216 | 1212 | ||
| 1217 | NNTP-based News Reader for GNU Emacs | 1213 | NNTP-based News Reader for GNU Emacs |
| 1218 | 1214 | ||
| @@ -1223,7 +1219,7 @@ know. I will fix your problems in the next release. | |||
| 1223 | Comments, suggestions, and bug fixes are welcome. | 1219 | Comments, suggestions, and bug fixes are welcome. |
| 1224 | 1220 | ||
| 1225 | Masanobu UMEDA | 1221 | Masanobu UMEDA |
| 1226 | umerin@mse.kyutech.ac.jp") | 1222 | umerin@mse.kyutech.ac.jp" gnus-version)) |
| 1227 | ;; And then hack it. | 1223 | ;; And then hack it. |
| 1228 | ;; 57 is the longest line. | 1224 | ;; 57 is the longest line. |
| 1229 | (indent-rigidly (point-min) (point-max) (/ (max (- (window-width) 57) 0) 2)) | 1225 | (indent-rigidly (point-min) (point-max) (/ (max (- (window-width) 57) 0) 2)) |
| @@ -6569,9 +6565,14 @@ If optional argument RAWFILE is non-nil, the raw startup file is read." | |||
| 6569 | ;; "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(.*\\)$" | 6565 | ;; "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(.*\\)$" |
| 6570 | ;; Suggested by composer@bucsf.bu.edu (Jeff Kellem) | 6566 | ;; Suggested by composer@bucsf.bu.edu (Jeff Kellem) |
| 6571 | ;; but no longer viable because of extensive backtracking in Emacs 19: | 6567 | ;; but no longer viable because of extensive backtracking in Emacs 19: |
| 6572 | ;; "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\(...\\)*.*\\)$" nil t) | 6568 | ;; "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\(...\\)*.*\\)$" |
| 6569 | ;; but, the following causes trouble on some case: | ||
| 6570 | ;; "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\|[^ \t\n].*\\)$" | ||
| 6573 | (while (re-search-forward | 6571 | (while (re-search-forward |
| 6574 | "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\|[^ \t\n].*\\)$" nil t) | 6572 | (if (= gnus-emacs-version 18) |
| 6573 | "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\(...\\)*.*\\)$" | ||
| 6574 | "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(.*\\)$") | ||
| 6575 | nil t) | ||
| 6575 | (setq newsgroup (buffer-substring (match-beginning 1) (match-end 1))) | 6576 | (setq newsgroup (buffer-substring (match-beginning 1) (match-end 1))) |
| 6576 | ;; Check duplications of newsgroups. | 6577 | ;; Check duplications of newsgroups. |
| 6577 | ;; Note: Checking the duplications takes very long time. | 6578 | ;; Note: Checking the duplications takes very long time. |
| @@ -6943,3 +6944,5 @@ otherwise, if FILE2 does not exist, the answer is t." | |||
| 6943 | ;;Local variables: | 6944 | ;;Local variables: |
| 6944 | ;;eval: (put 'gnus-eval-in-buffer-window 'lisp-indent-hook 1) | 6945 | ;;eval: (put 'gnus-eval-in-buffer-window 'lisp-indent-hook 1) |
| 6945 | ;;end: | 6946 | ;;end: |
| 6947 | |||
| 6948 | ;;; gnus.el ends here | ||