emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/lisp/mail pmailmm.el


From: Chong Yidong
Subject: [Emacs-diffs] emacs/lisp/mail pmailmm.el
Date: Thu, 04 Dec 2008 22:49:10 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      08/12/04 22:49:10

Modified files:
        lisp/mail      : pmailmm.el 

Log message:
        Require mail-parse.
        (pmail-mime-show): Don't use removed function
        pmail-header-hide-headers.
        (pmail-mime): Use pmail-msgbeg and pmail-msgend instead of removed
        pmail-desc-* functions.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/mail/pmailmm.el?cvsroot=emacs&r1=1.5&r2=1.6

Patches:
Index: pmailmm.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/mail/pmailmm.el,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- pmailmm.el  6 Sep 2008 02:55:29 -0000       1.5
+++ pmailmm.el  4 Dec 2008 22:49:10 -0000       1.6
@@ -37,8 +37,8 @@
 
 ;;; Code:
 
-;; For ...
 (require 'pmail)
+(require 'mail-parse)
 
 ;;; Variables
 
@@ -333,9 +333,7 @@
        content-transfer-encoding
        content-disposition)
     ;; `point-min' returns the beginning and `end' points at the end
-    ;; of the headers.  We're not using `pmail-header-get-header'
-    ;; because we must be able to handle the case of no headers
-    ;; existing in a part.  In this case end is at point-min.
+    ;; of the headers.
     (goto-char (point-min))
     ;; If we're showing a part without headers, then it will start
     ;; with a newline.
@@ -372,11 +370,8 @@
     ;; Hide headers and handle the part.
     (save-restriction
       (cond ((string= (car content-type) "message/rfc822")
-            (pmail-header-hide-headers)
             (narrow-to-region end (point-max)))
-           (show-headers
-            (pmail-header-hide-headers))
-           (t
+           ((not show-headers)
             (delete-region (point-min) end)))
       (pmail-mime-handle content-type content-disposition
                         content-transfer-encoding))))
@@ -385,12 +380,13 @@
   "Copy buffer contents to a temporary buffer and handle MIME.
 This calls `pmail-mime-show' to do the real job."
   (interactive)
+  (pmail-swap-buffers-maybe)
   (let ((data (with-current-buffer pmail-buffer
                (save-restriction
                  (widen)
                  (buffer-substring
-                  (pmail-desc-get-start pmail-current-message)
-                  (pmail-desc-get-end pmail-current-message)))))
+                  (pmail-msgbeg pmail-current-message)
+                  (pmail-msgend pmail-current-message)))))
        (buf (get-buffer-create "*PMAIL*")))
     (set-buffer buf)
     (let ((inhibit-read-only t))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]