From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Mon, 25 Feb 2013 03:55:23 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1361760957 32111 80.91.229.3 (25 Feb 2013 02:55:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 02:55:57 +0000 (UTC) Cc: Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 03:56:20 2013 Return-path: Envelope-to: ged-emacs-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 1U9oEl-0006ne-Od for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 03:56:19 +0100 Original-Received: from localhost ([::1]:44224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9oER-0003K1-3S for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2013 21:55:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9oEN-0003Jw-Ql for emacs-devel@gnu.org; Sun, 24 Feb 2013 21:55:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9oEM-0001lo-Qu for emacs-devel@gnu.org; Sun, 24 Feb 2013 21:55:55 -0500 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:41568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9oEM-0001lg-K0 for emacs-devel@gnu.org; Sun, 24 Feb 2013 21:55:54 -0500 Original-Received: by mail-wg0-f49.google.com with SMTP id 15so2087091wgd.16 for ; Sun, 24 Feb 2013 18:55:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=gssjlyFK3l3hLLc+dTFEeRuR6n/4POGVRoeEXQuyDRc=; b=l5Do1ixa0Ox5lGwYoo3BoH/PBSIqSRy0jStR89Pfvi2BUtnV0KfE3uUAV5iu7+3W4w vL/1w45Fi85/SQ5lhpZIFuiAR8hg/GbbnXySMeWPbq2lhlevSlfLAe0Fm615dqO3E8tA HJdULuJCvNo3u9xoelWmlF/r8GMCB54sgRZuH2U4fXiiz6m2f6zgLuz4IGvapfb4kkg9 ISW9OWQpigkOJ+uER68mDB0H5DkYmDfvn4RkpHLGMZbq5qOnOe2F2xekzZHD5QQPX6Hy OBvkzEkIGVu6C9LJSmB3H9Nm7+fQW5Oh4gkySDUij4xB6/DOQk18AIFRb1pS0M4yMVx7 rDUg== X-Received: by 10.194.173.167 with SMTP id bl7mr4546453wjc.50.1361760953765; Sun, 24 Feb 2013 18:55:53 -0800 (PST) Original-Received: by 10.194.88.226 with HTTP; Sun, 24 Feb 2013 18:55:23 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.82.49 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157302 Archived-At: On Mon, Feb 25, 2013 at 3:53 AM, Stefan Monnier wrote: >>> So basically, all we need to do is to be able to easily recognize "Elisp >>> source in utf-8 encoding". One way to do that would be to use >>> a BOM-like marker, e.g. start utf-8 Elisp files with "\ufeff" either at >>> the very beginning of the file or right after a semi-colon (for better >>> backward compatibility). >> Why not the normal comment about utf-8? > > The "normal comment" can also be at the end of the file, which is not > an option. But yes, the "-*- coding: utf-8 -*-" is another option > (although properly supporting it is kind of a pain, and I'd like to find > a more discrete solution for the "99% utf-8 future"). Why not assuming it is utf-8? ;-) Unless there is a "-*- coding: ..." comment.