From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: codepage-setup, autoload cpNNN Date: Thu, 04 Aug 2005 19:57:43 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: 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 1123178593 5908 80.91.229.2 (4 Aug 2005 18:03:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2005 18:03:13 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 04 20:03:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E0k3G-0007gw-1C for ged-emacs-devel@m.gmane.org; Thu, 04 Aug 2005 20:02:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0k64-0004Uz-FN for ged-emacs-devel@m.gmane.org; Thu, 04 Aug 2005 14:05:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E0k4o-0003xw-5V for emacs-devel@gnu.org; Thu, 04 Aug 2005 14:04:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E0k4l-0003wV-OG for emacs-devel@gnu.org; Thu, 04 Aug 2005 14:04:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0k4l-0003vd-F6 for emacs-devel@gnu.org; Thu, 04 Aug 2005 14:04:15 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E0kDl-00058E-7e for emacs-devel@gnu.org; Thu, 04 Aug 2005 14:13:33 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E0jyu-00076R-Kr for emacs-devel@gnu.org; Thu, 04 Aug 2005 19:58:12 +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, 04 Aug 2005 19:58:12 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Aug 2005 19:58:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 34 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.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:ibJKPKVeiGcb/MVlXzlVc3s+PXE= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:41495 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41495 [ From `bug-gnu-emacs'...] Eli Zaretskii wrote: > The node you quoted is from an appendix that describes the MS-DOS port > of Emacs, which uses codepage.el. On other systems, Emacs uses a > different implementation of code pages, the one from code-pages.el. On GNU/Linux, Emacs autoloads window-12xx. I.e. if Gnus displays an article with charset=window-12xx, all characters are displayed correctly. Sometimes people use charset=cp850 or need to edit files encoded in cpNNN. After `M-x codepages-setup RET NNN RET' the coding system is available. But etc/NEWS says "`codepage-setup' is now obsolete". What is the correct way to setup cpNNN? Does it make sense to add autoload statements like this (in `codepage.el'?)? (autoload-coding-system 'cpNNN '(codepage-setup NNN)) Or maybe do it for all supported codepages: (mapc (lambda (cp) (setq cp (string-to-number (car cp))) (autoload-coding-system (intern (format "cp%s" cp)) `(codepage-setup ,cp))) (cp-supported-codepages)) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/