From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#12598: 24.2; utf-8 codepoints in doc-strings and compression of .el and .elc files Date: Sun, 07 Oct 2012 22:05:23 +0200 Organization: Linux Private Site Message-ID: <87391qavzw.fsf@Rainer.invalid> References: <877gr2b2in.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349640403 3924 80.91.229.3 (7 Oct 2012 20:06:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2012 20:06:43 +0000 (UTC) To: 12598@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 07 22:06:49 2012 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 1TKx7g-0000e3-G4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Oct 2012 22:06:48 +0200 Original-Received: from localhost ([::1]:45956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKx7a-00088a-DI for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Oct 2012 16:06:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKx7X-00088V-SL for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 16:06:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKx7W-0007jB-J2 for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 16:06:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKx7W-0007i4-EZ for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 16:06:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TKx7t-0004Zc-Mo for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 16:07:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <877gr2b2in.fsf@Rainer.invalid> Resent-From: Achim Gratz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Oct 2012 20:07: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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134964037417522 (code B ref -1); Sun, 07 Oct 2012 20:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Oct 2012 20:06:14 +0000 Original-Received: from localhost ([127.0.0.1]:60366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKx77-0004YY-P5 for submit@debbugs.gnu.org; Sun, 07 Oct 2012 16:06:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48937) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKx75-0004YM-6q for submit@debbugs.gnu.org; Sun, 07 Oct 2012 16:06:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKx6b-0007Vh-CX for submit@debbugs.gnu.org; Sun, 07 Oct 2012 16:05:42 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:55077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKx6b-0007Vd-9T for submit@debbugs.gnu.org; Sun, 07 Oct 2012 16:05:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKx6a-0007r7-8B for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 16:05:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKx6Y-0007Uh-GV for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 16:05:40 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKx6Y-0007O9-9s for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 16:05:38 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TKx6a-0000FC-Ix for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 22:05:40 +0200 Original-Received: from pd9eb47af.dip.t-dialin.net ([217.235.71.175]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Oct 2012 22:05:40 +0200 Original-Received: from Stromeko by pd9eb47af.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Oct 2012 22:05:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb47af.dip.t-dialin.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:qK+E5G+up8jbWeWer+K3zqfpzag= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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 (newer, 2) 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:65357 Archived-At: Stefan Monnier writes: >> I've just removed some utf-8 codepoints from docstrings in org-mode >> because when I compress either the source (.el.gz) or the resulting >> byte-compiled file (.elc.gz), the loader fails after the first function >> definition that has such a docstring. > > Sounds like a bug. Can you send a precise recipe? The org.el currently in trunk should demonstrate it: compress the bytecompiled file with gzip, then try to (load "org") with the load-path set so that it finds those compressed files. With the byte-compiled file you'll then get this error: Debugger entered--Lisp error: (void-variable defalias) eval-buffer(# nil "/home/emacs/lisp/org/org.elc.gz" nil t) ; Reading at buffer position 317443 load-with-code-conversion("/home/emacs/lisp/org/org.elc.gz" "/home/emacs/lisp/org/org.elc.gz" nil nil) load("org.elc") eval((load "org.elc")) eval-expression((load "org.elc") nil) call-interactively(eval-expression nil nil) The corresponding line in the source is L9026 (the defun for the second function that has unicode in the docstring). The exact same error happens in Emacs 23.3, btw. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada