From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Joe Riel <joer@san.rr.com>
Newsgroups: gmane.emacs.help
Subject: Docstring prevents constant from being fully byte-compiled
Date: Sun, 10 Mar 2013 23:26:47 -0700
Message-ID: <20130310232647.6475b4d1@gauss>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1362983225 529 80.91.229.3 (11 Mar 2013 06:27:05 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 11 Mar 2013 06:27:05 +0000 (UTC)
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 11 07:27:30 2013
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-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 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1UEwCn-00074x-RG
	for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Mar 2013 07:27:29 +0100
Original-Received: from localhost ([::1]:33453 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1UEwCR-0001me-Kg
	for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Mar 2013 02:27:07 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:42702)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <joer@san.rr.com>) id 1UEwCH-0001mO-OZ
	for help-gnu-emacs@gnu.org; Mon, 11 Mar 2013 02:26:58 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joer@san.rr.com>) id 1UEwCG-0001AG-Hn
	for help-gnu-emacs@gnu.org; Mon, 11 Mar 2013 02:26:57 -0400
Original-Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.120]:46021)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <joer@san.rr.com>) id 1UEwCG-00019v-De
	for help-gnu-emacs@gnu.org; Mon, 11 Mar 2013 02:26:56 -0400
X-Authority-Analysis: v=2.0 cv=XL2yuHdE c=1 sm=0 a=GGzZdJT2oJO+GUpSCk/8YQ==:17
	a=A67dEwaWxOsA:10 a=NUmaSLG5ckkA:10 a=05ChyHeVI94A:10
	a=8nJEP1OIZ-IA:10 a=ayC55rCoAAAA:8 a=nvSp4bPu4yUA:10
	a=IT9A1ugRRHjsCOus7AQA:9 a=wPNLvfGTeEIA:10
	a=GGzZdJT2oJO+GUpSCk/8YQ==:117
X-Cloudmark-Score: 0
X-Authenticated-User: 
X-Originating-IP: 66.75.5.27
Original-Received: from [66.75.5.27] ([66.75.5.27:47348] helo=gauss)
	by cdptpa-oedge04.mail.rr.com (envelope-from <joer@san.rr.com>)
	(ecelerity 2.2.3.46 r()) with ESMTP
	id 25/17-25887-C297D315; Mon, 11 Mar 2013 06:26:53 +0000
X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-pc-linux-gnu)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 75.180.132.120
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.help:89467
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/89467>

Byte-compile the following (Emacs 23.3.1)

(defconst A "A")
(defconst B "B")
(defconst AB1
  (concat constA constB))
(defconst AB2
  (concat constA constB)
  "docstring")

I get

(byte-code "\303=08B=10\304\305!\210\306=08B=10\307\310!\210\311=08B=10\312=
	\nP!\207" [current-load-list constA constB A (lambda (#1=3D#:defconst-tmp-=
var) (defconst A #1#)) "A" B (lambda (#2=3D#:defconst-tmp-var) (defconst B =
#2#)) "B" AB1 (lambda (#3=3D#:defconst-tmp-var) (defconst AB1 #3#))] 3)
#@11 docstring=1F
(defconst AB2 (concat constA constB) (#$ . 800))

Note that AB2 retains the original (non-byte-compiled) definition, while AB=
1 does not. =20
Is that actually the case?  Is AB2 byte-compiled, or not?
Why does the presence of the docstring make a difference?


--=20
Joe Riel