Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: gnus-group-posting-charset-alist
Date: Tue, 27 Aug 2002 15:20:01 +0200	[thread overview]
Message-ID: <ilun0r88mm6.fsf@latte.josefsson.org> (raw)

I've been running with this for a long time (probably since someone
suggested that the variable should be a group parameter too), but I
don't use g-g-p-c-a much so I would probably not notice if it didn't
work.  Anyway, I'm committing this since I think it would be nice if
it was possible to set the posting charset using group parameters too.
If something breaks, holler.

2002-08-27  Simon Josefsson  <jas@extundo.com>

	* gnus-msg.el (posting-charset-alist): Use
	gnus-define-group-parameter instead of defcustom.

Index: gnus-msg.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-msg.el,v
retrieving revision 6.95
diff -u -p -u -w -r6.95 gnus-msg.el
--- gnus-msg.el	2002/07/01 09:34:16	6.95
+++ gnus-msg.el	2002/08/27 13:47:35
@@ -160,11 +160,18 @@ If nil, attach files as normal parts."
 		 (const all :tag "Any")
 		 (string :tag "Regexp")))
 
-(defcustom gnus-group-posting-charset-alist
+(gnus-define-group-parameter
+ posting-charset-alist
+ :type list
+ :function-document
+ "Return the permitted unencoded charsets for posting of GROUP."
+ :variable gnus-group-posting-charset-alist
+ :variable-default
   '(("^\\(no\\|fr\\)\\.[^,]*\\(,[ \t\n]*\\(no\\|fr\\)\\.[^,]*\\)*$" iso-8859-1 (iso-8859-1))
     ("^\\(fido7\\|relcom\\)\\.[^,]*\\(,[ \t\n]*\\(fido7\\|relcom\\)\\.[^,]*\\)*$" koi8-r (koi8-r))
     (message-this-is-mail nil nil)
     (message-this-is-news nil t))
+ :variable-document
   "Alist of regexps and permitted unencoded charsets for posting.
 Each element of the alist has the form (TEST HEADER BODY-LIST), where
 TEST is either a regular expression matching the newsgroup header or a
@@ -177,7 +184,9 @@ nil (always encode using quoted-printabl
 
 Note that any value other than nil for HEADER infringes some RFCs, so
 use this option with care."
-  :type '(repeat (list :tag "Permitted unencoded charsets"
+ :variable-group gnus-charset
+ :variable-type
+ '(repeat (list :tag "Permitted unencoded charsets"
 		  (choice :tag "Where"
 		   (regexp :tag "Group")
 		   (const :tag "Mail message" :value message-this-is-mail)
@@ -190,7 +199,11 @@ use this option with care."
 			  (const :tag "None" :value nil)
 			  (repeat :tag "Charsets"
 				  (symbol :tag "Charset")))))
-  :group 'gnus-charset)
+ :parameter-type '(choice :tag "Permitted unencoded charsets"
+			  :value nil
+			  (repeat (symbol)))
+ :parameter-document       "\
+List of charsets that are permitted to be unencoded.")
 
 (defcustom gnus-debug-files
   '("gnus.el" "gnus-sum.el" "gnus-group.el"




                 reply	other threads:[~2002-08-27 13:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=ilun0r88mm6.fsf@latte.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).