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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: michael_heerdegen <at> web.de
Subject: bug#16153: closed (Re: bug#16153: 24.3.50; (gv-ref (car (cdr x)))
 => strange expression)
Date: Mon, 16 Dec 2013 19:13:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#16153: 24.3.50; (gv-ref (car (cdr x))) => strange expression

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 16153 <at> debbugs.gnu.org.

-- 
16153: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16153
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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

[Message part 3 (message/rfc822, inline)]
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



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.