Gnus development mailing list
 help / color / mirror / Atom feed
From: Mike McEwan <mike@lotusland.demon.co.uk>
Subject: Picons broken in 0.55 (was Re: pgnus 0.55 Summary Mode line broken)
Date: 29 Nov 1998 14:54:30 +0000	[thread overview]
Message-ID: <m3btlqo8gp.fsf_-_@lotusland.demon.co.uk> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "28 Nov 1998 01:19:24 +0100"

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Graham Murray <graham@barnowl.demon.co.uk> writes:
> 
> > It seems as though the Article buffer mode line is being updated
> > into the Summary buffer line rather than its own.
> 
> Yup.  Fix in Pterodactyl Gnus v0.56.

  Pgnus-0.55 breaks picons in the article buffer for the same
reason. In the meantime I'm applying the following patch. It removes
the `save-selected-window' stuff from the top of
`gnus-display-mime'. 

  Lars, presumably this was put there for a reason, although I've not
discovered any more breakage (yet) after its removal?

--- gnus-art.el	1998/11/29 01:29:53	1.1.1.12
+++ gnus-art.el	1998/11/29 14:13:22
@@ -2497,34 +2497,30 @@
 
 (defun gnus-display-mime (&optional ihandles)
   "Insert MIME buttons in the buffer."
-  (save-selected-window
-    (let ((window (get-buffer-window gnus-article-buffer)))
-      (when window
-	(select-window window)))
-    (let* ((handles (or ihandles (mm-dissect-buffer) (mm-uu-dissect)))
-	   handle name type b e display)
+  (let* ((handles (or ihandles (mm-dissect-buffer) (mm-uu-dissect)))
+	 handle name type b e display)
+    (unless ihandles
+      ;; Top-level call; we clean up.
+      (mm-destroy-parts gnus-article-mime-handles)
+      (setq gnus-article-mime-handles handles
+	    gnus-article-mime-handle-alist nil)
+      ;; We allow users to glean info from the handles.
+      (when gnus-article-mime-part-function
+	(gnus-mime-part-function handles)))
+    (when (and handles
+	       (or (not (stringp (car handles)))
+		   (cdr handles)))
       (unless ihandles
-	;; Top-level call; we clean up.
-	(mm-destroy-parts gnus-article-mime-handles)
-	(setq gnus-article-mime-handles handles
-	      gnus-article-mime-handle-alist nil)
-	;; We allow users to glean info from the handles.
-	(when gnus-article-mime-part-function
-	  (gnus-mime-part-function handles)))
-      (when (and handles
-		 (or (not (stringp (car handles)))
-		     (cdr handles)))
-	(unless ihandles
-	  ;; Clean up for mime parts.
-	  (article-goto-body)
-	  (delete-region (point) (point-max)))
-	(if (stringp (car handles))
-	    (if (equal (car handles) "multipart/alternative")
-		(let ((id (1+ (length gnus-article-mime-handle-alist))))
-		  (push (cons id handles) gnus-article-mime-handle-alist)
-		  (gnus-mime-display-alternative (cdr handles) nil nil id))
-	      (gnus-mime-display-mixed (cdr handles)))
-	  (gnus-mime-display-single handles))))))
+	;; Clean up for mime parts.
+	(article-goto-body)
+	(delete-region (point) (point-max)))
+      (if (stringp (car handles))
+	  (if (equal (car handles) "multipart/alternative")
+	      (let ((id (1+ (length gnus-article-mime-handle-alist))))
+		(push (cons id handles) gnus-article-mime-handle-alist)
+		(gnus-mime-display-alternative (cdr handles) nil nil id))
+	    (gnus-mime-display-mixed (cdr handles)))
+	(gnus-mime-display-single handles)))))
 
 (defun gnus-mime-part-function (handles)
   (if (stringp (car handles))

-- 
Mike.


  reply	other threads:[~1998-11-29 14:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-27 18:46 pgnus 0.55 Summary Mode line broken Graham Murray
1998-11-27 19:02 ` Graham Murray
1998-11-28  0:19   ` Lars Magne Ingebrigtsen
1998-11-29 14:54     ` Mike McEwan [this message]
1998-11-29 15:45       ` Picons broken in 0.55 (was Re: pgnus 0.55 Summary Mode line broken) Mike McEwan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3btlqo8gp.fsf_-_@lotusland.demon.co.uk \
    --to=mike@lotusland.demon.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).