Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: er...gpg.el text..?
Date: Wed, 05 Sep 2001 20:57:40 +0200	[thread overview]
Message-ID: <ilu66ax1n4r.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <87zo8l48r9.fsf@mclinux.com> (Josh Huber's message of "Mon, 27 Aug 2001 15:12:42 -0400")

Josh Huber <huber@alum.wpi.edu> 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."



  parent reply	other threads:[~2001-09-05 18:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-27 19:12 Josh Huber
2001-08-30 18:29 ` Vincent Bernat
2001-09-05 18:57 ` Simon Josefsson [this message]
2001-09-05 21:42   ` Kai Großjohann
2001-09-06  1:02     ` Josh Huber
2001-09-06  7:21     ` Simon Josefsson
2001-09-06 12:54       ` Kai Großjohann
2001-09-06 13:05         ` Simon Josefsson

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=ilu66ax1n4r.fsf@barbar.josefsson.org \
    --to=jas@extundo.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).