From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38620 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: er...gpg.el text..? Date: Wed, 05 Sep 2001 20:57:40 +0200 Message-ID: References: <87zo8l48r9.fsf@mclinux.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035174454 23469 80.91.224.250 (21 Oct 2002 04:27:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:27:34 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 16287 invoked from network); 5 Sep 2001 18:58:14 -0000 Original-Received: from dolk.extundo.com (195.42.214.242) by gnus.org with SMTP; 5 Sep 2001 18:58:14 -0000 Original-Received: from barbar.josefsson.org (slipsten.extundo.com [195.42.214.241]) (authenticated) by dolk.extundo.com (8.11.6/8.11.6) with ESMTP id f85IwKh17505 for ; Wed, 5 Sep 2001 20:58:20 +0200 Original-To: ding@gnus.org In-Reply-To: <87zo8l48r9.fsf@mclinux.com> (Josh Huber's message of "Mon, 27 Aug 2001 15:12:42 -0400") Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.105 Original-Lines: 57 Xref: main.gmane.org gmane.emacs.gnus.general:38620 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38620 Josh Huber writes: > I just updated yesterday (I think), and the outpt text from signature > verification is no longer displayed in the article buffer. Perhaps this is a feature, `gnus-unbuttonized-mime-types' says which MIME parts should not have buttons, and the default is .*/.*. But the default behaviour is perhaps not ideal, it should be possibly to override `gnus-unbuttonized-mime-types' and possibly multipart/signed should be buttonized by default. OTOH the buttons look ugly and interfere with reading of the article so maybe they really should be unbuttonized by default. Using the Emacs 21 fringe to indicate which part of the mail is signed would actually be good, but I dunno about XEmacs. What do you think about this patch? --- gnus-art.el.~6.106.~ Mon Aug 20 20:06:14 2001 +++ gnus-art.el Wed Sep 5 20:52:18 2001 @@ -672,7 +672,15 @@ :type '(repeat regexp)) (defcustom gnus-unbuttonized-mime-types '(".*/.*") - "List of MIME types that should not be given buttons when rendered inline." + "List of MIME types that should not be given buttons when rendered inline. +See also `gnus-buttonized-mime-types' which may override this variable." + :version "21.1" + :group 'gnus-article-mime + :type '(repeat regexp)) + +(defcustom gnus-buttonized-mime-types '("multipart/signed") + "List of MIME types that should be given buttons when rendered inline. +This variable overrides `gnus-unbuttonized-mime-types'." :version "21.1" :group 'gnus-article-mime :type '(repeat regexp)) @@ -3934,11 +3942,16 @@ (defun gnus-unbuttonized-mime-type-p (type) "Say whether TYPE is to be unbuttonized." (unless gnus-inhibit-mime-unbuttonizing - (catch 'found + (when (catch 'found (let ((types gnus-unbuttonized-mime-types)) (while types (when (string-match (pop types) type) - (throw 'found t))))))) + (throw 'found t))))) + (not (catch 'found + (let ((types gnus-buttonized-mime-types)) + (while types + (when (string-match (pop types) type) + (throw 'found t))))))))) (defun gnus-article-insert-newline () "Insert a newline, but mark it as undeletable."