guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scanning for coding declarations in all files (not just source)


From: Mark H Weaver
Subject: Scanning for coding declarations in all files (not just source)
Date: Sun, 13 Jan 2013 13:25:40 -0500

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]