From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Sun, 15 Mar 2015 05:46:02 -0500 Message-ID: <85mw3etu6t.fsf@stephe-leake.org> References: <83sie7un20.fsf@gnu.org> <54E0D181.2080802@dancol.org> <83r3trulse.fsf@gnu.org> <54E0D7E0.305@87.69.4.28> <83h9unukbg.fsf@gnu.org> <54E0DEF8.7020901@dancol> <83egpruiyp.fsf@gnu.org> <54E0FF93.2000104@dancol.org> <833865vp4d.fsf@gnu.org> <54E2355A.90@87.69.4.28> <83vbj1u020.fsf@gnu.org> <54E24CA4.9020601@dancol.org> <83h9uk7ddb.fsf@gnu.org> <54E382A5.5030408@dancol.org> <85d24n6pnp.fsf@stephe-leake.org> <85lhj0g7yy.fsf@stephe-leake.org> <878uf0yc9r.fsf@violet.siamics.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1426416406 6584 80.91.229.3 (15 Mar 2015 10:46:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Mar 2015 10:46:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 15 11:46:41 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YX648-0000J8-R1 for ged-emacs-devel@m.gmane.org; Sun, 15 Mar 2015 11:46:40 +0100 Original-Received: from localhost ([::1]:42987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YX647-0004r2-KT for ged-emacs-devel@m.gmane.org; Sun, 15 Mar 2015 06:46:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YX63u-0004qk-Hv for emacs-devel@gnu.org; Sun, 15 Mar 2015 06:46:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YX63r-0005Gh-By for emacs-devel@gnu.org; Sun, 15 Mar 2015 06:46:26 -0400 Original-Received: from gproxy9-pub.mail.unifiedlayer.com ([69.89.20.122]:41322) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YX63r-00055N-4P for emacs-devel@gnu.org; Sun, 15 Mar 2015 06:46:23 -0400 Original-Received: (qmail 16091 invoked by uid 0); 15 Mar 2015 10:46:17 -0000 Original-Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy9.mail.unifiedlayer.com with SMTP; 15 Mar 2015 10:46:17 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw3 with id 3smA1q00M2UdiVW01smDrE; Sun, 15 Mar 2015 10:46:16 -0600 X-Authority-Analysis: v=2.1 cv=TeEF63gh c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=2wGvvwaKUHMA:10 a=IkcTkHD0fZMA:10 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=jrwKn-8xaegA:10 a=emO1SXQWCLwA:10 a=wyPSoeumAAAA:8 a=FeJiGW15XCgF4zk_HHsA:9 a=OTvTMngJn3HjHlDi:21 a=Gkmii2wCRhIYgdXm:21 a=QEXdDO2ut3YA:10 Original-Received: from [70.94.38.149] (port=51599 helo=TAKVER) by host114.hostmonster.com with esmtpa (Exim 4.82) (envelope-from ) id 1YX63g-000723-2Q for emacs-devel@gnu.org; Sun, 15 Mar 2015 04:46:12 -0600 In-Reply-To: <878uf0yc9r.fsf@violet.siamics.net> (Ivan Shmakov's message of "Fri, 13 Mar 2015 18:37:20 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 70.94.38.149 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.20.122 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183875 Archived-At: Ivan Shmakov writes: >>>>>> Stephen Leake writes: > > [=E2=80=A6] > > > However, when I try to access an elisp vector, it fails: > > [=E2=80=A6] > > > emacs_value names =3D env->intern (env, "ada_grammar-names"); > > emacs_value args[] =3D { names }; > > int64_t names_length =3D env->fixnum_to_int (env, env->funcall (env, l= ength, 1, args)); > > Isn=E2=80=99t the above essentially (length 'ada_grammar-names)? Or, > verbosely speaking: > > (let* ((length (intern "length")) > (names (intern "ada_grammar-names")) > (names-length (funcall length names))) > =E2=80=A6) > > (That is, the code above wants to apply 'length to the /value/ > of a variable =E2=80=93 not its /name/.) Yes, that's it. Fixed by adding a call to 'symbol-value'. It might be good to add a C-level env->symbol_value for this purpose. Thanks, --=20 -- Stephe