From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68170 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: nnmail-pathname-coding-system breaks my XEmacs. Date: Fri, 16 Jan 2009 17:05:37 +0900 Organization: Emacsen advocacy group Message-ID: References: <18794.15468.881403.994781@parhasard.net> <87hc45o6ea.fsf@marauder.physik.uni-ulm.de> <18795.12614.222792.255516@parhasard.net> <18796.33500.65305.970938@parhasard.net> <18797.52612.666509.700581@parhasard.net> <18798.33999.638951.592345@parhasard.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232093256 20366 80.91.229.12 (16 Jan 2009 08:07:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 08:07:36 +0000 (UTC) Cc: ding@gnus.org To: Aidan Kehoe Original-X-From: ding-owner+M16613@lists.math.uh.edu Fri Jan 16 09:08:48 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1LNjku-0004Ro-KT for ding-account@gmane.org; Fri, 16 Jan 2009 09:08:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1LNjij-0006MY-CE; Fri, 16 Jan 2009 02:06:25 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LNjih-0006M7-Dw for ding@lists.math.uh.edu; Fri, 16 Jan 2009 02:06:23 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LNjie-0007i7-7y for ding@lists.math.uh.edu; Fri, 16 Jan 2009 02:06:23 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LNjiv-00014A-00 for ; Fri, 16 Jan 2009 09:06:37 +0100 Original-Received: from localhost ([127.0.0.1]:41582) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1LNji5-0007NW-8P; Fri, 16 Jan 2009 02:05:45 -0600 X-Hashcash: 1:20:090116:kehoea@parhasard.net::CjUWXqhiJ6NYNcCe:000000000000000000000000000000000000000007R5P X-Hashcash: 1:20:090116:ding@gnus.org::PiANzdQvlhGUZKgW:00003NjR X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:zIgGyD1kg1fCLhXMK09lRbMogJE= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68170 Archived-At: >>>>> Aidan Kehoe wrote: > Ar an c=FAigi=FA l=E1 d=E9ag de m=ED Eanair, scr=EDobh Katsumi Yamaoka: >> In other words, supposing `file-name' will not vary after having >> been set to a certain value according to the system, isn't it >> enough to do it once when XEmacs starts? > Once should be okay, yes. >>> (if (featurep 'xemacs) >>> (if (featurep 'file-coding) >>> (setq file-name-coding-system >>> (or file-name-coding-system >>> (coding-system-name 'file-name))))) > No, you want: > (setq file-name-coding-system (coding-system-aliasee 'file-name)) I've installed this workaround in nnmail.el in No Gnus as follows: (defvar nnmail-pathname-coding-system ;; This causes Emacs 22.2 and 22.3 to issue a useless warning. ;;(if (and (featurep 'xemacs) (featurep 'file-coding)) (if (featurep 'xemacs) (if (featurep 'file-coding) ;; Work around a bug in many XEmacs 21.5 betas. ;; Cf. http://thread.gmane.org/gmane.emacs.gnus.general/68134 (setq file-name-coding-system (coding-system-aliasee 'file-name)))) "*Coding system for file name.") I concluded it's better to be in Gnus (and none other) which necessarily uses binding of `file-name-coding-system'. By this change XEmacs users ought to have gotten not to have to customize this variable if the default value satisfies encoding of all non-ASCII group names. Also I've updated the Gnus Info manual. Cf. http://article.gmane.org/gmane.emacs.gnus.commits/6138 and http://article.gmane.org/gmane.emacs.gnus.commits/6139 Regards,