From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12598: 24.2; utf-8 codepoints in doc-strings and compression of .el and .elc files Date: Fri, 01 Feb 2013 09:06:45 -0500 Message-ID: References: <8738xg5qwx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1359727642 30594 80.91.229.3 (1 Feb 2013 14:07:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2013 14:07:22 +0000 (UTC) Cc: Stromeko@nexgo.de, 12598@debbugs.gnu.org To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 01 15:07:42 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 1U1HHJ-0000SS-SV for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Feb 2013 15:07:41 +0100 Original-Received: from localhost ([::1]:45017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1HH1-0007Rv-D8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Feb 2013 09:07:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1HGu-0007R6-N6 for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 09:07:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1HGs-0001kr-CO for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 09:07:16 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1HGs-0001kh-92 for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 09:07:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U1HHd-0002H9-Pn for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 09:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Feb 2013 14:08:01 +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.13597276608718 (code B ref 12598); Fri, 01 Feb 2013 14:08:01 +0000 Original-Received: (at 12598) by debbugs.gnu.org; 1 Feb 2013 14:07:40 +0000 Original-Received: from localhost ([127.0.0.1]:58880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1HHG-0002GY-Lw for submit@debbugs.gnu.org; Fri, 01 Feb 2013 09:07:39 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:44074) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1HHC-0002GO-P5 for 12598@debbugs.gnu.org; Fri, 01 Feb 2013 09:07:37 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFLd/iW/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFFLd/iW/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="191788" Original-Received: from 75-119-248-150.dsl.teksavvy.com (HELO pastel.home) ([75.119.248.150]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Feb 2013 09:06:45 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 94EDD58F88; Fri, 1 Feb 2013 09:06:45 -0500 (EST) In-Reply-To: <8738xg5qwx.fsf@gnu.org> (Kenichi Handa's message of "Fri, 01 Feb 2013 18:23:10 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:70560 Archived-At: >> Fixing `eval-buffer' so that it skips bytes when it sees #@NN is tricky, >> so the best fix is probably to change load-with-code-conversion so that >> (if the file is byte-compiled) it saves the buffer to a temp file and >> passes that to `load'. > The variable load-source-file-function is set to > load-with-code-converision, and Fload calls > load-source-file-function. So, shouldn't we provide a file > name handler for `load' operation instead of > making load-source-file-function handle non-source files? We could, but I suspect that the problem (and the fix) would be the same for all file-name-handlers. IOW, the problem is not in how to access the file's contents, but in how eval-buffer (used by load-with-code-conversion) doesn't handle byte-compiled file correctly. Stefan