GNU bug report logs - #12598
24.2; utf-8 codepoints in doc-strings and compression of .el and .elc files

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Achim Gratz <Stromeko@HIDDEN>; dated Sun, 7 Oct 2012 17:46:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'normal' from 'important' Request was from Stefan Monnier <monnier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 23 Apr 2014 03:11:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 22 23:11:44 2014
Received: from localhost ([127.0.0.1]:55593 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Wcnb6-0004Hd-8p
	for submit <at> debbugs.gnu.org; Tue, 22 Apr 2014 23:11:44 -0400
Received: from chene.dit.umontreal.ca ([132.204.246.20]:45834)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1Wcnb2-0004HR-T8
 for 12598 <at> debbugs.gnu.org; Tue, 22 Apr 2014 23:11:41 -0400
Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242])
 by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s3N3BcSV014437;
 Tue, 22 Apr 2014 23:11:39 -0400
Received: by ceviche.home (Postfix, from userid 20848)
 id 0493B66091; Tue, 22 Apr 2014 23:11:37 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Kenichi Handa <handa@HIDDEN>
Subject: Re: bug#12598: 24.2;
 utf-8 codepoints in doc-strings and compression of .el and .elc files
Message-ID: <jwvsip4u4ge.fsf-monnier+bug#12598@HIDDEN>
References: <877gr2b2in.fsf@HIDDEN> <878v6x4k2k.fsf@HIDDEN>
Date: Tue, 22 Apr 2014 23:11:37 -0400
In-Reply-To: <878v6x4k2k.fsf@HIDDEN> (Kenichi Handa's message of "Sat, 09 Feb
 2013 23:51:15 +0900")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV4920=0
X-NAI-Spam-Version: 2.3.0.9378 : core <4920> : inlines <759> : streams
 <1165018> : uri <1738100>
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 12598
Cc: Eli Zaretskii <eliz@HIDDEN>, Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

>> See "bzr diff -c 39793".  In that revision, the SUFFIXES argument to
>> openp was changed, and its handling inside openp was changed as well.
>> I believe the intent was to let openp call the file handler.
> But, openp just checks whether or not any handlers exist, it
> doesn't call a found handler.

So re-enabling the

  handler = Ffind_file_name_handler (file, Qload);

code might be the best fix.  But does it really work?  I mean, with
byte-compile-dynamic file for example (or to find the docstrings after
loading the file)?


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 9 Feb 2013 14:53:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 09 09:53:30 2013
Received: from localhost ([127.0.0.1]:46038 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U4Bo2-00074l-2c
	for submit <at> debbugs.gnu.org; Sat, 09 Feb 2013 09:53:30 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:42844)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <handa@HIDDEN>) id 1U4Bo0-00074d-4w
	for 12598 <at> debbugs.gnu.org; Sat, 09 Feb 2013 09:53:28 -0500
Received: from 253.240.accsnet.ne.jp ([202.220.240.253]:56417 helo=mongkok)
	by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <handa@HIDDEN>)
	id 1U4Bnp-0000CM-EW; Sat, 09 Feb 2013 09:53:17 -0500
From: Kenichi Handa <handa@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
In-Reply-To: <83pq097sp3.fsf@HIDDEN> (message from Eli Zaretskii on Sat,
	09 Feb 2013 11:16:40 +0200)
Date: Sat, 09 Feb 2013 23:51:15 +0900
Message-ID: <878v6x4k2k.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, monnier@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.5 (-----)

In article <83pq097sp3.fsf@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> writes:

> See "bzr diff -c 39793".  In that revision, the SUFFIXES argument to
> openp was changed, and its handling inside openp was changed as well.
> I believe the intent was to let openp call the file handler.

But, openp just checks whether or not any handlers exist, it
doesn't call a found handler.

---
Kenichi Handa
handa@HIDDEN




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 9 Feb 2013 09:16:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 09 04:16:50 2013
Received: from localhost ([127.0.0.1]:45567 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U46YE-0006RG-CC
	for submit <at> debbugs.gnu.org; Sat, 09 Feb 2013 04:16:50 -0500
Received: from mtaout22.012.net.il ([80.179.55.172]:56384)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1U46YB-0006R8-NS
	for 12598 <at> debbugs.gnu.org; Sat, 09 Feb 2013 04:16:49 -0500
Received: from conversion-daemon.a-mtaout22.012.net.il by
	a-mtaout22.012.net.il (HyperSendmail v2007.08) id
	<0MHY0070042SW900@HIDDEN> for
	12598 <at> debbugs.gnu.org; Sat, 09 Feb 2013 11:16:38 +0200 (IST)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MHY007XL4FQQS50@HIDDEN>;
	Sat, 09 Feb 2013 11:16:38 +0200 (IST)
Date: Sat, 09 Feb 2013 11:16:40 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
In-reply-to: <87bobu3wlt.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Kenichi Handa <handa@HIDDEN>
Message-id: <83pq097sp3.fsf@HIDDEN>
References: <877gr2b2in.fsf@HIDDEN> <87bobu3wlt.fsf@HIDDEN>
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, monnier@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> From: Kenichi Handa <handa@HIDDEN>
> Date: Sat, 09 Feb 2013 14:05:50 +0900
> Cc: Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
> 
> In article <jwvwqulebdh.fsf-monnier+bug#12598@HIDDEN>, Stefan Monnier <monnier@HIDDEN> writes:
> 
> > I notice here that jka-compr-load is supposed to handle this case, but
> > was somehow not triggered.  Maybe we should fix that part.
> 
> It seems that Fload explicitly suppresses that trigger.
> 
>   /* If file name is magic, call the handler.  */
>   /* This shouldn't be necessary any more now that `openp' handles it right.
>     handler = Ffind_file_name_handler (file, Qload);
>     if (!NILP (handler))
>       return call5 (handler, Qload, file, noerror, nomessage, nosuffix); */
> 
> I don't understand the above comment (why can openp handle
> this case?)

