From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86918 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Display thumbnail for mime button? Date: Tue, 23 Feb 2016 13:13:47 +1100 Message-ID: <87vb5g5g2s.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456193724 20656 80.91.229.3 (23 Feb 2016 02:15:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 02:15:24 +0000 (UTC) Cc: ding@gnus.org To: Dave Abrahams Original-X-From: ding-owner+M35140@lists.math.uh.edu Tue Feb 23 03:15:11 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aY2VI-0001jQ-Ud for ding-account@gmane.org; Tue, 23 Feb 2016 03:15:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.86) (envelope-from ) id 1aY2Ua-0000lo-HG; Mon, 22 Feb 2016 20:14:24 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86) (envelope-from ) id 1aY2UX-0000lH-7l for ding@lists.math.uh.edu; Mon, 22 Feb 2016 20:14:21 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aY2US-00007m-76 for ding@lists.math.uh.edu; Mon, 22 Feb 2016 20:14:21 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1aY2UQ-0001vY-N0 for ding@gnus.org; Tue, 23 Feb 2016 03:14:14 +0100 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aY2U3-0005Lm-2b; Tue, 23 Feb 2016 03:13:51 +0100 In-Reply-To: (Dave Abrahams's message of "Mon, 22 Feb 2016 14:47:50 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aY2U3-0005Lm-2b MailScanner-NULL-Check: 1456798432.37748@fXmLpwfxh6ieAuF5+99X/A X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86918 Archived-At: Dave Abrahams writes: > I have a program that can generate a thumbnail image for any file that > might be attached to a message. I'd love to be able to have Gnus > make the corresponding MIME button look like that thumbnail. Is there a > way? Let's see... the insertion of the MIME buttons is done by `gnus-insert-mime-button'. And the format of the button is determined by the `gnus-mime-button-line-format' variable. So you could add a user-defined format spec, and then return a string with an image display property. The MIME handle is available in the dynamically bound "handle" variable. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no