* gnus-group-posting-charset-alist
@ 2002-08-27 13:20 Simon Josefsson
0 siblings, 0 replies; only message in thread
From: Simon Josefsson @ 2002-08-27 13:20 UTC (permalink / 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"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-27 13:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-27 13:20 gnus-group-posting-charset-alist Simon Josefsson
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).