See "bzr diff -c 39793".  In that revision, the SUFFIXES argument to
openp was changed, and its handling inside openp was changed as well.
I believe the intent was to let openp call the file handler.

> and I confirmed that loading *.elc.gz works well by enabling this
> code again.

Why doesn't it work when openp calls the same handler?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 9 Feb 2013 05:07:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 09 00:07:52 2013
Received: from localhost ([127.0.0.1]:45293 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U42fI-0000dz-Kk
	for submit <at> debbugs.gnu.org; Sat, 09 Feb 2013 00:07:52 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:34494)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <handa@HIDDEN>) id 1U42fG-0000ds-M8
	for 12598 <at> debbugs.gnu.org; Sat, 09 Feb 2013 00:07:51 -0500
Received: from 253.240.accsnet.ne.jp ([202.220.240.253]:51231 helo=mongkok)
	by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <handa@HIDDEN>)
	id 1U42f7-0003zN-VH; Sat, 09 Feb 2013 00:07:42 -0500
From: Kenichi Handa <handa@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
In-Reply-To: <jwvwqulebdh.fsf-monnier+bug#12598@HIDDEN> (message from Stefan
	Monnier on Wed, 06 Feb 2013 10:02:07 -0500)
Date: Sat, 09 Feb 2013 14:05:50 +0900
Message-ID: <87bobu3wlt.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

In article <jwvwqulebdh.fsf-monnier+bug#12598@HIDDEN>, Stefan Monnier <monnier@HIDDEN> writes:

> I notice here that jka-compr-load is supposed to handle this case, but
> was somehow not triggered.  Maybe we should fix that part.

It seems that Fload explicitly suppresses that trigger.

  /* If file name is magic, call the handler.  */
  /* This shouldn't be necessary any more now that `openp' handles it right.
    handler = Ffind_file_name_handler (file, Qload);
    if (!NILP (handler))
      return call5 (handler, Qload, file, noerror, nomessage, nosuffix); */

I don't understand the above comment (why can openp handle
this case?), and I confirmed that loading *.elc.gz works
well by enabling this code again.

---
Kenichi Handa
handa@HIDDEN




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 8 Feb 2013 17:43:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 08 12:43:54 2013
Received: from localhost ([127.0.0.1]:44570 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U3rzO-00058W-DQ
	for submit <at> debbugs.gnu.org; Fri, 08 Feb 2013 12:43:54 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:46721)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1U3rzM-00058Q-O4
	for 12598 <at> debbugs.gnu.org; Fri, 08 Feb 2013 12:43:53 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZnt/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU
X-IPAS-Result: Av4EABK/CFFFpZnt/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; 
   d="scan'208";a="792098"
Received: from 69-165-153-237.dsl.teksavvy.com (HELO pastel.home)
	([69.165.153.237])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	08 Feb 2013 12:43:47 -0500
Received: by pastel.home (Postfix, from userid 20848)
	id 9DBDB5919F; Fri,  8 Feb 2013 12:43:46 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Message-ID: <jwvfw167ldz.fsf-monnier+bug#12598@HIDDEN>
