From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: How to add the encoding in the emacs window? Date: Sun, 2 Dec 2007 22:33:59 +0100 Message-ID: References: <2cd210e4-ee59-4bb1-894e-372127f82711@f3g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1196631293 15818 80.91.229.12 (2 Dec 2007 21:34:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2007 21:34:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: avilella@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 02 22:35:02 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IywSg-0003am-Dk for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Dec 2007 22:34:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IywSQ-0005eH-9g for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Dec 2007 16:34:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IywRy-0005Pf-5Q for help-gnu-emacs@gnu.org; Sun, 02 Dec 2007 16:34:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IywRw-0005Ml-A4 for help-gnu-emacs@gnu.org; Sun, 02 Dec 2007 16:34:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IywRw-0005MU-55 for help-gnu-emacs@gnu.org; Sun, 02 Dec 2007 16:34:04 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IywRv-0004oy-Gi for help-gnu-emacs@gnu.org; Sun, 02 Dec 2007 16:34:03 -0500 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate03.web.de (Postfix) with ESMTP id AD7FEB46E179; Sun, 2 Dec 2007 22:34:01 +0100 (CET) Original-Received: from [195.4.205.21] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #208) id 1IywRt-0003Ae-00; Sun, 02 Dec 2007 22:34:01 +0100 In-Reply-To: <2cd210e4-ee59-4bb1-894e-372127f82711@f3g2000hsg.googlegroups.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18/y4CtrpS79U+1RCDPWc1Htnqq0AiWnP6R1/+O oGXABkePpbTr0a15erhquVPyiXR9hJQQgnx7Q8hhQmTl4a1+hA YAzUwTS4rkUMlgLZ6IBw== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49782 Archived-At: Am 02.12.2007 um 10:45 schrieb avilella: > I would like to know if it is possible to have the encoding specified > in a given emacs window: No. The encoding is a property of the buffer. It's shown at the =20 beginning, the left-most edge, of the mode-line. You can select with =20 the mouse cursor that symbol and a *Help* buffer will explain what =20 the encoding is. If you mean how to set an encoding preference for GNU Emacs, you =20 might start with setting environment variables like LC_CTYPE. =46rom =20= its value GNU Emacs will set an internal preference for buffer =20 encodings =96 but it won't be strict since internal settings (like file-=20= coding-system-alist, network-coding-system-alist, process-coding-=20 system-alist, auto-coding-alist ...) pre-define a lot. You can go further and put into your user init file code that reads =20 LC_CTYPE (or a synthetic environment variable of your own) and then =20 modifies such lists, and which also emits a (prefer-coding-system ') There are also buffer local variables which can be added at the top =20 of the file or its bottom. Examples for top: ;;; -*- mode: Emacs-Lisp; coding: utf-8; -*- and bottom: %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% coding: utf-8-unix %%% TeX-command-default: "XeLaTeXx" %%% End: -- Greetings Pete We also sponsor National Invisible Chronic Illness Awareness Week =20 annually in September. Join the millions