From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: defvar inside let-binding Date: Tue, 02 Aug 2011 15:22:35 -0400 Message-ID: References: <87sjq7pq14.fsf@yun.yagibdah.de> <1ztyanqxv5.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1312312968 16370 80.91.229.12 (2 Aug 2011 19:22:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2011 19:22:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 02 21:22:44 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QoKY8-0005xc-C1 for ged-emacs-devel@m.gmane.org; Tue, 02 Aug 2011 21:22:44 +0200 Original-Received: from localhost ([::1]:58060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoKY7-0005wV-Or for ged-emacs-devel@m.gmane.org; Tue, 02 Aug 2011 15:22:43 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoKY5-0005wQ-QQ for emacs-devel@gnu.org; Tue, 02 Aug 2011 15:22:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoKY4-0002Gm-W1 for emacs-devel@gnu.org; Tue, 02 Aug 2011 15:22:41 -0400 Original-Received: from relais.videotron.ca ([24.201.245.36]:31219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoKY4-0002Ga-TB for emacs-devel@gnu.org; Tue, 02 Aug 2011 15:22:40 -0400 Original-Received: from ceviche.home ([70.80.89.35]) by vl-mr-mrz22.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTP id <0LPB008KDF5SQIQ0@vl-mr-mrz22.ip.videotron.ca> for emacs-devel@gnu.org; Tue, 02 Aug 2011 15:22:40 -0400 (EDT) Original-Received: by ceviche.home (Postfix, from userid 20848) id 070A0660CF; Tue, 02 Aug 2011 15:22:35 -0400 (EDT) In-reply-to: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 24.201.245.36 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:142743 Archived-At: > Since `defcustom' seems to be purely Emacs Lisp, and I don't think this > data is available on the Emacs Lisp level (am I wrong?), perhaps just > creating a C-level function `symbol-let-bound-p' (or something) would > allow us to issue the warning, as a first step? Yes. Tho the "next" step you suggested (to cause defvar to change the outer let-binding) will require another such function and will make symbol-let-bound-p unneeded. Stefan