aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus
diff options
context:
space:
mode:
authorDave Love2000-10-27 18:51:39 +0000
committerDave Love2000-10-27 18:51:39 +0000
commitd4dfaa1967011bd95d132bb5a153f899bfbbdcff (patch)
tree466cabe967c3cd79e7bd83c469ce6f033c268fe4 /lisp/gnus
parenta3ba27daef3bf81a134eb0208a8c5207b829f560 (diff)
downloademacs-d4dfaa1967011bd95d132bb5a153f899bfbbdcff.tar.gz
emacs-d4dfaa1967011bd95d132bb5a153f899bfbbdcff.zip
2000-10-27 Kai Gro�ohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
* gnus-sum.el (gnus-get-split-value): Use first match only (Ed L Cashin <ecashin@coe.uga.edu>). 2000-10-27 Simon Josefsson <simon@josefsson.org> * gnus-sum.el (gnus-get-newsgroup-headers): Ditto. 2000-10-27 ShengHuo ZHU <zsh@cs.rochester.edu> * gnus-sum.el (gnus-refer-article-methods): The second could be a named method. (gnus-cache-write-active): Auto load. (gnus-summary-display-article): Enable multibyte. (gnus-summary-select-article): Don't enable multibyte here. (gnus-summary-goto-article): Ditto. (gnus-summary-enter-digest-group): Decode to-address. * mm-util.el (mm-enable-multibyte-mule4): New. (mm-disable-multibyte-mule4): New. * gnus-sum.el (gnus-summary-mode): Use it. (gnus-summary-select-article): Ditto. (gnus-summary-goto-article): Use enable multibyte.
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/gnus-sum.el35
1 files changed, 22 insertions, 13 deletions
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 999e3b039fe..39bc0d6f607 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -3,6 +3,7 @@
3;; Free Software Foundation, Inc. 3;; Free Software Foundation, Inc.
4 4
5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
6;; Maintainer: bugs@gnus.org
6;; Keywords: news 7;; Keywords: news
7 8
8;; This file is part of GNU Emacs. 9;; This file is part of GNU Emacs.
@@ -37,6 +38,7 @@
37(require 'gnus-util) 38(require 'gnus-util)
38(require 'mm-decode) 39(require 'mm-decode)
39(autoload 'gnus-summary-limit-include-cached "gnus-cache" nil t) 40(autoload 'gnus-summary-limit-include-cached "gnus-cache" nil t)
41(autoload 'gnus-cache-write-active "gnus-cache")
40 42
41(defcustom gnus-kill-summary-on-exit t 43(defcustom gnus-kill-summary-on-exit t
42 "*If non-nil, kill the summary buffer when you exit from it. 44 "*If non-nil, kill the summary buffer when you exit from it.
@@ -2103,7 +2105,7 @@ The following commands are available:
2103 (make-local-hook 'pre-command-hook) 2105 (make-local-hook 'pre-command-hook)
2104 (add-hook 'pre-command-hook 'gnus-set-global-variables nil t) 2106 (add-hook 'pre-command-hook 'gnus-set-global-variables nil t)
2105 (gnus-run-hooks 'gnus-summary-mode-hook) 2107 (gnus-run-hooks 'gnus-summary-mode-hook)
2106 (mm-enable-multibyte) 2108 (mm-enable-multibyte-mule4)
2107 (gnus-update-format-specifications nil 'summary 'summary-mode 'summary-dummy) 2109 (gnus-update-format-specifications nil 'summary 'summary-mode 'summary-dummy)
2108 (gnus-update-summary-mark-positions)) 2110 (gnus-update-summary-mark-positions))
2109 2111
@@ -4302,7 +4304,9 @@ If SELECT-ARTICLES, only select those articles from GROUP."
4302 (if (string-match "^[ \t]*$" input) 4304 (if (string-match "^[ \t]*$" input)
4303 number input))) 4305 number input)))
4304 (t number)) 4306 (t number))
4305 (quit nil)))))) 4307 (quit
4308 (message "Quit getting the articles to read")
4309 nil))))))
4306 (setq select (if (stringp select) (string-to-number select) select)) 4310 (setq select (if (stringp select) (string-to-number select) select))
4307 (if (or (null select) (zerop select)) 4311 (if (or (null select) (zerop select))
4308 select 4312 select
@@ -4742,7 +4746,8 @@ The resulting hash table is returned, or nil if no Xrefs were found."
4742 ;; From. 4746 ;; From.
4743 (progn 4747 (progn
4744 (goto-char p) 4748 (goto-char p)
4745 (if (search-forward "\nfrom: " nil t) 4749 (if (or (search-forward "\nfrom: " nil t)
4750 (search-forward "\nfrom:" nil t))
4746 (funcall gnus-decode-encoded-word-function 4751 (funcall gnus-decode-encoded-word-function
4747 (nnheader-header-value)) 4752 (nnheader-header-value))
4748 "(nobody)")) 4753 "(nobody)"))
@@ -5843,6 +5848,9 @@ Given a prefix, will force an `article' buffer configuration."
5843 5848
5844(defun gnus-summary-display-article (article &optional all-header) 5849(defun gnus-summary-display-article (article &optional all-header)
5845 "Display ARTICLE in article buffer." 5850 "Display ARTICLE in article buffer."
5851 (when (gnus-buffer-live-p gnus-article-buffer)
5852 (with-current-buffer gnus-article-buffer
5853 (mm-enable-multibyte-mule4)))
5846 (gnus-set-global-variables) 5854 (gnus-set-global-variables)
5847 (if (null article) 5855 (if (null article)
5848 nil 5856 nil
@@ -5892,14 +5900,11 @@ be displayed."
5892 force) 5900 force)
5893 ;; The requested article is different from the current article. 5901 ;; The requested article is different from the current article.
5894 (progn 5902 (progn
5895 (when (gnus-buffer-live-p gnus-article-buffer)
5896 (with-current-buffer gnus-article-buffer
5897 (mm-enable-multibyte)))
5898 (gnus-summary-display-article article all-headers) 5903 (gnus-summary-display-article article all-headers)
5899 (when (gnus-buffer-live-p gnus-article-buffer) 5904 (when (gnus-buffer-live-p gnus-article-buffer)
5900 (with-current-buffer gnus-article-buffer 5905 (with-current-buffer gnus-article-buffer
5901 (if (not gnus-article-decoded-p) ;; a local variable 5906 (if (not gnus-article-decoded-p) ;; a local variable
5902 (mm-disable-multibyte)))) 5907 (mm-disable-multibyte-mule4))))
5903 (when (or all-headers gnus-show-all-headers) 5908 (when (or all-headers gnus-show-all-headers)
5904 (gnus-article-show-all-headers)) 5909 (gnus-article-show-all-headers))
5905 (gnus-article-set-window-start 5910 (gnus-article-set-window-start
@@ -6878,7 +6883,8 @@ of what's specified by the `gnus-refer-thread-limit' variable."
6878 ((eq 'current gnus-refer-article-method) 6883 ((eq 'current gnus-refer-article-method)
6879 (list gnus-current-select-method)) 6884 (list gnus-current-select-method))
6880 ;; List of select methods. 6885 ;; List of select methods.
6881 ((not (stringp (cadr gnus-refer-article-method))) 6886 ((not (and (symbolp (car gnus-refer-article-method))
6887 (assq (car gnus-refer-article-method) nnoo-definition-alist)))
6882 (let (out) 6888 (let (out)
6883 (dolist (method gnus-refer-article-method) 6889 (dolist (method gnus-refer-article-method)
6884 (push (if (eq 'current method) 6890 (push (if (eq 'current method)
@@ -6928,7 +6934,10 @@ to guess what the document format is."
6928 ;; the parent article. 6934 ;; the parent article.
6929 (when (setq to-address (or (message-fetch-field "reply-to") 6935 (when (setq to-address (or (message-fetch-field "reply-to")
6930 (message-fetch-field "from"))) 6936 (message-fetch-field "from")))
6931 (setq params (append (list (cons 'to-address to-address))))) 6937 (setq params (append
6938 (list (cons 'to-address
6939 (funcall gnus-decode-encoded-word-function
6940 to-address))))))
6932 (setq dig (nnheader-set-temp-buffer " *gnus digest buffer*")) 6941 (setq dig (nnheader-set-temp-buffer " *gnus digest buffer*"))
6933 (insert-buffer-substring gnus-original-article-buffer) 6942 (insert-buffer-substring gnus-original-article-buffer)
6934 ;; Remove lines that may lead nndoc to misinterpret the 6943 ;; Remove lines that may lead nndoc to misinterpret the
@@ -7828,7 +7837,7 @@ groups."
7828 (gnus-summary-show-article t) 7837 (gnus-summary-show-article t)
7829 (when (and (not raw) (gnus-buffer-live-p gnus-article-buffer)) 7838 (when (and (not raw) (gnus-buffer-live-p gnus-article-buffer))
7830 (with-current-buffer gnus-article-buffer 7839 (with-current-buffer gnus-article-buffer
7831 (mm-enable-multibyte))) 7840 (mm-enable-multibyte-mule4)))
7832 (if (equal gnus-newsgroup-name "nndraft:drafts") 7841 (if (equal gnus-newsgroup-name "nndraft:drafts")
7833 (setq raw t)) 7842 (setq raw t))
7834 (gnus-article-edit-article 7843 (gnus-article-edit-article
@@ -9120,7 +9129,7 @@ save those articles instead."
9120 (set-buffer gnus-original-article-buffer) 9129 (set-buffer gnus-original-article-buffer)
9121 (save-restriction 9130 (save-restriction
9122 (nnheader-narrow-to-headers) 9131 (nnheader-narrow-to-headers)
9123 (while methods 9132 (while (and methods (not split-name))
9124 (goto-char (point-min)) 9133 (goto-char (point-min))
9125 (setq method (pop methods)) 9134 (setq method (pop methods))
9126 (setq match (car method)) 9135 (setq match (car method))
@@ -9139,7 +9148,7 @@ save those articles instead."
9139 (save-restriction 9148 (save-restriction
9140 (widen) 9149 (widen)
9141 (setq result (eval match))))) 9150 (setq result (eval match)))))
9142 (setq split-name (append (cdr method) split-name)) 9151 (setq split-name (cdr method))
9143 (cond ((stringp result) 9152 (cond ((stringp result)
9144 (push (expand-file-name 9153 (push (expand-file-name
9145 result gnus-article-save-directory) 9154 result gnus-article-save-directory)