From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39536 Path: main.gmane.org!not-for-mail From: Raymond Scholz Newsgroups: gmane.emacs.gnus.general Subject: Re: How to do something a bit complicated with inline decoding? Date: Sat, 20 Oct 2001 12:34:39 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: Reply-To: Raymond Scholz NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035175233 28531 80.91.224.250 (21 Oct 2002 04:40:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:40:33 +0000 (UTC) Return-Path: Original-Received: (qmail 1301 invoked from network); 20 Oct 2001 10:47:18 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 20 Oct 2001 10:47:18 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15uteM-0003HD-00; Sat, 20 Oct 2001 05:46:42 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 20 Oct 2001 05:46:18 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id FAA20079 for ; Sat, 20 Oct 2001 05:46:06 -0500 (CDT) Original-Received: (qmail 1290 invoked by alias); 20 Oct 2001 10:46:22 -0000 Original-Received: (qmail 1285 invoked from network); 20 Oct 2001 10:46:22 -0000 Original-Received: from unknown (HELO mail.arcor-ip.de) (145.253.2.10) by gnus.org with SMTP; 20 Oct 2001 10:46:22 -0000 Original-Received: from mde1 (145.254.159.103) by mail.arcor-ip.de (5.5.034) id 3BC94178000D02AF for ding@gnus.org; Sat, 20 Oct 2001 12:45:53 +0200 Original-Received: from rscholz by mde1 with local (Exim 3.12 #1 (Debian)) id 15utSh-000480-00 for ; Sat, 20 Oct 2001 12:34:39 +0200 Original-To: ding@gnus.org Mail-Copies-To: never X-Now-Playing: Republica / Bloke (MP3) X-Face: %.!RBc`e*wW)84O*\)VdkC}mU5c2Zh$y~ZRA3K594g/jp_&5bx\Oyes!/jK~4<<%KlaPn^\ 0 (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Fri, 19 Oct 2001 15:07:05 +0200") Original-Lines: 44 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39536 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39536 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > But I know that I've seen mention of using w3m.el with Gnus. But where? ;; Greg in <2fasnftcpt4.fsf@broadcom.com> on gnu.emacs.help (defvar gnus-w3m-minor-mode nil) (make-variable-buffer-local 'gnus-w3m-minor-mode) (add-to-list 'minor-mode-alist '(gnus-w3m-minor-mode " w3m")) (add-to-list 'minor-mode-map-alist (cons 'gnus-w3m-minor-mode w3m-mode-map)) (defadvice mm-inline-text (around use-w3m-instead (handle) activate) (let ((type (mm-handle-media-subtype handle))) (if (not (equal type "html")) ad-do-it (let ((text (mm-get-part handle)) (b (point))) (save-excursion (insert text) (save-restriction (narrow-to-region b (point)) (goto-char (point-min)) (w3m-region (point-min) (point-max)) (setq gnus-w3m-minor-mode t)) (mm-handle-set-undisplayer handle `(lambda () (let (buffer-read-only) (setq gnus-w3m-minor-mode nil) (if (functionp 'remove-specifier) (mapcar (lambda (prop) (remove-specifier (face-property 'default prop) (current-buffer))) '(background background-pixmap foreground))) (delete-region ,(point-min-marker) ,(point-max-marker)))))))))) This code is also being mentioned in the file TIPS.ja (japanese) coming with emacs-w3m. It should do inline images with Emacs 21 too. Cheers, Ray -- Hfr fgebat rapelcgvba!