From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "spamfilteraccount@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: Opening file in UTF-8 mode automatically Date: Mon, 26 Nov 2007 23:12:36 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <78b46aa5-064f-4977-b425-b30a2f1866bb@a39g2000pre.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196149255 3026 80.91.229.12 (27 Nov 2007 07:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2007 07:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 27 08:41:03 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 1Iwv41-0007jM-CT for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Nov 2007 08:41:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iwv3m-00064y-9I for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Nov 2007 02:40:46 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d27g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 81.182.115.213 Original-X-Trace: posting.google.com 1196147556 5228 127.0.0.1 (27 Nov 2007 07:12:36 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 27 Nov 2007 07:12:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d27g2000prf.googlegroups.com; posting-host=81.182.115.213; posting-account=ksnUxwoAAAC32CfuC8oi8NKZxrTcNtdm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9,gzip(gfe),gzip(gfe) Content-Disposition: inline Original-Xref: shelby.stanford.edu gnu.emacs.help:154139 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:49569 Archived-At: On Nov 25, 12:33 pm, Reiner Steib wrote: > On Sun, Nov 25 2007, spamfilteracco...@gmail.com wrote: > > On Nov 24, 7:38 pm, Reiner Steib wrote: > >> `auto-coding-regexp-alist' in Emacs 22 already has an entry for the > >> BOM: ("\\`\xEF\xBB\xBF" . utf-8). > > > Yep, it's there, I checked it, but it doesn't trigger opening the file > > in utf-8 mode. > > Works for me: > If anyone can tell me what code should trigger utf-8 mode via auto- coding-regexp-alist then I can debug the problem myself. I'm quite knowledgeable in Emacs Lisp, so if it's in the lisp part then I can surely debug it. I took a cursory look into mule.el and I saw auto-coding-regexp-alist is used there, but I haven't seen any apparent mechanism tying that stuff to file opening (no find-file-hook or something). Anyone can give me some pointers regarding this?