From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63764 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: mm-coding-system-priorities per hierarchy Date: Thu, 21 Sep 2006 16:01:51 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1158848279 9222 80.91.229.2 (21 Sep 2006 14:17:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Sep 2006 14:17:59 +0000 (UTC) Original-X-From: ding-owner+m12291@lists.math.uh.edu Thu Sep 21 16:17:56 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GQPLg-0006EP-1e for ding-account@gmane.org; Thu, 21 Sep 2006 16:16:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1GQPLR-00007a-00; Thu, 21 Sep 2006 09:16:05 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1GQPDg-00007V-00 for ding@lists.math.uh.edu; Thu, 21 Sep 2006 09:08:04 -0500 Original-Received: from quimby.gnus.org ([80.91.227.211]) by mx1.math.uh.edu with esmtp (Exim 4.52) id 1GQPDc-00037t-Cm for ding@lists.math.uh.edu; Thu, 21 Sep 2006 09:08:04 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GQPDV-0005AF-00 for ; Thu, 21 Sep 2006 16:07:53 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GQPBb-0003CE-Qs for ding@gnus.org; Thu, 21 Sep 2006 16:05:55 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Sep 2006 16:05:55 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Sep 2006 16:05:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 78 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: .*T0'iU(sujq_j9\J>-d4fg;N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:mzVgZ9AsN2TDLLSWn44X8nw3nKA= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63764 Archived-At: 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--- ,----[ 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/