unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: defvar inside let-binding
Date: Mon, 18 Jul 2011 12:18:58 -0400	[thread overview]
Message-ID: <jwvd3h7y36k.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m38vrvisbg.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Mon, 18 Jul 2011 16:20:19 +0200")

>> Of course, another problem is that in the case of defcustom we don't
>> even detect the problem.
> I'm not sure I follow you there...

defcustom works differently from defvar and doesn't use defvar
(e.g. because it may not even define a real variable: the "var" may
simply only be available through accessor/setter functions) and since
the current code that detects a "defvar within let" is written in C code
in Fdefvar, it doesn't apply to defcustom.


        Stefan



  reply	other threads:[~2011-07-18 16:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87sjq7pq14.fsf@yun.yagibdah.de>
     [not found] ` <1ztyanqxv5.fsf@fencepost.gnu.org>
     [not found]   ` <m3hb6nct3e.fsf@quimbies.gnus.org>
2011-07-18 14:03     ` defvar inside let-binding (was: bug#9090: 24.0.50; void-variable jka-compr-verbose) Stefan Monnier
2011-07-18 14:20       ` defvar inside let-binding Lars Magne Ingebrigtsen
2011-07-18 16:18         ` Stefan Monnier [this message]
2011-07-19 16:14           ` Lars Magne Ingebrigtsen
2011-08-01 21:20             ` Stefan Monnier
2011-08-02 13:42               ` Lars Magne Ingebrigtsen
2011-08-02 19:22                 ` Stefan Monnier
2011-08-02 19:56                   ` Lars Magne Ingebrigtsen
2011-08-02 20:47                     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvd3h7y36k.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).