References: <877gr2b2in.fsf@HIDDEN>
Date: Fri, 08 Feb 2013 12:43:46 -0500
In-Reply-To: <877gr2b2in.fsf@HIDDEN> (Achim Gratz's message of "Sun,
	07 Oct 2012 19:44:32 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 12598
Cc: 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.5 (/)

> 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.  Messages suspiciously said
> something about "loading with code-conversion", so I assume that the the
> coding-system was not correctly recognized and the file mangled as a
> result before it reached the loader.

I've installed a workaround in the trunk, which should fix eval-buffer
such that the above now works.
I'm not sure if after loading the file, the docstrings will be correctly
found, but at least, loading the file should work.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 6 Feb 2013 15:03:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 10:03:27 2013
Received: from localhost ([127.0.0.1]:39368 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U36X0-0006W4-W9
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2013 10:03:27 -0500
Received: from pruche.dit.umontreal.ca ([132.204.246.22]:51570)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1U36Wz-0006Vx-7G
	for 12598 <at> debbugs.gnu.org; Wed, 06 Feb 2013 10:03:25 -0500
Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca
	[132.204.27.242])
	by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r16F27hL000504;
	Wed, 6 Feb 2013 10:02:07 -0500
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id A40AEB4182; Wed,  6 Feb 2013 10:02:07 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Message-ID: <jwvwqulebdh.fsf-monnier+bug#12598@HIDDEN>
References: <877gr2b2in.fsf@HIDDEN>
	<jwvr4pa137g.fsf-monnier+emacs@HIDDEN>
	<87391qavzw.fsf@HIDDEN>
Date: Wed, 06 Feb 2013 10:02:07 -0500
In-Reply-To: <87391qavzw.fsf@HIDDEN> (Achim Gratz's message of "Sun,
	07 Oct 2012 22:05:23 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV4483=0
X-NAI-Spam-Version: 2.2.0.9309 : core <4483> : streams <901582> : uri <1338222>
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 12598
Cc: 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

> Debugger entered--Lisp error: (void-variable defalias)
>   eval-buffer(#<buffer  *load*> 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)

I notice here that jka-compr-load is supposed to handle this case, but
was somehow not triggered.  Maybe we should fix that part.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 6 Feb 2013 00:49:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 05 19:49:47 2013
Received: from localhost ([127.0.0.1]:38508 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U2tCt-0002T8-8Z
	for submit <at> debbugs.gnu.org; Tue, 05 Feb 2013 19:49:47 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:42681)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <handa@HIDDEN>) id 1U2tCq-0002T1-6x
	for 12598 <at> debbugs.gnu.org; Tue, 05 Feb 2013 19:49:45 -0500
Received: from [150.29.149.7] (port=56071 helo=mongkok)
	by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <handa@HIDDEN>)
	id 1U2tBd-0004uz-Lg; Tue, 05 Feb 2013 19:48:30 -0500
From: Kenichi Handa <handa@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
In-Reply-To: <jwv6226hd6l.fsf-monnier+emacs@HIDDEN> (message from Stefan
	Monnier on Tue, 05 Feb 2013 12:43:33 -0500)
Date: Wed, 06 Feb 2013 09:46:47 +0900
Message-ID: <87halq46bs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.5 (-----)

In article <jwv6226hd6l.fsf-monnier+emacs@HIDDEN>, Stefan Monnier <monnier@HIDDEN> writes:

> > 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.

> I don't know of any case where load-source-file-function is rebound to
> something else, so it's hard to judge.

I don't know the concrete example either.  But, at least the
name and the docstring of load-source-file-function implies
that the function bound to it doesn't have to handle
compressed byte-compiled file.

---
Kenichi Handa
handa@HIDDEN




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 5 Feb 2013 17:44:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 05 12:44:50 2013
Received: from localhost ([127.0.0.1]:38183 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U2mZe-000771-9t
	for submit <at> debbugs.gnu.org; Tue, 05 Feb 2013 12:44:50 -0500
Received: from pruche.dit.umontreal.ca ([132.204.246.22]:53522)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1U2mZb-00076t-RS
	for 12598 <at> debbugs.gnu.org; Tue, 05 Feb 2013 12:44:49 -0500
Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca
	[132.204.27.242])
	by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r15HhXJk011474;
	Tue, 5 Feb 2013 12:43:33 -0500
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id 61003B4182; Tue,  5 Feb 2013 12:43:33 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Kenichi Handa <handa@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Message-ID: <jwv6226hd6l.fsf-monnier+emacs@HIDDEN>
References: <87pq0e516l.fsf@HIDDEN>
Date: Tue, 05 Feb 2013 12:43:33 -0500
In-Reply-To: <87pq0e516l.fsf@HIDDEN> (Kenichi Handa's message of "Tue, 05 Feb
	2013 22:40:18 +0900")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV4483=0
X-NAI-Spam-Version: 2.2.0.9309 : core <4483> : streams <901063> : uri <1337330>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

> 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.

I don't know of any case where load-source-file-function is rebound to
something else, so it's hard to judge.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 5 Feb 2013 13:43:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 05 08:43:25 2013
Received: from localhost ([127.0.0.1]:37404 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U2io0-0000M9-SL
	for submit <at> debbugs.gnu.org; Tue, 05 Feb 2013 08:43:25 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:58182)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <handa@HIDDEN>) id 1U2inv-0000M0-I7
	for 12598 <at> debbugs.gnu.org; Tue, 05 Feb 2013 08:43:21 -0500
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 <handa@HIDDEN>)
	id 1U2iml-0003Vb-6V; Tue, 05 Feb 2013 08:42:07 -0500
From: Kenichi Handa <handa@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
In-Reply-To: <jwv7gmpl72g.fsf-monnier+emacs@HIDDEN> (message from Stefan
	Monnier on Sun, 03 Feb 2013 11:04:47 -0500)
Date: Tue, 05 Feb 2013 22:40:18 +0900
Message-ID: <87pq0e516l.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

In article <jwv7gmpl72g.fsf-monnier+emacs@HIDDEN>, Stefan Monnier <monnier@HIDDEN> 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@HIDDEN




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 3 Feb 2013 16:08:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 03 11:08:02 2013
Received: from localhost ([127.0.0.1]:34449 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U226r-0004X1-Rx
	for submit <at> debbugs.gnu.org; Sun, 03 Feb 2013 11:08:02 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:7899)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1U226q-0004Wd-A2
	for 12598 <at> debbugs.gnu.org; Sun, 03 Feb 2013 11:08:00 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZnt/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA4hhnBmBXoMV
