diff options
| author | Lars Magne Ingebrigtsen | 2011-01-04 02:24:15 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-01-04 02:24:15 +0000 |
| commit | 37657cbd24db5137d291f865c8367ca1a3ae7096 (patch) | |
| tree | 8bd5868a621fff12982ac5e5775f6ebe7007fd33 | |
| parent | fb9a573a59ea881300bfd1f22aaf682c63c223c5 (diff) | |
| download | emacs-37657cbd24db5137d291f865c8367ca1a3ae7096.tar.gz emacs-37657cbd24db5137d291f865c8367ca1a3ae7096.zip | |
flow-fill.el (fill-flowed-encode): Do encoding citation-aware.
gnus-art.el (gnus-treat-fill-long-lines): Add missing version tag.
gnus-msg.el (gnus-message-replyencrypt): Fix typo in version string.
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/flow-fill.el | 45 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 2 |
4 files changed, 39 insertions, 15 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 5d2263657fe..10d2cc4c663 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-01-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * flow-fill.el (fill-flowed-encode): Do encoding citation-aware. | ||
| 4 | |||
| 1 | 2011-01-03 Glenn Morris <rgm@gnu.org> | 5 | 2011-01-03 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * sieve-manage.el (sieve-manage-open): Correctly set sieve-manage-port. | 7 | * sieve-manage.el (sieve-manage-open): Correctly set sieve-manage-port. |
diff --git a/lisp/gnus/flow-fill.el b/lisp/gnus/flow-fill.el index 2420577ea45..66422d2f7d4 100644 --- a/lisp/gnus/flow-fill.el +++ b/lisp/gnus/flow-fill.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; flow-fill.el --- interpret RFC2646 "flowed" text | 1 | ;;; flow-fill.el --- interpret RFC2646 "flowed" text |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2009, 2010, 2011 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Simon Josefsson <jas@pdc.kth.se> | 6 | ;; Author: Simon Josefsson <jas@pdc.kth.se> |
| 7 | ;; Keywords: mail | 7 | ;; Keywords: mail |
| @@ -82,19 +82,38 @@ RFC 2646 suggests 66 characters for readability." | |||
| 82 | ;; Go through each paragraph, filling it and adding SPC | 82 | ;; Go through each paragraph, filling it and adding SPC |
| 83 | ;; as the last character on each line. | 83 | ;; as the last character on each line. |
| 84 | (while (setq end (text-property-any start (point-max) 'hard 't)) | 84 | (while (setq end (text-property-any start (point-max) 'hard 't)) |
| 85 | (let ((fill-column (eval fill-flowed-encode-column))) | 85 | (save-restriction |
| 86 | (fill-region start end t 'nosqueeze 'to-eop)) | 86 | (narrow-to-region start end) |
| 87 | (goto-char start) | 87 | (let ((fill-column (eval fill-flowed-encode-column))) |
| 88 | ;; `fill-region' probably distorted end. | 88 | (fill-flowed-fill-buffer)) |
| 89 | (setq end (text-property-any start (point-max) 'hard 't)) | 89 | (goto-char (point-min)) |
| 90 | (while (and (< (point) end) | 90 | (while (re-search-forward "\n" nil t) |
| 91 | (re-search-forward "$" (1- end) t)) | 91 | (replace-match " \n" t t)) |
| 92 | (insert " ") | 92 | (goto-char (setq start (1+ (point-max))))))) |
| 93 | (setq end (1+ end)) | ||
| 94 | (forward-char)) | ||
| 95 | (goto-char (setq start (1+ end))))) | ||
| 96 | t))) | 93 | t))) |
| 97 | 94 | ||
| 95 | (defun fill-flowed-fill-buffer () | ||
| 96 | (let ((prefix nil) | ||
| 97 | (prev-prefix nil) | ||
| 98 | (start (point-min))) | ||
| 99 | (goto-char (point-min)) | ||
| 100 | (while (not (eobp)) | ||
| 101 | (setq prefix (and (looking-at "[> ]+") | ||
| 102 | (match-string 0))) | ||
| 103 | (if (equal prefix prev-prefix) | ||
| 104 | (forward-line 1) | ||
| 105 | (save-restriction | ||
| 106 | (narrow-to-region start (point)) | ||
| 107 | (let ((fill-prefix prev-prefix)) | ||
| 108 | (fill-region (point-min) (point-max) t 'nosqueeze 'to-eop)) | ||
| 109 | (goto-char (point-max))) | ||
| 110 | (setq prev-prefix prefix | ||
| 111 | start (point)))) | ||
| 112 | (save-restriction | ||
| 113 | (narrow-to-region start (point)) | ||
| 114 | (let ((fill-prefix prev-prefix)) | ||
| 115 | (fill-region (point-min) (point-max) t 'nosqueeze 'to-eop))))) | ||
| 116 | |||
| 98 | ;;;###autoload | 117 | ;;;###autoload |
| 99 | (defun fill-flowed (&optional buffer delete-space) | 118 | (defun fill-flowed (&optional buffer delete-space) |
| 100 | (with-current-buffer (or (current-buffer) buffer) | 119 | (with-current-buffer (or (current-buffer) buffer) |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index bf1b1b5b365..36944267ad2 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; gnus-art.el --- article mode commands for Gnus | 1 | ;;; gnus-art.el --- article mode commands for Gnus |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 7 | ;; Keywords: news | 7 | ;; Keywords: news |
| @@ -1594,6 +1594,7 @@ predicate. See Info node `(gnus)Customizing Articles'." | |||
| 1594 | "Fill long lines. | 1594 | "Fill long lines. |
| 1595 | Valid values are nil, t, `head', `first', `last', an integer or a | 1595 | Valid values are nil, t, `head', `first', `last', an integer or a |
| 1596 | predicate. See Info node `(gnus)Customizing Articles'." | 1596 | predicate. See Info node `(gnus)Customizing Articles'." |
| 1597 | :version "24.1" | ||
| 1597 | :group 'gnus-article-treat | 1598 | :group 'gnus-article-treat |
| 1598 | :link '(custom-manual "(gnus)Customizing Articles") | 1599 | :link '(custom-manual "(gnus)Customizing Articles") |
| 1599 | :type gnus-article-treat-custom) | 1600 | :type gnus-article-treat-custom) |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index c4ea66a4257..d66e1692a80 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -247,7 +247,7 @@ See also the `mml-default-sign-method' variable." | |||
| 247 | (defcustom gnus-message-replyencrypt t | 247 | (defcustom gnus-message-replyencrypt t |
| 248 | "Automatically encrypt replies to encrypted messages. | 248 | "Automatically encrypt replies to encrypted messages. |
| 249 | See also the `mml-default-encrypt-method' variable." | 249 | See also the `mml-default-encrypt-method' variable." |
| 250 | :version "22.1" | 250 | :version "24.1" |
| 251 | :group 'gnus-message | 251 | :group 'gnus-message |
| 252 | :type 'boolean) | 252 | :type 'boolean) |
| 253 | 253 | ||