GNU bug report logs - #16153
24.3.50; (gv-ref (car (cdr x))) => strange expression

Previous Next

Package: emacs;

Reported by: michael_heerdegen <at> web.de

Date: Sun, 15 Dec 2013 06:30:03 UTC

Severity: minor

Tags: notabug

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16153 in the body.
You can then email your comments to 16153 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16153; Package emacs. (Sun, 15 Dec 2013 06:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to michael_heerdegen <at> web.de:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 15 Dec 2013 06:30:06 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; (gv-ref (car (cdr x))) => strange expression
Date: Sun, 15 Dec 2013 07:29:05 +0100
Hi,

Sorry if I speak nonsense, but that doesn't make sense to me:

(setq x '(1 (2 3) 4))

(setq ref (gv-ref (car (cdr x))))

  ==>
  
   ((lambda nil
     (car #1=#:v))
    lambda
    (gv--val)
    (setcar #1# gv--val))


(gv-deref ref)

Symbol's value as variable is void: #:v

Seems like `gv-letplace' is constructing an illegitimate expression with
a free variable here.


Regards,

Michael.




In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.4)
 of 2013-11-13 on drachen
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
System Description:	Debian GNU/Linux testing (jessie)

Configured using:
 `configure --prefix=/usr/local/built/'

Important settings:
  value of $LC_ALL: de_DE.utf8
  value of $LC_COLLATE: C
  value of $LC_TIME: C
  value of $LANG: de_DE.utf8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16153; Package emacs. (Sun, 15 Dec 2013 06:52:01 GMT) Full text and rfc822 format available.

Message #8 received at 16153 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: 16153 <at> debbugs.gnu.org
Subject: Re: bug#16153: 24.3.50; (gv-ref (car (cdr x))) => strange expression
Date: Sun, 15 Dec 2013 07:51:16 +0100
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> Symbol's value as variable is void: #:v

Oh, let me add that this doesn't happen with lexical-binding.  But I
guess it should work for dynamic binding as well.


Regards,

Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16153; Package emacs. (Sun, 15 Dec 2013 13:03:02 GMT) Full text and rfc822 format available.

Message #11 received at 16153 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 16153 <at> debbugs.gnu.org
Subject: Re: bug#16153: 24.3.50; (gv-ref (car (cdr x))) => strange expression
Date: Sun, 15 Dec 2013 08:02:47 -0500
>> Symbol's value as variable is void: #:v
> Oh, let me add that this doesn't happen with lexical-binding.  But I
> guess it should work for dynamic binding as well.

In general, `gv-ref' only works with lexical-binding.


        Stefan




Severity set to 'minor' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 15 Dec 2013 19:49:02 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 15 Dec 2013 19:49:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16153; Package emacs. (Mon, 16 Dec 2013 00:33:01 GMT) Full text and rfc822 format available.

Message #18 received at 16153 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 16153 <at> debbugs.gnu.org
Subject: Re: bug#16153: 24.3.50; (gv-ref (car (cdr x))) => strange expression
Date: Mon, 16 Dec 2013 01:32:41 +0100
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:

> In general, `gv-ref' only works with lexical-binding.

I see.  Maybe say this somewhere - in the doc string, or at least in the
source code.  It's IMHO not obvious (or is it?).


Thanks,

Michael.




Reply sent to Stefan Monnier <monnier <at> IRO.UMontreal.CA>:
You have taken responsibility. (Mon, 16 Dec 2013 19:13:02 GMT) Full text and rfc822 format available.

Notification sent to michael_heerdegen <at> web.de:
bug acknowledged by developer. (Mon, 16 Dec 2013 19:13:02 GMT) Full text and rfc822 format available.

Message #23 received at 16153-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 16153-done <at> debbugs.gnu.org
Subject: Re: bug#16153: 24.3.50; (gv-ref (car (cdr x))) => strange expression
Date: Mon, 16 Dec 2013 14:11:55 -0500
>> In general, `gv-ref' only works with lexical-binding.
> I see.  Maybe say this somewhere - in the doc string, or at least in the
> source code.  It's IMHO not obvious (or is it?).

I added a note in the docstring, thank you,


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 14 Jan 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 162 days ago.

Previous Next


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