From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: mm-coding-system-priorities per hierarchy
Date: Thu, 21 Sep 2006 16:01:51 +0200 [thread overview]
Message-ID: <v9odt92u9c.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <b4m3bam4083.fsf@jpl.org>
On Thu, Sep 21 2006, Katsumi Yamaoka wrote:
> This has to be used with care. I verified that the Japanese
> mail message written when the de.test group was selected or just
> after exiting the de.test group was sent with the utf-8 encoding
> even if iso-2022-jp is better to be used.
I think the documentation of `gnus-newsgroup-variables' should
actually be improved and it should describe what
`gnus-summary-make-local-variables' does [1] (or maybe I just didn't
read the doc string carefully enough [2]):
When using this expression...
(add-to-list 'gnus-newsgroup-variables 'mm-coding-system-priorities)
... `gnus-summary-make-local-variables' sets the global value of
`mm-coding-system-priorities' to nil. I'd guess nil leads to utf-8
instead of iso-2022-jp in your environment.
Do you get the expected behavior with this expression?
(add-to-list 'gnus-newsgroup-variables
'(mm-coding-system-priorities . global))
(Thank for fixing my commit.)
Bye, Reiner.
[1]
--8<---------------cut here---------------start------------->8---
(defun gnus-summary-make-local-variables ()
"Make all the local summary buffer variables."
(let (global)
(dolist (local gnus-summary-local-variables)
(if (consp local)
(progn
(if (eq (cdr local) 'global)
;; Copy the global value of the variable.
(setq global (symbol-value (car local)))
;; Use the value from the list.
(setq global (eval (cdr local))))
(set (make-local-variable (car local)) global))
;; Simple nil-valued local variable.
(set (make-local-variable local) nil)))))
--8<---------------cut here---------------end--------------->8---
,----[ <f1> v gnus-newsgroup-variables RET ]
| gnus-newsgroup-variables is a variable defined in `gnus-sum'.
| Its value is nil
|
| Documentation:
| A list of variables that have separate values in different newsgroups.
| A list of newsgroup (summary buffer) local variables, or cons of
| variables and their default expressions to be evalled (when the default
| values are not nil), that should be made global while the summary buffer
| is active.
|
| Note: The default expressions will be evaluated (using function `eval')
| before assignment to the local variable rather than just assigned to it.
| If the default expression is the symbol `global', that symbol will not
| be evaluated but the global value of the local variable will be used
| instead.
|
| These variables can be used to set variables in the group parameters
| while still allowing them to affect operations done in other buffers.
| For example:
|
| (setq gnus-newsgroup-variables
| '(message-use-followup-to
| (gnus-visible-headers .
| "^From:\\|^Newsgroups:\\|^Subject:\\|^Date:\\|^To:")))
`----
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2006-09-21 14:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-20 16:42 Reiner Steib
2006-09-20 22:55 ` Katsumi Yamaoka
2006-09-21 14:01 ` Reiner Steib [this message]
2006-09-22 8:38 ` Katsumi Yamaoka
2006-09-24 13:21 ` Reiner Steib
2006-09-25 11:36 ` Katsumi Yamaoka
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=v9odt92u9c.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
/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).