Gnus development mailing list
 help / color / mirror / Atom feed
From: Leo <sdl.web@gmail.com>
Subject: Re: Message mode Face and X-Face preview
Date: Mon, 27 Nov 2006 01:01:47 +0000	[thread overview]
Message-ID: <m2mz6dzoqs.fsf@sl392.st-edmunds.cam.ac.uk> (raw)
In-Reply-To: <v98xi0af2d.fsf@marauder.physik.uni-ulm.de>

On Friday, 24 Nov 2006, Reiner Steib wrote:

>
>> This seems like a nice feature, so I post it to this group.
>
> Personally I don't see much need for this, but maybe someone else want
> to implement it.
>
> Bye, Reiner.

I learned from article-display-face and made the following
function. It seems to work fine for me. Any comments?

(add-to-list 'message-hidden-headers "^Face:")
(add-hook 'message-setup-hook 'sdl-message-display-face)
(defun sdl-message-display-face ()
  "Display any Face headers in the header."
  (interactive)
  (let (face png image)
    (save-restriction
      (mail-narrow-to-head)
      (setq face (mail-fetch-field "Face")))
    (when face
      (when (setq png (gnus-convert-face-to-png face))
	(setq image (gnus-create-image png 'png t))
	(message-goto-from)
	(message-beginning-of-line) (backward-char)
	(gnus-add-image 'face image)
	(gnus-put-image image nil 'face)))))

Thank you!

-- 
Leo




  reply	other threads:[~2006-11-27  1:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-24 17:40 Leo
2006-11-24 18:00 ` Zlatko Calusic
2006-11-24 18:13 ` Reiner Steib
2006-11-27  1:01   ` Leo [this message]
2006-11-27  2:35     ` Leo
2006-11-27 23:14       ` Leo

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=m2mz6dzoqs.fsf@sl392.st-edmunds.cam.ac.uk \
    --to=sdl.web@gmail.com \
    /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).