From: ueno Date: Sun, 8 Sep 2002 16:35:29 +0000 (+0000) Subject: (Posting Styles): Add a description about gnus-named-posting-styles. X-Git-Tag: t-gnus-6_15_8-04-quimby~60 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=09cf9140e82fbe6b4f7ac5e4bf6e58f1a9f4ded2;p=elisp%2Fgnus.git- (Posting Styles): Add a description about gnus-named-posting-styles. --- diff --git a/texi/gnus-ja.texi b/texi/gnus-ja.texi index 2b9622a..427fddd 100644 --- a/texi/gnus-ja.texi +++ b/texi/gnus-ja.texi @@ -10628,6 +10628,29 @@ from date id references chars lines xref extra の各ヘッダーから成るベク を @code{From} アドレスとして使うことを意味します。これは、あなたがたく さんのメーリングリストに参加している場合に便利でしょう。 +変数 @code{gnus-named-posting-styles} を設定することで、よく利用する投稿 +様式に名前をつけることができます。それは名前と任意の量の属性からなる連想 +リストです。@code{gnus-posting-styles} に含まれる属性名が @code{import} +だったら、その属性値から @code{gnus-named-posting-styles} を引いて得られ +た定型の属性を取り込みます。 + +@lisp +(setq gnus-named-posting-styles + '(("Default" + (signature-file "~/.signature") + (name "User Name") + ("X-Home-Page" (getenv "WWW_HOME")) + (organization "People's Front Against MWM")) + ("Emacs" + (import "Default") + (organization "The Church of Emacs")))) +@end lisp + +"Emacs" と名付けられた様式は、@code{organization} 以外の属性を "Default" +から引き継ぎます。概略バッファで @kbd{S P} とすることで、投稿の際に任意 +の様式を選択することもできます。 + + @node Drafts @section 下書き @cindex drafts diff --git a/texi/gnus.texi b/texi/gnus.texi index 5a30a69..2176314 100644 --- a/texi/gnus.texi +++ b/texi/gnus.texi @@ -11135,6 +11135,28 @@ The @samp{nnml:.*} rule means that you use the @code{To} address as the @code{From} address in all your outgoing replies, which might be handy if you fill many roles. +Setting the @code{gnus-named-posting-styles} variable will make +posting-styles allow to have distinctive names. It is an alist which +maps the names to styles. If an attribute has a name @code{import}, +Gnus will look for the attribute value in +@code{gnus-named-posting-styles} and import user defined attributes. + +@lisp +(setq gnus-named-posting-styles + '(("Default" + (signature-file "~/.signature") + (name "User Name") + ("X-Home-Page" (getenv "WWW_HOME")) + (organization "People's Front Against MWM")) + ("Emacs" + (import "Default") + (organization "The Church of Emacs")))) +@end lisp + +The posting-style named "Emacs" will take over all the attributes from +"Default" except @code{organization}. You can specify an arbitrary +posting-style when article posting with @kbd{S P} in the summary buffer. + @node Drafts @section Drafts