From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: how to set language-env differently for some directories ? Date: Mon, 09 Jun 2008 19:02:06 +0300 Message-ID: References: <8763sizngq.fsf@lybrafox.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1213027808 28028 80.91.229.12 (9 Jun 2008 16:10:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Jun 2008 16:10:08 +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:10:51 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 1K5jwx-0002gb-PL for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jun 2008 18:10:28 +0200 Original-Received: from localhost ([127.0.0.1]:39690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5jwA-00013k-DS for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jun 2008 12:09:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5jpb-0004EF-EA for help-gnu-emacs@gnu.org; Mon, 09 Jun 2008 12:02:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5jpZ-0004CB-5X for help-gnu-emacs@gnu.org; Mon, 09 Jun 2008 12:02:50 -0400 Original-Received: from [199.232.76.173] (port=46631 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5jpY-0004C3-R0 for help-gnu-emacs@gnu.org; Mon, 09 Jun 2008 12:02:48 -0400 Original-Received: from mtaout7.012.net.il ([84.95.2.19]:49946) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K5jpY-0007dj-6n for help-gnu-emacs@gnu.org; Mon, 09 Jun 2008 12:02:48 -0400 Original-Received: from HOME-C4E4A596F7 ([80.230.28.131]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K2700IBCD3QVY90@i-mtaout7.012.net.il> for help-gnu-emacs@gnu.org; Mon, 09 Jun 2008 18:45:26 +0300 (IDT) In-reply-to: <8763sizngq.fsf@lybrafox.com> X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 10 (1203?) 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:54644 Archived-At: > 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. 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?