aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2006-02-04 00:58:23 +0000
committerMiles Bader2006-02-04 00:58:23 +0000
commit6203370b5e51fe55a4132fe8ccc868c35ad8c67f (patch)
treea0564358df979256ad580047cb5066256961bc4d
parentd4ff848f77312b15140cf3d3086a24878a5082c6 (diff)
downloademacs-6203370b5e51fe55a4132fe8ccc868c35ad8c67f.tar.gz
emacs-6203370b5e51fe55a4132fe8ccc868c35ad8c67f.zip
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-42
Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 14-17) - Update from CVS - Merge from emacs--devo--0
-rw-r--r--lisp/gnus/ChangeLog21
-rw-r--r--lisp/gnus/gnus-util.el3
-rw-r--r--lisp/gnus/mml.el5
-rw-r--r--lisp/gnus/nnweb.el3
-rw-r--r--lisp/gnus/rfc2231.el31
5 files changed, 49 insertions, 14 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 87a3f1918d6..1edd84bea48 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,24 @@
12006-02-03 Reiner Steib <Reiner.Steib@gmx.de>
2
3 * gnus-util.el (gnus-error): Describe `args'.
4
52006-02-03 Andreas Seltenreich <uwi7@stud.uni-karlsruhe.de>
6
7 * nnweb.el (nnweb-request-group): Avoid growing overview files.
8
92006-02-03 Katsumi Yamaoka <yamaoka@jpl.org>
10
11 * rfc2231.el (rfc2231-parse-string): Add missing semicolons to
12 segmented lines of parameter value to cope with Thunderbird 1.5
13 bug (cf. https://bugzilla.mozilla.org/show_bug.cgi?id=323318).
14 Suggested by ARISAWA Akihiro <ari@mbf.ocn.ne.jp>.
15 (rfc2231-encode-string): Don't make lines exceeding 76 column.
16
172006-02-01 Max Froumentin <max@lapin-bleu.net> (tiny change)
18
19 * mml.el (mml-generate-mime-1): Correct the order of inline signed
20 parts.
21
12006-01-31 Andreas Seltenreich <uwi7@stud.uni-karlsruhe.de> 222006-01-31 Andreas Seltenreich <uwi7@stud.uni-karlsruhe.de>
2 23
3 * nnweb.el (nnweb-group-alist): Use defvar instead of defvoo, 24 * nnweb.el (nnweb-group-alist): Use defvar instead of defvoo,
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index f7fb279f20f..c71b9630db2 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -497,7 +497,8 @@ inside loops."
497 (apply 'format args))) 497 (apply 'format args)))
498 498
499(defun gnus-error (level &rest args) 499(defun gnus-error (level &rest args)
500 "Beep an error if LEVEL is equal to or less than `gnus-verbose'." 500 "Beep an error if LEVEL is equal to or less than `gnus-verbose'.
501ARGS are passed to `message'."
501 (when (<= (floor level) gnus-verbose) 502 (when (<= (floor level) gnus-verbose)
502 (apply 'message args) 503 (apply 'message args)
503 (ding) 504 (ding)
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 90f7c5f09dd..f8c34b370d6 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -1,7 +1,7 @@
1;;; mml.el --- A package for parsing and validating MML documents 1;;; mml.el --- A package for parsing and validating MML documents
2 2
3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; This file is part of GNU Emacs. 7;; This file is part of GNU Emacs.
@@ -578,7 +578,8 @@ If MML is non-nil, return the buffer up till the correspondent mml tag."
578 ;; Skip `multipart' and attributes. 578 ;; Skip `multipart' and attributes.
579 (when (and (consp part) (consp (cdr part))) 579 (when (and (consp part) (consp (cdr part)))
580 (insert "\n--" mml-boundary "\n") 580 (insert "\n--" mml-boundary "\n")
581 (mml-generate-mime-1 part)))) 581 (mml-generate-mime-1 part)
582 (goto-char (point-max)))))
582 (insert "\n--" mml-boundary "--\n"))))) 583 (insert "\n--" mml-boundary "--\n")))))
583 (t 584 (t
584 (error "Invalid element: %S" cont))) 585 (error "Invalid element: %S" cont)))
diff --git a/lisp/gnus/nnweb.el b/lisp/gnus/nnweb.el
index 4723a694182..bf49aba7f08 100644
--- a/lisp/gnus/nnweb.el
+++ b/lisp/gnus/nnweb.el
@@ -133,7 +133,8 @@ Valid types include `google', `dejanews', and `gmane'.")
133(deffoo nnweb-request-group (group &optional server dont-check) 133(deffoo nnweb-request-group (group &optional server dont-check)
134 (nnweb-possibly-change-server group server) 134 (nnweb-possibly-change-server group server)
135 (unless (or nnweb-ephemeral-p 135 (unless (or nnweb-ephemeral-p
136 dont-check) 136 dont-check
137 nnweb-articles)
137 (nnweb-read-overview group)) 138 (nnweb-read-overview group))
138 (cond 139 (cond
139 ((not nnweb-articles) 140 ((not nnweb-articles)
diff --git a/lisp/gnus/rfc2231.el b/lisp/gnus/rfc2231.el
index df9a5b7bd82..fb2d070328e 100644
--- a/lisp/gnus/rfc2231.el
+++ b/lisp/gnus/rfc2231.el
@@ -1,7 +1,7 @@
1;;; rfc2231.el --- Functions for decoding rfc2231 headers 1;;; rfc2231.el --- Functions for decoding rfc2231 headers
2 2
3;; Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 3;; Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005,
4;; 2005 Free Software Foundation, Inc. 4;; 2006 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; This file is part of GNU Emacs. 7;; This file is part of GNU Emacs.
@@ -53,6 +53,10 @@ The list will be on the form
53 display-name mailbox c display-string parameters 53 display-name mailbox c display-string parameters
54 attribute value type subtype number encoded 54 attribute value type subtype number encoded
55 prev-attribute prev-encoded) 55 prev-attribute prev-encoded)
56 ;; Some mailer (e.g. Thunderbird 1.5) doesn't terminate each
57 ;; line with semicolon when folding a long parameter value.
58 (while (string-match "\\([^\t\n\r ;]\\)[\t ]*\r?\n[\t ]+" string)
59 (setq string (replace-match "\\1;\n " nil nil string)))
56 (ietf-drums-init (mail-header-remove-whitespace 60 (ietf-drums-init (mail-header-remove-whitespace
57 (mail-header-remove-comments string))) 61 (mail-header-remove-comments string)))
58 (let ((table (copy-syntax-table ietf-drums-syntax-table))) 62 (let ((table (copy-syntax-table ietf-drums-syntax-table)))
@@ -191,6 +195,7 @@ These look like \"us-ascii'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A\"."
191 (special (ietf-drums-token-to-list "*'%\n\t")) 195 (special (ietf-drums-token-to-list "*'%\n\t"))
192 (ascii (ietf-drums-token-to-list ietf-drums-text-token)) 196 (ascii (ietf-drums-token-to-list ietf-drums-text-token))
193 (num -1) 197 (num -1)
198 (limit (- 74 (length param)))
194 spacep encodep charsetp charset broken) 199 spacep encodep charsetp charset broken)
195 (with-temp-buffer 200 (with-temp-buffer
196 (insert value) 201 (insert value)
@@ -209,24 +214,30 @@ These look like \"us-ascii'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A\"."
209 (when charsetp 214 (when charsetp
210 (setq charset (mm-encode-body))) 215 (setq charset (mm-encode-body)))
211 (cond 216 (cond
212 ((or encodep charsetp) 217 ((or encodep charsetp
218 (progn
219 (end-of-line)
220 (> (current-column) (if spacep (- limit 2) limit))))
221 (setq limit (- limit 6))
213 (goto-char (point-min)) 222 (goto-char (point-min))
223 (insert (symbol-name (or charset 'us-ascii)) "''")
214 (while (not (eobp)) 224 (while (not (eobp))
215 (when (> (current-column) 60)
216 (insert ";\n")
217 (setq broken t))
218 (if (or (not (memq (following-char) ascii)) 225 (if (or (not (memq (following-char) ascii))
219 (memq (following-char) control) 226 (memq (following-char) control)
220 (memq (following-char) tspecial) 227 (memq (following-char) tspecial)
221 (memq (following-char) special) 228 (memq (following-char) special)
222 (eq (following-char) ? )) 229 (eq (following-char) ? ))
223 (progn 230 (progn
231 (when (>= (current-column) (1- limit))
232 (insert ";\n")
233 (setq broken t))
224 (insert "%" (format "%02x" (following-char))) 234 (insert "%" (format "%02x" (following-char)))
225 (delete-char 1)) 235 (delete-char 1))
236 (when (> (current-column) limit)
237 (insert ";\n")
238 (setq broken t))
226 (forward-char 1))) 239 (forward-char 1)))
227 (goto-char (point-min)) 240 (goto-char (point-min))
228 (insert (symbol-name (or charset 'us-ascii)) "''")
229 (goto-char (point-min))
230 (if (not broken) 241 (if (not broken)
231 (insert param "*=") 242 (insert param "*=")
232 (while (not (eobp)) 243 (while (not (eobp))
@@ -235,12 +246,12 @@ These look like \"us-ascii'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A\"."
235 (forward-line 1)))) 246 (forward-line 1))))
236 (spacep 247 (spacep
237 (goto-char (point-min)) 248 (goto-char (point-min))
238 (insert param "=\"") 249 (insert "\n " param "=\"")
239 (goto-char (point-max)) 250 (goto-char (point-max))
240 (insert "\"")) 251 (insert "\""))
241 (t 252 (t
242 (goto-char (point-min)) 253 (goto-char (point-min))
243 (insert param "="))) 254 (insert "\n " param "=")))
244 (buffer-string)))) 255 (buffer-string))))
245 256
246(provide 'rfc2231) 257(provide 'rfc2231)