X-IPAS-Result: Av4EABK/CFFFpZnt/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA4hhnBmBXoMV
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; 
   d="scan'208";a="328971"
Received: from 69-165-153-237.dsl.teksavvy.com (HELO pastel.home)
	([69.165.153.237])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	03 Feb 2013 11:06:59 -0500
Received: by pastel.home (Postfix, from userid 20848)
	id 9C78359527; Sun,  3 Feb 2013 11:06:59 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Kenichi Handa <handa@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Message-ID: <jwv1ucxl6wh.fsf-monnier+emacs@HIDDEN>
References: <87vca94o6n.fsf@HIDDEN>
Date: Sun, 03 Feb 2013 11:06:59 -0500
In-Reply-To: <87vca94o6n.fsf@HIDDEN> (Kenichi Handa's message of "Sun, 03 Feb
	2013 20:44:16 +0900")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.0 (/)

>> 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.
> Should eval-buffer handle byte-compiled code in a buffer?

BTW, making it work might be nice, but it's only worth the trouble if
the result is correct.  I.e. after correctly skipping the #@NNN, we also
want to make sure that subsequent needs to load the corresponding
dynamic docstring or (or dynamic bytecode) can correctly find it.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 3 Feb 2013 16:05:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 03 11:05:51 2013
Received: from localhost ([127.0.0.1]:34445 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U224l-0004Th-2S
	for submit <at> debbugs.gnu.org; Sun, 03 Feb 2013 11:05:51 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:23693)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1U224i-0004Ta-Dy
	for 12598 <at> debbugs.gnu.org; Sun, 03 Feb 2013 11:05:48 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZnt/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA4hhnBmBXoMV
X-IPAS-Result: Av4EABK/CFFFpZnt/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA4hhnBmBXoMV
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; 
   d="scan'208";a="328905"
Received: from 69-165-153-237.dsl.teksavvy.com (HELO pastel.home)
	([69.165.153.237])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	03 Feb 2013 11:04:48 -0500
Received: by pastel.home (Postfix, from userid 20848)
	id D1B6759527; Sun,  3 Feb 2013 11:04:47 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Kenichi Handa <handa@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Message-ID: <jwv7gmpl72g.fsf-monnier+emacs@HIDDEN>
References: <87vca94o6n.fsf@HIDDEN>
Date: Sun, 03 Feb 2013 11:04:47 -0500
In-Reply-To: <87vca94o6n.fsf@HIDDEN> (Kenichi Handa's message of "Sun, 03 Feb
	2013 20:44:16 +0900")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.5 (/)

>> 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.
> 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).


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 3 Feb 2013 11:48:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 03 06:48:28 2013
Received: from localhost ([127.0.0.1]:33686 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U1y3e-00057o-7k
	for submit <at> debbugs.gnu.org; Sun, 03 Feb 2013 06:48:28 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:45278)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <handa@HIDDEN>) id 1U1y3T-00057X-Tx
	for 12598 <at> debbugs.gnu.org; Sun, 03 Feb 2013 06:48:21 -0500
Received: from 253.240.accsnet.ne.jp ([202.220.240.253]:61250 helo=mongkok)
	by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <handa@HIDDEN>)
	id 1U1y2R-0000sU-7V; Sun, 03 Feb 2013 06:47:13 -0500
From: Kenichi Handa <handa@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
In-Reply-To: <jwv4nhwrv0k.fsf-monnier+emacs@HIDDEN> (message from Stefan
	Monnier on Fri, 01 Feb 2013 09:06:45 -0500)
Date: Sun, 03 Feb 2013 20:44:16 +0900
Message-ID: <87vca94o6n.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

In article <jwv4nhwrv0k.fsf-monnier+emacs@HIDDEN>, Stefan Monnier <monnier@HIDDEN> writes:

> 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.

Should eval-buffer handle byte-compiled code in a buffer?

---
Kenichi Handa
handa@HIDDEN




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 1 Feb 2013 14:07:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 01 09:07:40 2013
Received: from localhost ([127.0.0.1]:58880 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U1HHG-0002GY-Lw
	for submit <at> debbugs.gnu.org; Fri, 01 Feb 2013 09:07:39 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:44074)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1U1HHC-0002GO-P5
	for 12598 <at> 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"
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
Received: by pastel.home (Postfix, from userid 20848)
	id 94EDD58F88; Fri,  1 Feb 2013 09:06:45 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Kenichi Handa <handa@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Message-ID: <jwv4nhwrv0k.fsf-monnier+emacs@HIDDEN>
References: <8738xg5qwx.fsf@HIDDEN>
Date: Fri, 01 Feb 2013 09:06:45 -0500
In-Reply-To: <8738xg5qwx.fsf@HIDDEN> (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)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

>> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 1 Feb 2013 09:25:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 01 04:25:52 2013
Received: from localhost ([127.0.0.1]:58612 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U1CsZ-0003Gj-U7
	for submit <at> debbugs.gnu.org; Fri, 01 Feb 2013 04:25:52 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:50479)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <handa@HIDDEN>) id 1U1CsX-0003Gb-T8
	for 12598 <at> debbugs.gnu.org; Fri, 01 Feb 2013 04:25:51 -0500
