From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Scanning for coding declarations in all files (not just source) Date: Sun, 13 Jan 2013 13:25:40 -0500 Message-ID: <87zk0dq6sb.fsf@tines.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358101566 3436 80.91.229.3 (13 Jan 2013 18:26:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2013 18:26:06 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jan 13 19:26:23 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TuSGF-00086o-F8 for guile-devel@m.gmane.org; Sun, 13 Jan 2013 19:26:23 +0100 Original-Received: from localhost ([::1]:43889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuSFz-00088k-5B for guile-devel@m.gmane.org; Sun, 13 Jan 2013 13:26:07 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuSFr-00087F-3k for guile-devel@gnu.org; Sun, 13 Jan 2013 13:26:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuSFm-0003gj-LY for guile-devel@gnu.org; Sun, 13 Jan 2013 13:25:58 -0500 Original-Received: from world.peace.net ([96.39.62.75]:58689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuSFm-0003gM-I1 for guile-devel@gnu.org; Sun, 13 Jan 2013 13:25:54 -0500 Original-Received: from 209-6-92-20.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.92.20] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TuSFg-0000bA-0o; Sun, 13 Jan 2013 13:25:48 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.39.62.75 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15413 Archived-At: I just discovered that Guile is scanning for coding declarations in *all* files opened with 'open-file', not just source files. For source files, we are scanning for coding declarations twice: once when when the file is opened, and a second time when 'compile-file' or 'primitive-load' explicitly scans for it. The relevant commit is 211683cc5c99542dfb6e2a33f7cb8c1f9abbc702. I was unable to find any discussion of this on guile-devel. I don't like this. I don't want 'open-file' to second-guess the encoding I have asked for in my program, based on data in the file. Also, the manual is misleading. Section 6.17.8 gives the impression that the scanning is only done for source files. What do other people think? Mark