diff options
| author | Glenn Morris | 2011-11-23 19:59:09 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-11-23 19:59:09 -0800 |
| commit | c0bc0fd4ff1e422d9f9d3662145c1f90649c4fc6 (patch) | |
| tree | 495cbf0fa9352c6f513fcc3222cef57ea2176911 | |
| parent | f8107b793900674f44a162ddc1d5bf4351be43bd (diff) | |
| download | emacs-c0bc0fd4ff1e422d9f9d3662145c1f90649c4fc6.tar.gz emacs-c0bc0fd4ff1e422d9f9d3662145c1f90649c4fc6.zip | |
Make rmail-mime toggle headers of non-mime messages.
* lisp/mail/rmailmm.el (rmail-mime): When rmail-enable-mime is non-nil,
if called on a non-mime message just toggle the headers.
Fixes: debbugs:8006
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/rmailmm.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8902a714ab9..404324cb0e7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-11-24 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmailmm.el (rmail-mime): When rmail-enable-mime is non-nil, | ||
| 4 | if called on a non-mime message just toggle the headers. (Bug#8006) | ||
| 5 | |||
| 1 | 2011-11-24 Juanma Barranquero <lekktu@gmail.com> | 6 | 2011-11-24 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * allout.el (allout-setup, allout-auto-save-temporarily-disabled) | 8 | * allout.el (allout-setup, allout-auto-save-temporarily-disabled) |
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index e53e0c0744e..d01cfc7f2c8 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el | |||
| @@ -1269,7 +1269,8 @@ The arguments ARG and STATE have no effect in this case." | |||
| 1269 | (or arg (goto-char (point-min))) | 1269 | (or arg (goto-char (point-min))) |
| 1270 | (point)) 'rmail-mime-entity))) | 1270 | (point)) 'rmail-mime-entity))) |
| 1271 | (if (or (not arg) entity) (rmail-mime-toggle-raw state))) | 1271 | (if (or (not arg) entity) (rmail-mime-toggle-raw state))) |
| 1272 | (message "Not a MIME message"))) | 1272 | (message "Not a MIME message, just toggling headers") |
| 1273 | (rmail-toggle-header))) | ||
| 1273 | (let* ((data (rmail-apply-in-message rmail-current-message 'buffer-string)) | 1274 | (let* ((data (rmail-apply-in-message rmail-current-message 'buffer-string)) |
| 1274 | (buf (get-buffer-create "*RMAIL*")) | 1275 | (buf (get-buffer-create "*RMAIL*")) |
| 1275 | (rmail-mime-mbox-buffer rmail-view-buffer) | 1276 | (rmail-mime-mbox-buffer rmail-view-buffer) |