Received: from 253.240.accsnet.ne.jp ([202.220.240.253]:64616 helo=mongkok)
	by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <handa@HIDDEN>)
	id 1U1Crl-0002Bl-Rt; Fri, 01 Feb 2013 04:25:02 -0500
From: Kenichi Handa <handa@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
In-Reply-To: <jwvmwvpgrcg.fsf-monnier+bug#12598@HIDDEN> (message from Stefan
	Monnier on Thu, 31 Jan 2013 13:15:20 -0500)
Date: Fri, 01 Feb 2013 18:23:10 +0900
Message-ID: <8738xg5qwx.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: 12598
Cc: Stromeko@HIDDEN, 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.1 (-----)

In article <jwvmwvpgrcg.fsf-monnier+bug#12598@HIDDEN>, Stefan Monnier <monnier@HIDDEN> writes:

> I think the problem lies between load-with-code-conversion and
> eval-buffer, so it dates back to the introduction of
> load-with-code-conversion, which IIRC predates the internal use
> of Unicode.

> 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?

---
Kenichi Handa
handa@HIDDEN





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 Jan 2013 18:38:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 31 13:38:55 2013
Received: from localhost ([127.0.0.1]:57942 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U0z2F-0005d9-Dk
	for submit <at> debbugs.gnu.org; Thu, 31 Jan 2013 13:38:55 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43456)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1U0z2C-0005d2-T8
	for submit <at> debbugs.gnu.org; Thu, 31 Jan 2013 13:38:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1U0z1U-0003M1-42
	for submit <at> debbugs.gnu.org; Thu, 31 Jan 2013 13:38:09 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-102.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE,
	RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:60588)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1U0z1T-0003Lw-RK
	for submit <at> debbugs.gnu.org; Thu, 31 Jan 2013 13:38:08 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54794)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1U0z1R-0003kD-SC
	for bug-gnu-emacs@HIDDEN; Thu, 31 Jan 2013 13:38:07 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1U0z1O-0003Ka-AS
	for bug-gnu-emacs@HIDDEN; Thu, 31 Jan 2013 13:38:05 -0500
Received: from plane.gmane.org ([80.91.229.3]:34248)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1U0z1O-0003KM-44
	for bug-gnu-emacs@HIDDEN; Thu, 31 Jan 2013 13:38:02 -0500
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1U0z1f-0006iw-5Y
	for bug-gnu-emacs@HIDDEN; Thu, 31 Jan 2013 19:38:19 +0100
Received: from pd9eb451f.dip.t-dialin.net ([217.235.69.31])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Thu, 31 Jan 2013 19:38:19 +0100
Received: from Stromeko by pd9eb451f.dip.t-dialin.net with local (Gmexim 0.1
	(Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Thu, 31 Jan 2013 19:38:19 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Date: Thu, 31 Jan 2013 19:37:41 +0100
Organization: Linux Private Site
Lines: 26
Message-ID: <87ehh1urka.fsf@HIDDEN>
References: <877gr2b2in.fsf@HIDDEN>
	<jwvr4pa137g.fsf-monnier+emacs@HIDDEN>
	<87391qavzw.fsf@HIDDEN> <m2r4pagf0g.fsf@HIDDEN>
	<87bogdy1rv.fsf@HIDDEN> <877gr1y16v.fsf@HIDDEN>
	<jwvmwvpgrcg.fsf-monnier+bug#12598@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: pd9eb451f.dip.t-dialin.net
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux)
Cancel-Lock: sha1:NDZum0urYBLSDTkmHovsazCLD+c=
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.x
X-Received-From: 208.118.235.17
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

Stefan Monnier writes:
> I can't reproduce this problem for the .el.gz case (indeed, I think
> it's specific to byte-compiled files).

I would have to try and re-create the problem, but it may be the case
that the problem only affects the byte-compiled files.

[…]
> 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'.

I'm not sure I can follow you, especially what the purpose of saving to
a temporary file is.  As I said, I haven't looked at this for quite some
time.  If you think it helps, I'll try to set up for reproducing this
again.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 31 Jan 2013 18:16:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 31 13:16:08 2013
Received: from localhost ([127.0.0.1]:57923 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U0ygC-00057S-0X
	for submit <at> debbugs.gnu.org; Thu, 31 Jan 2013 13:16:08 -0500
Received: from chene.dit.umontreal.ca ([132.204.246.20]:54789)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1U0yg9-00057K-QQ
	for 12598 <at> debbugs.gnu.org; Thu, 31 Jan 2013 13:16:07 -0500
Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca
	[132.204.27.242])
	by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r0VIFLSp023782; 
	Thu, 31 Jan 2013 13:15:21 -0500
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id 1679AB4182; Thu, 31 Jan 2013 13:15:21 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Message-ID: <jwvmwvpgrcg.fsf-monnier+bug#12598@HIDDEN>
References: <877gr2b2in.fsf@HIDDEN>
	<jwvr4pa137g.fsf-monnier+emacs@HIDDEN>
	<87391qavzw.fsf@HIDDEN> <m2r4pagf0g.fsf@HIDDEN>
	<87bogdy1rv.fsf@HIDDEN> <877gr1y16v.fsf@HIDDEN>
Date: Thu, 31 Jan 2013 13:15:20 -0500
In-Reply-To: <877gr1y16v.fsf@HIDDEN> (Achim Gratz's message of "Mon,
	08 Oct 2012 07:36:56 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV4478=0
X-NAI-Spam-Version: 2.2.0.9309 : core <4478> : streams <898187> : uri <1333068>
X-Spam-Score: -0.9 (/)
X-Debbugs-Envelope-To: 12598
Cc: 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.2 (--)

> 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

I can't reproduce this problem for the .el.gz case (indeed, I think
it's specific to byte-compiled files).

> So, any codepoint that is more than a single byte will throw the
> byte-compiler off, not just any utf-8 codepoint.  Since this has been in
> Emacs likely ever since unicode strings have been introduced, I'd
> suggest adding a *strong* warning in some prominent place in the
> documentation about this even when it gets fixed in a newer version of
> Emacs. Otherwise it's all too easy to produce libraries that have
> mysterious failures depending on whatever Emacs was used to compile or
> run them.

I think the problem lies between load-with-code-conversion and
eval-buffer, so it dates back to the introduction of
load-with-code-conversion, which IIRC predates the internal use
of Unicode.

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'.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Oct 2012 05:37:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 08 01:37:58 2012
Received: from localhost ([127.0.0.1]:60605 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TL62P-0001mS-Rr
	for submit <at> debbugs.gnu.org; Mon, 08 Oct 2012 01:37:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56301)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL62N-0001mE-FQ
	for submit <at> debbugs.gnu.org; Mon, 08 Oct 2012 01:37:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL61r-00056x-K1
	for submit <at> debbugs.gnu.org; Mon, 08 Oct 2012 01:37:24 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:55881)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL61r-00056t-HB
	for submit <at> debbugs.gnu.org; Mon, 08 Oct 2012 01:37:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45824)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL61q-0003Ga-HD
	for bug-gnu-emacs@HIDDEN; Mon, 08 Oct 2012 01:37:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL61p-00056Z-Ar
	for bug-gnu-emacs@HIDDEN; Mon, 08 Oct 2012 01:37:22 -0400
