From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#12598: 24.2; utf-8 codepoints in doc-strings and compression of .el and .elc files Date: Tue, 05 Feb 2013 22:40:18 +0900 Message-ID: <87pq0e516l.fsf@gnu.org> References: <877gr2b2in.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360071785 26603 80.91.229.3 (5 Feb 2013 13:43:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2013 13:43:05 +0000 (UTC) Cc: Stromeko@nexgo.de, 12598@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 05 14:43:25 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1U2io0-0003Eq-Hc for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Feb 2013 14:43:24 +0100 Original-Received: from localhost ([::1]:38268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2inh-0000Vo-I3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Feb 2013 08:43:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2inY-00008H-N1 for bug-gnu-emacs@gnu.org; Tue, 05 Feb 2013 08:42:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2inW-00022H-5R for bug-gnu-emacs@gnu.org; Tue, 05 Feb 2013 08:42:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2inW-00022B-34 for bug-gnu-emacs@gnu.org; Tue, 05 Feb 2013 08:42:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U2iod-0000NE-7N for bug-gnu-emacs@gnu.org; Tue, 05 Feb 2013 08:44:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Feb 2013 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12598 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12598-submit@debbugs.gnu.org id=B12598.13600718051377 (code B ref 12598); Tue, 05 Feb 2013 13:44:02 +0000 Original-Received: (at 12598) by debbugs.gnu.org; 5 Feb 2013 13:43:25 +0000 Original-Received: from localhost ([127.0.0.1]:37404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U2io0-0000M9-SL for submit@debbugs.gnu.org; Tue, 05 Feb 2013 08:43:25 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:58182) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U2inv-0000M0-I7 for 12598@debbugs.gnu.org; Tue, 05 Feb 2013 08:43:21 -0500 Original-Received: from 253.240.accsnet.ne.jp ([202.220.240.253]:65525 helo=mongkok) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1U2iml-0003Vb-6V; Tue, 05 Feb 2013 08:42:07 -0500 In-Reply-To: (message from Stefan Monnier on Sun, 03 Feb 2013 11:04:47 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70717 Archived-At: In article , Stefan Monnier writes: > > Should eval-buffer handle byte-compiled code in a buffer? > That'd be nice, tho it might be kind of annoying to implement (having to > look at buffer-file-coding-system to figure out the byte-size of each > char when skipping #@NN). If we don't change eval-buffer, we should fix Fload itself. It has this code now: if (!memcmp (SDATA (found) + SBYTES (found) - 4, ".elc", 4) || (fd >= 0 && (version = safe_to_load_version (fd)) > 0)) /* Load .elc files directly, but not when they are remote and have no handler! */ [...] else { /* We are loading a source file (*.el). */ if (!NILP (Vload_source_file_function)) { Lisp_Object val; if (fd >= 0) emacs_close (fd); val = call4 (Vload_source_file_function, found, hist_file_name, NILP (noerror) ? Qnil : Qt, (NILP (nomessage) || force_load_messages) ? Qnil : Qt); return unbind_to (count, val); } } Apparently, Fload doesn't intend to handle a compressed byte-compiled file. And, it is possible to bind load-source-file-function to some other function than load-with-code-conversion, modifing load-with-code-conversion is not enough. --- Kenichi Handa handa@gnu.org