Fix last change
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 5 Jun 2014 04:31:15 +0000 (04:31 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 5 Jun 2014 04:31:15 +0000 (04:31 +0000)
* gnus-art.el (gnus-article-edit-part): Don't modifiy markers.
(gnus-article-read-summary-keys):
Don't bug out when there is no article in the summary buffer.

* gnus-art.el (gnus-mm-display-part):
* mm-decode.el (mm-shr):
* mm-view.el (mm-inline-text-html-render-with-w3m, mm-inline-text)
(mm-insert-inline): Revert last changes.

lisp/ChangeLog
lisp/gnus-art.el
lisp/mm-decode.el
lisp/mm-view.el

index 6484175..27e5fb3 100644 (file)
@@ -1,3 +1,14 @@
+2014-06-05  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-art.el (gnus-article-edit-part): Don't modifiy markers.
+       (gnus-article-read-summary-keys):
+       Don't bug out when there is no article in the summary buffer.
+
+       * gnus-art.el (gnus-mm-display-part):
+       * mm-decode.el (mm-shr):
+       * mm-view.el (mm-inline-text-html-render-with-w3m, mm-inline-text)
+       (mm-insert-inline): Revert last changes.
+
 2014-06-05  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-art.el (gnus-mm-display-part):
index 5566b0e..183e219 100644 (file)
@@ -4988,7 +4988,6 @@ and `gnus-mime-delete-part', and not provided at run-time normally."
     (gnus-article-edit-article
      `(lambda ()
        (buffer-disable-undo)
-       (erase-buffer)
        (let ((mail-parse-charset (or gnus-article-charset
                                      ',gnus-newsgroup-charset))
              (mail-parse-ignored-charsets
@@ -4996,7 +4995,11 @@ and `gnus-mime-delete-part', and not provided at run-time normally."
                   ',gnus-newsgroup-ignored-charsets))
              (mbl mml-buffer-list))
          (setq mml-buffer-list nil)
-         (insert-buffer-substring gnus-original-article-buffer)
+         (delete-region
+          (point-min)
+          (prog1
+              (goto-char (point-max))
+            (insert-buffer-substring gnus-original-article-buffer)))
          (mime-to-mml ',handles)
          (setq gnus-article-mime-handles nil)
          (let ((mbl1 mml-buffer-list))
@@ -5737,7 +5740,7 @@ all parts."
                        `(lambda ()
                           (let ((inhibit-read-only t))
                             (delete-region ,(copy-marker (point-min) t)
-                                           ,(copy-marker (point-max) t)))))))
+                                           ,(point-max-marker)))))))
                    (part
                     (mm-display-inline handle))))))
       (goto-char point)
@@ -6791,7 +6794,7 @@ not have a face in `gnus-article-boring-faces'."
                        (when (eq obuf (current-buffer))
                          (set-buffer in-buffer)
                          t))
-               (setq selected (gnus-summary-select-article))
+               (setq selected (ignore-errors (gnus-summary-select-article)))
                (set-buffer obuf)
                (unless not-restore-window
                  (set-window-configuration owin))
index 31c46f2..cde0af0 100644 (file)
@@ -1868,7 +1868,7 @@ If RECURSIVE, search recursively."
        `(lambda ()
          (let ((inhibit-read-only t))
            (delete-region ,(copy-marker (point-min) t)
-                          ,(copy-marker (point-max) t))))))))
+                          ,(point-max-marker))))))))
 
 (defvar shr-map)
 
index 84030fc..ecfa2ac 100644 (file)
         `(lambda ()
            (let ((inhibit-read-only t))
              (delete-region ,(copy-marker (point-min) t)
-                            ,(copy-marker (point-max) t)))))))))
+                            ,(point-max-marker)))))))))
 
 (defvar mm-w3m-standalone-supports-m17n-p (if (featurep 'mule) 'undecided)
   "*T means the w3m command supports the m17n feature.")
        `(lambda ()
           (let ((inhibit-read-only t))
            (delete-region ,(copy-marker (point-min) t)
-                          ,(copy-marker (point-max) t))))))))
+                          ,(point-max-marker))))))))
 
 (defun mm-insert-inline (handle text)
   "Insert TEXT inline from HANDLE."
      `(lambda ()
        (let ((inhibit-read-only t))
          (delete-region ,(copy-marker b t)
-                        ,(copy-marker (point) t)))))))
+                        ,(point-marker)))))))
 
 (defun mm-inline-audio (handle)
   (message "Not implemented"))