Received: from plane.gmane.org ([80.91.229.3]:38987)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL61p-00056V-4a
	for bug-gnu-emacs@HIDDEN; Mon, 08 Oct 2012 01:37:21 -0400
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL61k-0001vd-LE
	for bug-gnu-emacs@HIDDEN; Mon, 08 Oct 2012 07:37:16 +0200
Received: from pd9eb4824.dip.t-dialin.net ([217.235.72.36])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Mon, 08 Oct 2012 07:37:16 +0200
Received: from Stromeko by pd9eb4824.dip.t-dialin.net with local (Gmexim 0.1
	(Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Mon, 08 Oct 2012 07:37:16 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Date: Mon, 08 Oct 2012 07:36:56 +0200
Organization: Linux Private Site
Lines: 29
Message-ID: <877gr1y16v.fsf@HIDDEN>
References: <877gr2b2in.fsf@HIDDEN>
	<jwvr4pa137g.fsf-monnier+emacs@HIDDEN>
	<87391qavzw.fsf@HIDDEN> <m2r4pagf0g.fsf@HIDDEN>
	<87bogdy1rv.fsf@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: pd9eb4824.dip.t-dialin.net
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Cancel-Lock: sha1:zSF2NhJS8V+Ycx2vjR/dRUBT7dQ=
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-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

Achim Gratz writes:
> Andreas Schwab writes:
>>> Debugger entered--Lisp error: (void-variable defalias)
>>
>> That's because #@N counts in bytes, not characters.
>
> I know, that's why I used goto-char to locate the place in org.elc and
> then the correspoding definition in org.el.

I've just decoded what you were telling me with that one-liner.
Disregard what I wrote above, not enough coffee yet…

So, any codepoint that is more than a single byte will throw the
byte-compiler off, not just any utf-8 codepoint.  Since this has been in
Emacs likely ever since unicode strings have been introduced, I'd
suggest adding a *strong* warning in some prominent place in the
documentation about this even when it gets fixed in a newer version of
Emacs. Otherwise it's all too easy to produce libraries that have
mysterious failures depending on whatever Emacs was used to compile or
run them.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Oct 2012 05:25:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 08 01:25:16 2012
Received: from localhost ([127.0.0.1]:60599 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TL5q7-0001T3-VW
	for submit <at> debbugs.gnu.org; Mon, 08 Oct 2012 01:25:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49200)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL5q4-0001Sr-S2
	for submit <at> debbugs.gnu.org; Mon, 08 Oct 2012 01:25:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL5pZ-00016Q-2l
	for submit <at> debbugs.gnu.org; Mon, 08 Oct 2012 01:24:41 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:55674)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL5pZ-00016M-0C
	for submit <at> debbugs.gnu.org; Mon, 08 Oct 2012 01:24:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46845)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL5pY-0002Fa-4y
	for bug-gnu-emacs@HIDDEN; Mon, 08 Oct 2012 01:24:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL5pX-00016C-04
	for bug-gnu-emacs@HIDDEN; Mon, 08 Oct 2012 01:24:40 -0400
