diff options
| author | Lars Magne Ingebrigtsen | 2012-04-11 22:31:16 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-04-11 22:31:16 +0000 |
| commit | dc2ab667ae97f2194f5a258084e0dd96eb064bff (patch) | |
| tree | 78468b098e5049cb027700a35ef6f99007cf23c5 | |
| parent | 4517fe3a47700373d03fb389ff038572a1144f5b (diff) | |
| download | emacs-dc2ab667ae97f2194f5a258084e0dd96eb064bff.tar.gz emacs-dc2ab667ae97f2194f5a258084e0dd96eb064bff.zip | |
gnus-art.el (article-wash-html): Fix non-ASCII characters when washing HTML (bug#7410).
gnus-msg.el (gnus-inews-insert-gcc): Protect against when we don't have a group name.
gnus-start.el (gnus-read-newsrc-el-file): Protect against broken .newsrc.el files.
| -rw-r--r-- | lisp/gnus/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 4 |
4 files changed, 23 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index ef0f1c5c852..bac79f492bc 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus-msg.el (gnus-inews-insert-gcc): Protect against when we don't | ||
| 4 | have a group name. | ||
| 5 | |||
| 6 | * gnus-art.el (article-wash-html): Ensure that we insert the HTML into | ||
| 7 | a multibyte buffer (bug#7410). | ||
| 8 | (article-wash-html): Parse the original article buffer to get the | ||
| 9 | unencoded data (bug#7410). | ||
| 10 | |||
| 11 | * gnus-start.el (gnus-read-newsrc-el-file): Protect against broken | ||
| 12 | .newsrc.el files. | ||
| 13 | |||
| 1 | 2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org> | 14 | 2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 15 | ||
| 3 | * auth-source.el (auth-source-netrc-create): Quote tokens that contain | 16 | * auth-source.el (auth-source-netrc-create): Quote tokens that contain |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 048f8956567..b04615dc5a9 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -2754,9 +2754,11 @@ If READ-CHARSET, ask for a coding system." | |||
| 2754 | (let ((handles nil) | 2754 | (let ((handles nil) |
| 2755 | (buffer-read-only nil)) | 2755 | (buffer-read-only nil)) |
| 2756 | (when (gnus-buffer-live-p gnus-original-article-buffer) | 2756 | (when (gnus-buffer-live-p gnus-original-article-buffer) |
| 2757 | (setq handles (mm-dissect-buffer t t))) | 2757 | (with-current-buffer gnus-original-article-buffer |
| 2758 | (setq handles (mm-dissect-buffer t t)))) | ||
| 2758 | (article-goto-body) | 2759 | (article-goto-body) |
| 2759 | (delete-region (point) (point-max)) | 2760 | (delete-region (point) (point-max)) |
| 2761 | (mm-enable-multibyte) | ||
| 2760 | (mm-inline-text-html handles))) | 2762 | (mm-inline-text-html handles))) |
| 2761 | 2763 | ||
| 2762 | (defvar gnus-article-browse-html-temp-list nil | 2764 | (defvar gnus-article-browse-html-temp-list nil |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index 500ace9e8ff..507f0406ea1 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -1670,11 +1670,13 @@ this is a reply." | |||
| 1670 | (not | 1670 | (not |
| 1671 | (setq result | 1671 | (setq result |
| 1672 | (cond | 1672 | (cond |
| 1673 | ((stringp (caar var)) | 1673 | ((and group |
| 1674 | (stringp (caar var))) | ||
| 1674 | ;; Regexp. | 1675 | ;; Regexp. |
| 1675 | (when (string-match (caar var) group) | 1676 | (when (string-match (caar var) group) |
| 1676 | (cdar var))) | 1677 | (cdar var))) |
| 1677 | ((functionp (car var)) | 1678 | ((and group |
| 1679 | (functionp (car var))) | ||
| 1678 | ;; Function. | 1680 | ;; Function. |
| 1679 | (funcall (car var) group)) | 1681 | (funcall (car var) group)) |
| 1680 | (t | 1682 | (t |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index bb7dd76d590..f025960c348 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -2442,7 +2442,9 @@ If FORCE is non-nil, the .newsrc file is read." | |||
| 2442 | (when gnus-newsrc-assoc | 2442 | (when gnus-newsrc-assoc |
| 2443 | (setq gnus-newsrc-alist gnus-newsrc-assoc)))) | 2443 | (setq gnus-newsrc-alist gnus-newsrc-assoc)))) |
| 2444 | (dolist (elem gnus-newsrc-alist) | 2444 | (dolist (elem gnus-newsrc-alist) |
| 2445 | (setcar elem (mm-string-as-unibyte (car elem)))) | 2445 | ;; Protect against broken .newsrc.el files. |
| 2446 | (when (car elem) | ||
| 2447 | (setcar elem (mm-string-as-unibyte (car elem))))) | ||
| 2446 | (gnus-make-hashtable-from-newsrc-alist) | 2448 | (gnus-make-hashtable-from-newsrc-alist) |
| 2447 | (when (file-newer-than-file-p file ding-file) | 2449 | (when (file-newer-than-file-p file ding-file) |
| 2448 | ;; Old format quick file | 2450 | ;; Old format quick file |