From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Loading souce Elisp faster Date: Mon, 25 Feb 2013 07:35:53 -0800 Message-ID: References: <877glwtt5i.fsf@gnu.org> <20130225215038.ab62ebb7b21a755178fb2848@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361806598 9044 80.91.229.3 (25 Feb 2013 15:36:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 15:36:38 +0000 (UTC) Cc: 'Stefan Monnier' , emacs-devel@gnu.org To: "'Xue Fuqiao'" , "'Kenichi Handa'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 16:37:00 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 1UA06o-00005h-SK for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 16:36:54 +0100 Original-Received: from localhost ([::1]:37048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA06U-0001oh-4J for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 10:36:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA06F-0001nZ-LW for emacs-devel@gnu.org; Mon, 25 Feb 2013 10:36:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA062-0004Ru-O8 for emacs-devel@gnu.org; Mon, 25 Feb 2013 10:36:19 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:17683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA062-0004Rc-Gn; Mon, 25 Feb 2013 10:36:06 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r1PFa4gP030003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 25 Feb 2013 15:36:04 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r1PFa33g013685 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 25 Feb 2013 15:36:03 GMT Original-Received: from abhmt114.oracle.com (abhmt114.oracle.com [141.146.116.66]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r1PFa3Ov023316; Mon, 25 Feb 2013 09:36:03 -0600 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 25 Feb 2013 07:36:03 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20130225215038.ab62ebb7b21a755178fb2848@gmail.com> Thread-Index: Ac4TXzhvj9xPbbylQI66FRDWw2ajWwADG/dA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:157321 Archived-At: > > We can have "coding: utf-8;" tag at the first line. Isn't it > > enough? > > Yes, we can. But most Elisp source files have already been > in utf-8 encoding. In (info "(elisp) Coding Conventions"): > > If your program contains non-ASCII characters in string or > character constants, you should make sure Emacs always decodes > these characters the same way, regardless of the user's settings. > The easiest way to do this is to use the coding system > `utf-8-emacs' (*note Coding System Basics::), and specify that > coding in the `-*-' line or the local variables list. > > Maybe this can be changed now (or in the near future), > because of the "99% utf-8 future". Why? What is wrong with UTF-8 code declaring itself as such? Why break backward compatibility gratuitously? What are you really saving by such a restrictive change? A few chars at the start of the file? Is this only about laziness? If you want to be sure, then make Emacs, upon saving, throw the user up against the wall and ask if s?he is sure she really doesn't want to add a UTF-8 declaration, etc. IOW, in the traditional Emacs way, have Emacs help you but not force you. Have Emacs make it easy to DTRT, but not stop you from doing otherwise. And it is so simple to automatically add such a declaration line to every new Emacs-Lisp file - automatic file headers. Why hard-code this kind of thing? Just let the file itself tell Emacs what it wants to be encoded in.