From: morioka Date: Mon, 23 Feb 1998 13:55:50 +0000 (+0000) Subject: Sync up with qgnus-0.31. X-Git-Tag: gnus-6_7-tomo-199811302358~160 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a46d48e565fc6504c2bdc76e1098ee9321f1c29b;p=elisp%2Fgnus.git- Sync up with qgnus-0.31. --- diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index 2d015f9..8cd0ee7 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -129,7 +129,7 @@ comparing subjects." (sexp :menu-tag "on" t))) (defcustom gnus-simplify-subject-functions nil - "*List of functions taking a string argument that simplify subjects. + "List of functions taking a string argument that simplify subjects. The functions are applied recursively." :group 'gnus-thread :type '(repeat (list function))) @@ -497,7 +497,7 @@ list of parameters to that command." :type 'boolean) (defcustom gnus-summary-dummy-line-format - "* %(: :%) %S\n" + " %(: :%) %S\n" "*The format specification for the dummy roots in the summary buffer. It works along the same lines as a normal formatting string, with some simple extensions. @@ -580,14 +580,14 @@ Some functions you can use are `+', `max', or `min'." :type 'function) (defcustom gnus-summary-expunge-below nil - "*All articles that have a score less than this variable will be expunged. + "All articles that have a score less than this variable will be expunged. This variable is local to the summary buffers." :group 'gnus-score-default :type '(choice (const :tag "off" nil) integer)) (defcustom gnus-thread-expunge-below nil - "*All threads that have a total score less than this variable will be expunged. + "All threads that have a total score less than this variable will be expunged. See `gnus-thread-score-function' for en explanation of what a \"thread score\" is. @@ -666,7 +666,7 @@ is not run if `gnus-visual' is nil." (defcustom gnus-structured-field-decoder #'eword-decode-and-unfold-structured-field - "*Function to decode non-ASCII characters in structured field for summary." + "Function to decode non-ASCII characters in structured field for summary." :group 'gnus-various :type 'function) @@ -676,7 +676,7 @@ is not run if `gnus-visual' is nil." (eword-decode-unstructured-field-body (std11-unfold-string string) 'must-unfold) )) - "*Function to decode non-ASCII characters in unstructured field for summary." + "Function to decode non-ASCII characters in unstructured field for summary." :group 'gnus-various :type 'function) @@ -720,7 +720,7 @@ automatically when it is selected." :type 'hook) (defcustom gnus-summary-selected-face 'gnus-summary-selected-face - "*Face used for highlighting the current article in the summary buffer." + "Face used for highlighting the current article in the summary buffer." :group 'gnus-summary-visual :type 'face) @@ -748,8 +748,15 @@ automatically when it is selected." . gnus-summary-high-unread-face) ((and (< score default) (= mark gnus-unread-mark)) . gnus-summary-low-unread-face) - ((memq mark (list gnus-unread-mark gnus-downloadable-mark - gnus-undownloaded-mark)) + ((= mark gnus-unread-mark) + . gnus-summary-normal-unread-face) + ((and (> score default) (memq mark (list gnus-downloadable-mark + gnus-undownloaded-mark))) + . gnus-summary-high-unread-face) + ((and (< score default) (memq mark (list gnus-downloadable-mark + gnus-undownloaded-mark))) + . gnus-summary-low-unread-face) + ((memq mark (list gnus-downloadable-mark gnus-undownloaded-mark)) . gnus-summary-normal-unread-face) ((> score default) . gnus-summary-high-read-face) @@ -775,7 +782,7 @@ mark: The articles mark." face))) (defcustom gnus-alter-header-function nil - "*Function called to allow alteration of article header structures. + "Function called to allow alteration of article header structures. The function is called with one parameter, the article header vector, which it may alter in any way.") @@ -4362,11 +4369,11 @@ The resulting hash table is returned, or nil if no Xrefs were found." (progn (goto-char p) (setq id (if (re-search-forward - "^message-id: *\\(<[^\n\t> ]>\\)" nil t) + "^message-id: *\\(<[^\n\t> ]+>\\)" nil t) ;; We do it this way to make sure the Message-ID ;; is (somewhat) syntactically valid. - (buffer-substring (match-beginning 0) - (match-end 0)) + (buffer-substring (match-beginning 1) + (match-end 1)) ;; If there was no message-id, we just fake one ;; to make subsequent routines simpler. (nnheader-generate-fake-message-id)))) @@ -5088,6 +5095,7 @@ gnus-exit-group-hook is called with no arguments if that value is non-nil." (interactive) (gnus-set-global-variables) (gnus-kill-save-kill-buffer) + (gnus-async-halt-prefetch) (let* ((group gnus-newsgroup-name) (quit-config (gnus-group-quit-config gnus-newsgroup-name)) (mode major-mode) @@ -5173,6 +5181,7 @@ gnus-exit-group-hook is called with no arguments if that value is non-nil." (when (or no-questions gnus-expert-user (gnus-y-or-n-p "Discard changes to this group and exit? ")) + (gnus-async-halt-prefetch) ;; If we have several article buffers, we kill them at exit. (unless gnus-single-article-buffer (gnus-kill-buffer gnus-article-buffer) @@ -7135,7 +7144,7 @@ re-spool using this method." (gnus-summary-move-article n nil nil 'crosspost)) (defcustom gnus-summary-respool-default-method nil - "*Default method for respooling an article. + "Default method for respooling an article. If nil, use to the current newsgroup method." :type `(choice (gnus-select-method :value (nnml "")) (const nil)) diff --git a/lisp/gnus.el b/lisp/gnus.el index 03fc90d..994b68e 100644 --- a/lisp/gnus.el +++ b/lisp/gnus.el @@ -250,18 +250,18 @@ is restarted, and sometimes reloaded." "Version number for this version of gnus.") (defconst gnus-version - (format "Semi-gnus %s (based on Quassia Gnus v0.30)" gnus-version-number) + (format "Semi-gnus %s (based on Quassia Gnus v0.31)" gnus-version-number) "Version string for this version of gnus.") (defcustom gnus-inhibit-startup-message nil - "*If non-nil, the startup message will not be displayed. + "If non-nil, the startup message will not be displayed. This variable is used before `.gnus.el' is loaded, so it should be set in `.emacs' instead." :group 'gnus-start :type 'boolean) (defcustom gnus-play-startup-jingle nil - "*If non-nil, play the Gnus jingle at startup." + "If non-nil, play the Gnus jingle at startup." :group 'gnus-start :type 'boolean) @@ -696,13 +696,13 @@ be set in `.emacs' instead." (require 'nnheader) (defcustom gnus-home-directory "~/" - "*Directory variable that specifies the \"home\" directory. + "Directory variable that specifies the \"home\" directory. All other Gnus path variables are initialized from this variable." :group 'gnus-files :type 'directory) (defcustom gnus-directory (or (getenv "SAVEDIR") - (nnheader-concat gnus-home-directory "News/")) + (nnheader-concat gnus-home-directory "News/")) "*Directory variable from which all other Gnus file variables are derived." :group 'gnus-files :type 'directory) @@ -733,7 +733,7 @@ used to 899, you would say something along these lines: (setq gnus-select-method '(nntp \"my.nntp.server\" (nntp-port-number 899)))") (defcustom gnus-nntpserver-file "/etc/nntpserver" - "*A file with only the name of the nntp server in it." + "A file with only the name of the nntp server in it." :group 'gnus-files :group 'gnus-server :type 'file) @@ -833,7 +833,7 @@ that case, just return a fully prefixed name of the group -- string)) (defcustom gnus-secondary-servers nil - "*List of NNTP servers that the user can choose between interactively. + "List of NNTP servers that the user can choose between interactively. To make Gnus query you for a server, you have to give `gnus' a non-numeric prefix - `C-u M-x gnus', in short." :group 'gnus-server @@ -848,7 +848,7 @@ variable instead." string)) (defcustom gnus-secondary-select-methods nil - "*A list of secondary methods that will be used for reading news. + "A list of secondary methods that will be used for reading news. This is a list where each element is a complete select method (see `gnus-select-method'). @@ -865,7 +865,7 @@ you could set this variable: Should be set in paths.el, and shouldn't be touched by the user.") (defcustom gnus-local-domain nil - "*Local domain name without a host name. + "Local domain name without a host name. The DOMAINNAME environment variable is used instead if it is defined. If the `system-name' function returns the full Internet name, there is no need to set this variable." @@ -880,7 +880,7 @@ Obsolete variable; use `message-user-organization' instead.") ;; Customization variables (defcustom gnus-refer-article-method nil - "*Preferred method for fetching an article by Message-ID. + "Preferred method for fetching an article by Message-ID. If you are reading news from the local spool (with nnspool), fetching articles by Message-ID is painfully slow. By setting this method to an nntp method, you might get acceptable results. @@ -1045,7 +1045,7 @@ articles. This is not a good idea." :type 'boolean) (defcustom gnus-use-demon nil - "*If non-nil, Gnus might use some demons." + "If non-nil, Gnus might use some demons." :group 'gnus-meta :type 'boolean) @@ -1107,7 +1107,7 @@ slower." :type 'boolean) (defcustom gnus-shell-command-separator ";" - "*String used to separate to shell commands." + "String used to separate to shell commands." :group 'gnus-files :type 'string) @@ -1163,7 +1163,7 @@ this variable. I think." (sexp :tag "Value"))))) (defcustom gnus-updated-mode-lines '(group article summary tree) - "*List of buffers that should update their mode lines. + "List of buffers that should update their mode lines. The list may contain the symbols `group', `article', `tree' and `summary'. If the corresponding symbol is present, Gnus will keep that mode line updated with information that may be pertinent. @@ -1203,7 +1203,7 @@ course.)" regexp)) (defcustom gnus-group-uncollapsed-levels 1 - "*Number of group name elements to leave alone when making a short group name." + "Number of group name elements to leave alone when making a short group name." :group 'gnus-group-visual :type 'integer) @@ -1215,12 +1215,12 @@ course.)" ;; Hooks. (defcustom gnus-load-hook nil - "*A hook run while Gnus is loaded." + "A hook run while Gnus is loaded." :group 'gnus-start :type 'hook) (defcustom gnus-apply-kill-hook '(gnus-apply-kill-file) - "*A hook called to apply kill files to a group. + "A hook called to apply kill files to a group. This hook is intended to apply a kill file to the selected newsgroup. The function `gnus-apply-kill-file' is called by default. @@ -1241,7 +1241,7 @@ following hook: :type 'hook) (defcustom gnus-group-change-level-function nil - "*Function run when a group level is changed. + "Function run when a group level is changed. It is called with three parameters -- GROUP, LEVEL and OLDLEVEL." :group 'gnus-group-level :type 'function) @@ -2518,7 +2518,7 @@ Returns the number of articles marked as read." (kill-buffer (current-buffer)))))) (defcustom gnus-kill-file-name "KILL" - "*Suffix of the kill files." + "Suffix of the kill files." :group 'gnus-score-kill :group 'gnus-score-files :type 'string)