From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?R=C3=A9mi?= Letot Newsgroups: gmane.emacs.help Subject: Re: how to set language-env differently for some directories ? Date: Mon, 09 Jun 2008 18:35:08 +0200 Message-ID: <87zlpuy3b7.fsf@lybrafox.com> References: <8763sizngq.fsf@lybrafox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1213029362 1532 80.91.229.12 (9 Jun 2008 16:36:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Jun 2008 16:36:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 09 18:36:45 2008 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 1K5kME-0003Nl-8Y for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jun 2008 18:36:34 +0200 Original-Received: from localhost ([127.0.0.1]:52990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5kLQ-0002zO-RP for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jun 2008 12:35:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5kL4-0002zH-Aq for help-gnu-emacs@gnu.org; Mon, 09 Jun 2008 12:35:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5kL2-0002y7-3k for help-gnu-emacs@gnu.org; Mon, 09 Jun 2008 12:35:21 -0400 Original-Received: from [199.232.76.173] (port=36068 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5kL1-0002y1-SS for help-gnu-emacs@gnu.org; Mon, 09 Jun 2008 12:35:19 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:35930 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K5kL1-00022E-Ja for help-gnu-emacs@gnu.org; Mon, 09 Jun 2008 12:35:19 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K5kL0-0005ld-0f for help-gnu-emacs@gnu.org; Mon, 09 Jun 2008 16:35:18 +0000 Original-Received: from cust143-50.dsl.versadsl.be ([62.166.143.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jun 2008 16:35:18 +0000 Original-Received: from hobbes by cust143-50.dsl.versadsl.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jun 2008 16:35:18 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cust143-50.dsl.versadsl.be User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:9qCrEizs4JkQ5l10EcO7521zuyo= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:54645 Archived-At: Eli Zaretskii writes: >> From: =?utf-8?Q?R=C3=A9mi?= Letot >> Date: Mon, 09 Jun 2008 16:34:29 +0200 >> >> My current emacs is in an UTF8 language-environment. For some >> directories (actually a specific tree) I have to use Latin1. How can I >> achieve that automatically ? >> >> For the moment I manually switch when needed, but that's cumbersome >> and prone to errors, so I'd like to automate it : all files under >> "specific_dir" are to be treated in Latin1. Filenames and content. > > I'd try customizing file-coding-system-alist. If that somehow doesn't > work, please describe more details on emacs-devel@gnu.org, perhaps > there's some bug or missing feature. Thanks, I'll try that. Question : Does it deal only with content of files or also file names? > Out of curiosity: how come this specific tree is in a different > encoding? Is it a volume mounted from another machine, or some > removable media? Oh no, simpler than that : that directory and everything in it is a "mirror" of memos on my palm device, but the palm doesn't deal well with UTF names and content, so I have to keep it Latin9 when I work in it. Thanks, -- RĂ©mi