From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: emacs manual: codepage-setup vs language environ Date: Thu, 04 Aug 2005 09:39:35 +1000 Message-ID: <87br4ewpxk.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123113095 1363 80.91.229.2 (3 Aug 2005 23:51:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2005 23:51:35 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 04 01:51:33 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E0T0B-0004c2-7Z for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Aug 2005 01:50:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0T2x-00037g-9M for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Aug 2005 19:53:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E0T2L-0002hV-GY for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2005 19:52:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E0T2G-0002dB-5v for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2005 19:52:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0T2F-0002ak-L9 for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2005 19:52:31 -0400 Original-Received: from [61.8.0.115] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E0T2q-0004F0-IQ for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2005 19:53:09 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j73Ne0fX001409 for ; Thu, 4 Aug 2005 09:40:00 +1000 Original-Received: from localhost (ppp2F4F.dyn.pacific.net.au [61.8.47.79]) by mailproxy1.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j73NdwPs004662 for ; Thu, 4 Aug 2005 09:39:59 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1E0Spj-0001G9-00; Thu, 04 Aug 2005 09:39:35 +1000 Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:12645 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:12645 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-03-18 on trouble, modified by Debian configured using `configure '--build=i386-linux' '--host=i386-linux' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--with-x=yes' '--with-x-toolkit=athena' 'CFLAGS=-DDEBIAN -g -O2' 'build_alias=i386-linux' 'host_alias=i386-linux'' Important settings: value of $LC_ALL: en_AU value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: The "MS-DOS and MULE" node in the emacs manual says Since the codepage number also indicates which script you are using, Emacs automatically runs `set-language-environment' to select the language environment for that script (*note Language Environments::). When I first read that I thought it applied to both the M-x dos-codepage-setup and M-x codepage-setup commands shown at the start of that section, whereas if I'm not mistaken it's only the former. I think that node could be clearer if the description of how codepages are handled with emacs coding systems (and how you need M-x codepage-setup) was separated from the bits about what happens in emacs actually running on DOS. The coding systems bits would apply to all systems, if I'm not mistaken.