Received: from plane.gmane.org ([80.91.229.3]:32793)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL5pW-000168-Ph
	for bug-gnu-emacs@HIDDEN; Mon, 08 Oct 2012 01:24:38 -0400
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TL5pb-00068T-9F
	for bug-gnu-emacs@HIDDEN; Mon, 08 Oct 2012 07:24:43 +0200
Received: from pd9eb4824.dip.t-dialin.net ([217.235.72.36])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Mon, 08 Oct 2012 07:24:43 +0200
Received: from Stromeko by pd9eb4824.dip.t-dialin.net with local (Gmexim 0.1
	(Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Mon, 08 Oct 2012 07:24:43 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Date: Mon, 08 Oct 2012 07:24:20 +0200
Organization: Linux Private Site
Lines: 16
Message-ID: <87bogdy1rv.fsf@HIDDEN>
References: <877gr2b2in.fsf@HIDDEN>
	<jwvr4pa137g.fsf-monnier+emacs@HIDDEN>
	<87391qavzw.fsf@HIDDEN> <m2r4pagf0g.fsf@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: pd9eb4824.dip.t-dialin.net
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Cancel-Lock: sha1:SVJREC9AVimLVCbZdIOxDqNf5ts=
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-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

Andreas Schwab writes:
>> Debugger entered--Lisp error: (void-variable defalias)
>
> That's because #@N counts in bytes, not characters.

I know, that's why I used goto-char to locate the place in org.elc and
then the correspoding definition in org.el.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 7 Oct 2012 21:16:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 07 17:16:12 2012
Received: from localhost ([127.0.0.1]:60410 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TKyCp-0006DR-Py
	for submit <at> debbugs.gnu.org; Sun, 07 Oct 2012 17:16:12 -0400
Received: from mail-out.m-online.net ([212.18.0.9]:54388)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <whitebox@HIDDEN>) id 1TKyCn-0006DJ-27
	for 12598 <at> debbugs.gnu.org; Sun, 07 Oct 2012 17:16:10 -0400
Received: from frontend1.mail.m-online.net (unknown [192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id 3XZctm0c4Jz4KK6s;
	Sun,  7 Oct 2012 23:15:43 +0200 (CEST)
X-Auth-Info: SsYRuxXmGEymrxLegO5F5f2nuX7G4bTNS6ch5NzpU/E=
Received: from igel.home (ppp-93-104-139-74.dynamic.mnet-online.de
	[93.104.139.74])
	by mail.mnet-online.de (Postfix) with ESMTPA id 3XZctl6C4hzbbcr;
	Sun,  7 Oct 2012 23:15:43 +0200 (CEST)
Received: by igel.home (Postfix, from userid 501)
	id 54B79CA2A4; Sun,  7 Oct 2012 23:15:43 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
References: <877gr2b2in.fsf@HIDDEN>
	<jwvr4pa137g.fsf-monnier+emacs@HIDDEN>
	<87391qavzw.fsf@HIDDEN>
X-Yow: You mean now I can SHOOT YOU in the back and further BLUR
	th' distinction between FANTASY and REALITY?
Date: Sun, 07 Oct 2012 23:15:43 +0200
In-Reply-To: <87391qavzw.fsf@HIDDEN> (Achim Gratz's message of "Sun,
	07 Oct 2012 22:05:23 +0200")
Message-ID: <m2r4pagf0g.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 12598
Cc: 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: 0.8 (/)

Achim Gratz <Stromeko@HIDDEN> writes:

> 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)

That's because #@N counts in bytes, not characters.

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Oct 2012 20:06:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 07 16:06:14 2012
Received: from localhost ([127.0.0.1]:60366 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TKx77-0004YY-P5
	for submit <at> debbugs.gnu.org; Sun, 07 Oct 2012 16:06:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48937)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TKx75-0004YM-6q
	for submit <at> debbugs.gnu.org; Sun, 07 Oct 2012 16:06:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TKx6b-0007Vh-CX
	for submit <at> debbugs.gnu.org; Sun, 07 Oct 2012 16:05:42 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:55077)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TKx6b-0007Vd-9T
	for submit <at> debbugs.gnu.org; Sun, 07 Oct 2012 16:05:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43147)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TKx6a-0007r7-8B
	for bug-gnu-emacs@HIDDEN; Sun, 07 Oct 2012 16:05:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TKx6Y-0007Uh-GV
	for bug-gnu-emacs@HIDDEN; Sun, 07 Oct 2012 16:05:40 -0400
Received: from plane.gmane.org ([80.91.229.3]:40852)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TKx6Y-0007O9-9s
	for bug-gnu-emacs@HIDDEN; Sun, 07 Oct 2012 16:05:38 -0400
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1TKx6a-0000FC-Ix
	for bug-gnu-emacs@HIDDEN; Sun, 07 Oct 2012 22:05:40 +0200
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 <bug-gnu-emacs@HIDDEN>; Sun, 07 Oct 2012 22:05:40 +0200
Received: from Stromeko by pd9eb47af.dip.t-dialin.net with local (Gmexim 0.1
	(Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Sun, 07 Oct 2012 22:05:40 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: 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
Lines: 34
Message-ID: <87391qavzw.fsf@HIDDEN>
References: <877gr2b2in.fsf@HIDDEN>
	<jwvr4pa137g.fsf-monnier+emacs@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: usenet@HIDDEN
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-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

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(#<buffer  *load*> 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





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at 12598 <at> debbugs.gnu.org:


Received: (at 12598) by debbugs.gnu.org; 7 Oct 2012 19:40:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 07 15:40:51 2012
Received: from localhost ([127.0.0.1]:60354 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TKwiY-0003zI-UO
	for submit <at> debbugs.gnu.org; Sun, 07 Oct 2012 15:40:51 -0400
Received: from chene.dit.umontreal.ca ([132.204.246.20]:35201)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1TKwiX-0003zB-HM
	for 12598 <at> debbugs.gnu.org; Sun, 07 Oct 2012 15:40:49 -0400
Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca
	[132.204.27.242])
	by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q97JeOxf004550; 
	Sun, 7 Oct 2012 15:40:25 -0400
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
	id A72FCAE3A5; Sun,  7 Oct 2012 15:40:22 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#12598: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Message-ID: <jwvr4pa137g.fsf-monnier+emacs@HIDDEN>
References: <877gr2b2in.fsf@HIDDEN>
Date: Sun, 07 Oct 2012 15:40:22 -0400
In-Reply-To: <877gr2b2in.fsf@HIDDEN> (Achim Gratz's message of "Sun,
	07 Oct 2012 19:44:32 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -3.0 (---)
X-Debbugs-Envelope-To: 12598
Cc: 12598 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.0 (---)

> 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?


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Oct 2012 17:45:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 07 13:45:17 2012
Received: from localhost ([127.0.0.1]:60270 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TKuui-0001Ko-Ok
	for submit <at> debbugs.gnu.org; Sun, 07 Oct 2012 13:45:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35737)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <Stromeko@HIDDEN>) id 1TKuug-0001KZ-1X
	for submit <at> debbugs.gnu.org; Sun, 07 Oct 2012 13:45:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Stromeko@HIDDEN>) id 1TKuuD-0001gh-4D
	for submit <at> debbugs.gnu.org; Sun, 07 Oct 2012 13:44:45 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,
	T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:38692)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Stromeko@HIDDEN>) id 1TKuuD-0001gX-12
	for submit <at> debbugs.gnu.org; Sun, 07 Oct 2012 13:44:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51499)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Stromeko@HIDDEN>) id 1TKuuB-0007AZ-Rn
	for bug-gnu-emacs@HIDDEN; Sun, 07 Oct 2012 13:44:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Stromeko@HIDDEN>) id 1TKuuA-0001gJ-NR
	for bug-gnu-emacs@HIDDEN; Sun, 07 Oct 2012 13:44:43 -0400
