From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: On elisp running native Date: Sun, 05 Jan 2020 01:36:41 -0500 Message-ID: References: <83tv5mp48l.fsf@gnu.org> <83sgl0lchm.fsf@gnu.org> <83imlwl9vm.fsf@gnu.org> <64F44455-7D32-4979-8204-B95768C7A767@traduction-libre.org> <5484B0B2-AB91-44BA-B119-CA93E25E3B8A@traduction-libre.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="24964"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "emacs-devel@gnu.org" To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 05 07:37:20 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1inzXM-0006Nw-6q for ged-emacs-devel@m.gmane.org; Sun, 05 Jan 2020 07:37:20 +0100 Original-Received: from localhost ([::1]:39616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inzXK-0007jq-CD for ged-emacs-devel@m.gmane.org; Sun, 05 Jan 2020 01:37:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41509) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inzWr-0007K5-55 for emacs-devel@gnu.org; Sun, 05 Jan 2020 01:36:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inzWo-0006Q2-5q for emacs-devel@gnu.org; Sun, 05 Jan 2020 01:36:48 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:14027) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1inzWn-0006NJ-Uc for emacs-devel@gnu.org; Sun, 05 Jan 2020 01:36:46 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id F2AB61007B1; Sun, 5 Jan 2020 01:36:44 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 70DE51002FC; Sun, 5 Jan 2020 01:36:43 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1578206203; bh=VmAEQRajsniv1+TE7M4/qSVBuy44dvFQyhhZ/aZ1I+4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=b7IPU7uc19FEIpwXfLKusMxiw9cNTuE8ZwdwvUtrHW3CGBWGPhAkOF0R7yULf3pnr F4to3r9b/e4+VAmD/fTps3gW08fWFqN+f5LafPHFSAcpMPswIVMzXnUzjonVGwM6Ha 5A9Ttpd30UD56F7+SSoY2UTO+i71tHeR9EiDniLVmTC72HfSpqDI7o4m1ytI84IGNW sszORFD8yXNdGBWyVvOgLFJHh+XddvoTOUr+fDFN587QLLUYJsshfakzRl4bMW+4tl qzQ1fZ591UtVA87MTA6mIvQ3B8zUR7mFFW4TOE57g6XT2U7NQGAdyPZPt42XRcBWHv acHIsBaAh6xcg== Original-Received: from alfajor (65-110-220-116.cpe.pppoe.ca [65.110.220.116]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 23E38120511; Sun, 5 Jan 2020 01:36:43 -0500 (EST) In-Reply-To: <5484B0B2-AB91-44BA-B119-CA93E25E3B8A@traduction-libre.org> (Jean-Christophe Helary's message of "Sun, 5 Jan 2020 14:18:58 +0900") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:243966 Archived-At: > But you wrote that ".el files are currently always loaded in a somewhat > cumbersome way in order to perform character decoding according to the > file's coding-system". Why isn't the emacs default to treat them all as > utf-8 as you just suggested ? Because Elisp files can use any coding system they like (some were written before utf-8 was even supported by Emacs). So Emacs has to look at the file first to see which coding system it uses. It can be improved, of course, but so far this hasn't been considered important enough for anyone to spend time on it (tho I did go through the trouble of converting Elisp files to utf-8 and changing Emacs such that utf-8 is used by default (i.e. in the absence of evidence to the contrary) in preference to defaulting to the locale, in the hope that this decoding overhead can be eliminated in a decade or two). Of course, instead of spending time on it, you can simply compile your Elisp files: Emacs always uses the same coding-system for the .elc it produces, so loading them can skip this overhead. Stefan