Mercurial > emacs
comparison lisp/mail/mail-utils.el @ 107080:da4ec7ca387c
* mail/mail-utils.el (mail-unquote-printable-region): Doc fix.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 03 Feb 2010 21:05:37 -0800 |
parents | a1e356d208cd |
children | 9246a8f688c5 |
comparison
equal
deleted
inserted
replaced
107079:4e5186e157d5 | 107080:da4ec7ca387c |
---|---|
121 (aref string (1+ (match-beginning 1)))))) | 121 (aref string (1+ (match-beginning 1)))))) |
122 strings))) | 122 strings))) |
123 (setq i (match-end 0))) | 123 (setq i (match-end 0))) |
124 (apply 'concat (nreverse (cons (substring string i) strings)))))) | 124 (apply 'concat (nreverse (cons (substring string i) strings)))))) |
125 | 125 |
126 ;; FIXME Gnus for some reason has `quoted-printable-decode-region' in qp.el. | |
126 ;;;###autoload | 127 ;;;###autoload |
127 (defun mail-unquote-printable-region (beg end &optional wrapper noerror | 128 (defun mail-unquote-printable-region (beg end &optional wrapper noerror |
128 unibyte) | 129 unibyte) |
129 "Undo the \"quoted printable\" encoding in buffer from BEG to END. | 130 "Undo the \"quoted printable\" encoding in buffer from BEG to END. |
130 If the optional argument WRAPPER is non-nil, | 131 If the optional argument WRAPPER is non-nil, |
131 we expect to find and remove the wrapper characters =?ISO-8859-1?Q?....?=. | 132 we expect to find and remove the wrapper characters =?ISO-8859-1?Q?....?=. |
132 If NOERROR is non-nil, return t if successful. | 133 On encountering malformed quoted-printable text, exits with an error, |
134 unless NOERROR is non-nil, in which case it continues, and returns nil | |
135 when finished. Returns non-nil on successful completion. | |
133 If UNIBYTE is non-nil, insert converted characters as unibyte. | 136 If UNIBYTE is non-nil, insert converted characters as unibyte. |
134 That is useful if you are going to character code decoding afterward, | 137 That is useful if you are going to character code decoding afterward, |
135 as Rmail does." | 138 as Rmail does." |
136 ;; FIXME: `unibyte' should always be non-nil, and the iso-latin-1 | 139 ;; FIXME: `unibyte' should always be non-nil, and the iso-latin-1 |
137 ;; specific handling should be removed (or moved elsewhere and generalized). | 140 ;; specific handling should be removed (or moved elsewhere and generalized). |
244 ;;; file instead of in rmail.el. Yuck. -pmr | 247 ;;; file instead of in rmail.el. Yuck. -pmr |
245 (defun rmail-dont-reply-to (destinations) | 248 (defun rmail-dont-reply-to (destinations) |
246 "Prune addresses from DESTINATIONS, a list of recipient addresses. | 249 "Prune addresses from DESTINATIONS, a list of recipient addresses. |
247 All addresses matching `rmail-dont-reply-to-names' are removed from | 250 All addresses matching `rmail-dont-reply-to-names' are removed from |
248 the comma-separated list. The pruned list is returned." | 251 the comma-separated list. The pruned list is returned." |
252 ;; FIXME this (setting a user option the first time a command is used) | |
253 ;; is somewhat strange. Normally one would never set the option, | |
254 ;; but instead fall back to the default so long as it was nil. | |
255 ;; Or just set the default directly in the defcustom. | |
249 (if (null rmail-dont-reply-to-names) | 256 (if (null rmail-dont-reply-to-names) |
250 (setq rmail-dont-reply-to-names | 257 (setq rmail-dont-reply-to-names |
251 (concat (if rmail-default-dont-reply-to-names | 258 (concat (if rmail-default-dont-reply-to-names |
252 (concat rmail-default-dont-reply-to-names "\\|") | 259 (concat rmail-default-dont-reply-to-names "\\|") |
253 "") | 260 "") |