Received: from mail-in-01.arcor-online.net ([151.189.21.41]:41165)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Stromeko@HIDDEN>) id 1TKuuA-0001eg-D6
	for bug-gnu-emacs@HIDDEN; Sun, 07 Oct 2012 13:44:42 -0400
Received: from mail-in-11-z2.arcor-online.net (mail-in-11-z2.arcor-online.net
	[151.189.8.28]) by mx.arcor.de (Postfix) with ESMTP id 332C95A466
	for <bug-gnu-emacs@HIDDEN>; Sun,  7 Oct 2012 19:44:39 +0200 (CEST)
Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net
	[151.189.21.46])
	by mail-in-11-z2.arcor-online.net (Postfix) with ESMTP id 28A547FE4AB
	for <bug-gnu-emacs@HIDDEN>; Sun,  7 Oct 2012 19:44:39 +0200 (CEST)
Received: from Rainer.invalid (pD9EB2B58.dip.t-dialin.net [217.235.43.88])
	(Authenticated sender: stromeko@HIDDEN)
	by mail-in-06.arcor-online.net (Postfix) with ESMTPSA id 049ED10C3C6
	for <bug-gnu-emacs@HIDDEN>; Sun,  7 Oct 2012 19:44:38 +0200 (CEST)
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-06.arcor-online.net 049ED10C3C6
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nexgo.de; s=mail-in;
	t=1349631879; bh=LEwZJAgMrEvDY9YDlWH2PUZptwFPN8TfHtnqmAimlPY=;
	h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type;
	b=BSSYupD/MipV9++u3n6xkvt+QdHXt1UllNON7Lwfz3qKcRRT1YHtjEjVqffHlJ7aw
	3LP79Ie4Phciy/zG4nsxDY9bZoIZsFb/lOze3yeDXMVH2Tc84lVntYQj5zSHtSzPgr
	ih2CP0JHdZwf+Orr8lS5XFoHlOqg68Fue8rzE1Xw=
From: Achim Gratz <Stromeko@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.2;
	utf-8 codepoints in doc-strings and compression of .el and .elc files
Date: Sun, 07 Oct 2012 19:44:32 +0200
Message-ID: <877gr2b2in.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

In GNU Emacs 24.2.1 (i686-suse-linux-gnu, GTK+ Version 3.4.4)
 of 2012-09-30 on Rainer

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.  Messages suspiciously said
something about "loading with code-conversion", so I assume that the the
coding-system was not correctly recognized and the file mangled as a
result before it reached the loader.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves




Acknowledgement sent to Achim Gratz <Stromeko@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#12598; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.