From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: language environment depending on file Date: Fri, 15 Oct 2004 14:38:22 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1097844181 19098 80.91.229.6 (15 Oct 2004 12:43:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2004 12:43:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 15 14:42:56 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CIRQ7-0001qP-00 for ; Fri, 15 Oct 2004 14:42:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIRXG-0007nB-Jw for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Oct 2004 08:50:18 -0400 Original-Newsgroups: gnu.emacs.help X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6; Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:NSP+14IucNlYZ4cq42XhzArnQWk= Original-NNTP-Posting-Host: 84.57.64.173 Original-X-Trace: 15 Oct 2004 14:38:23 +0200, 84.57.64.173 Original-Lines: 25 Original-X-Complaints-To: abuse@arcor-ip.de Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!irazu.switch.ch!switch.ch!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor-ip.de!news.arcor-ip.de!84.57.64.173 Original-Xref: shelby.stanford.edu gnu.emacs.help:125888 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21258 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21258 Joakim Hove writes: > slanning@theworld.com writes: > > >> >> (add-hook 'mmm-mode-hook >> '(lambda () >> (make-variable-buffer-local 'current-language-environment) >> (set-language-environment "UTF-8"))) [...] > Anyway, you *might* try to advice the set-buffer or switch-to-buffer > functions with something like: [...] I might be wrong, but there seems to be some confusion here. I believe what the OP really wants is not change the language environment, but simply the character encoding for .mc files: (modify-coding-system-alist 'file "\\.mc\\'" 'utf-8) Oliver -- 24 Vendémiaire an 213 de la Révolution Liberté, Egalité, Fraternité!