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: Possible defvar bug Date: Tue, 19 Feb 2013 19:08:49 -0500 Message-ID: References: <87d2vxr8h6.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361318935 29844 80.91.229.3 (20 Feb 2013 00:08:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 00:08:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 20 01:09:18 2013 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 1U7xFN-0001tl-FQ for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2013 01:09:17 +0100 Original-Received: from localhost ([::1]:53646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7xF3-0002wY-0T for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2013 19:08:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7xEz-0002vQ-ES for emacs-devel@gnu.org; Tue, 19 Feb 2013 19:08:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7xEx-0005g1-E5 for emacs-devel@gnu.org; Tue, 19 Feb 2013 19:08:53 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:26719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7xEx-0005ft-A5; Tue, 19 Feb 2013 19:08:51 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFsoXXp/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBrEfkA6RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFsoXXp/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBrEfkA6RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="1776343" Original-Received: from 108-161-117-233.dsl.teksavvy.com (HELO pastel.home) ([108.161.117.233]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 19 Feb 2013 19:08:49 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 0E35B6D7F4; Tue, 19 Feb 2013 19:08:49 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Tue, 19 Feb 2013 18:29:50 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:157178 Archived-At: > defvar already gives a message for it (but defcustom doesn't). > 1. defcustom could handle it like defvar. IIRC it's not easy to do. > 2. It could be an error rather than a mere message. Not sure if it would be better. Another option is to change defvar so that it changes the specpdl entry when the var is let-bound (i.e. so that the default is set when we leave the let, as if it had been set before). Stefan