From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Mattes Newsgroups: gmane.emacs.devel Subject: Re: Should `auto-coding-functions' be mode-specific? Date: Wed, 03 Jan 2007 15:18:01 +0100 Message-ID: References: <87ejqd88iv.fsf@pacem.orebokech.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1167834640 15500 80.91.229.12 (3 Jan 2007 14:30:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2007 14:30:40 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 03 15:30:37 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H278R-0004KG-73 for ged-emacs-devel@m.gmane.org; Wed, 03 Jan 2007 15:30:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H278Q-0002gJ-LZ for ged-emacs-devel@m.gmane.org; Wed, 03 Jan 2007 09:30:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H278C-0002ex-7j for emacs-devel@gnu.org; Wed, 03 Jan 2007 09:30:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H278B-0002dM-0K for emacs-devel@gnu.org; Wed, 03 Jan 2007 09:30:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H278A-0002d3-Pt for emacs-devel@gnu.org; Wed, 03 Jan 2007 09:30:14 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H2789-0000ix-Q1 for emacs-devel@gnu.org; Wed, 03 Jan 2007 09:30:14 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1H277y-0005LP-G8 for emacs-devel@gnu.org; Wed, 03 Jan 2007 15:30:02 +0100 Original-Received: from i3ed6c0af.versanet.de ([62.214.192.175]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jan 2007 15:30:02 +0100 Original-Received: from rm by i3ed6c0af.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jan 2007 15:30:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 17 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i3ed6c0af.versanet.de User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64689 Archived-At: On Tue, 02 Jan 2007 22:26:22 -0700, Kevin Rodgers wrote: > The other default element of auto-coding-functions is > sgml-xml-auto-coding-function, which looks for the encoding specified in > the XML declaration but is careful to ensure that the declaration occurs > at the beginning of the buffer (optionally preceded by whitespace, as > allowed by the XML spec). Oh, thank's for looking at this: this is a bug :-) The XML spec _doesn't allow whitespace in front of the XML declaration - the only thing explicitly allowed is the BOM (byte order mark), and that _isn't_ whitespace. Cheers Ralf Mattes