Gnus development mailing list
 help / color / mirror / Atom feed
From: Robert Bihlmeyer <robbe@orcus.priv.at>
Subject: Re: Adding MIME viewers
Date: 09 Oct 1999 16:20:41 +0200	[thread overview]
Message-ID: <ws3dvk62fa.fsf@orcus.priv.at> (raw)
In-Reply-To: Toby Speight's message of "04 Oct 1999 13:06:15 +0100"

Hi,

>>>>> On 04 Oct 1999 13:06:15 +0100
>>>>> Toby Speight <Toby.Speight@streapadair.freeserve.co.uk> said:

 Toby> (defun mm-display-patch-inline (handle)
 Toby>   (let (text)
 Toby>     (with-temp-buffer
 Toby>       (mm-insert-part handle)
 Toby>       (diff-mode)
 Toby>       (font-lock-fontify-buffer)
 Toby>       (setq text (buffer-string)))
 Toby>     (mm-insert-inline handle text)))

this does not work as expected here on XEmacs 21.1 (patch 7), because
these colors are not duplicable. FWIW, the following does the trick:

(defun mm-display-patch-inline (handle)
  (let (text)
    (with-temp-buffer
      (mm-insert-part handle)
      (diff-mode)
      (font-lock-fontify-buffer)
      (if (fboundp 'extent-list)
	  (mapc (lambda (el) (set-extent-property el 'duplicable t))
		(extent-list)))
      (setq text (buffer-string)))
    (mm-insert-inline handle text)))

Maybe this is really a misfeature of fontification, and the original
version should work?

        Robbe

-- 
Robert Bihlmeyer       reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<robbe@orcus.priv.at>    <http://stud2.tuwien.ac.at/~e9426626/sig.html>


  reply	other threads:[~1999-10-09 14:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-10  9:48 Toby Speight
1999-09-25  8:59 ` Lars Magne Ingebrigtsen
1999-09-27 13:44   ` Toby Speight
1999-09-27 14:07     ` Lars Magne Ingebrigtsen
1999-10-04 12:06   ` Toby Speight
1999-10-09 14:20     ` Robert Bihlmeyer [this message]
1999-10-11  8:51       ` Hrvoje Niksic
1999-11-06  2:53     ` Lars Magne Ingebrigtsen

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=ws3dvk62fa.fsf@orcus.priv.at \
    --to=robbe@orcus.priv.at \
    /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).