From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64567 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: customizing mm-charset-synonym-alist (was: nail uses iso8859-1 instead of iso-8859-1) Date: Thu, 26 Apr 2007 21:44:39 +0200 Message-ID: References: <86abwwtq52.fsf@ra333.heimat.gr.jp> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177618455 23717 80.91.229.12 (26 Apr 2007 20:14:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2007 20:14:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13078@lists.math.uh.edu Thu Apr 26 22:14:13 2007 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 1HhAM0-0006Hr-NZ for ding-account@gmane.org; Thu, 26 Apr 2007 22:14:13 +0200 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 1HhAKr-0007KO-TW; Thu, 26 Apr 2007 15:13:01 -0500 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 1HhAKo-0007K3-UK for ding@lists.math.uh.edu; Thu, 26 Apr 2007 15:12:58 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HhAKl-0007yQ-2G for ding@lists.math.uh.edu; Thu, 26 Apr 2007 15:12:58 -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 1HhAKj-0001bv-00 for ; Thu, 26 Apr 2007 22:12:53 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HhAKR-00030b-LJ for ding@gnus.org; Thu, 26 Apr 2007 22:12:35 +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, 26 Apr 2007 22:12:35 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Apr 2007 22:12:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 39 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.98 (gnu/linux) Cancel-Lock: sha1:idB4cKjNGCVGGPDxhh84Z5V5ue0= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64567 Archived-At: On Thu, Apr 26 2007, Katsumi Yamaoka wrote: > I've also made it use defcustom, so you can now customize the alist > easily. I think this is not a good idea. 1. `mm-charset-synonym-alist' is modified by mm-setup-codepage-*, so a user will see "CHANGED outside Customize; operating on it here may be unreliable." ,---- | ;; Initialize: | (mm-setup-codepage-iso-8859) | (mm-setup-codepage-ibm) `---- 2. The initial value depends on the availability of charsets (lots of `mm-coding-system-p's). So it will change when using different Emacs versions and flavors. But if the user has customized it, this conditionals are eliminated. IMHO, if we want a customizable variable, we should create a new variable (default: nil) and construct `mm-charset-synonym-alist' from the new one, `mm-codepage-iso-8859-list' and `mm-codepage-ibm-list' (using mm-setup-codepage-*). A new setup function should check if the cdr of each element is a valid charset and add it to `mm-charset-synonym-alist'. BTW, if former defvars are changed to defcustoms, the :version is the one when it's made customizable, not when the defvar was introduced. So ":version "21.1" is not correct. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/