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: Is setq-default within a dynamic let-binding supposed to work? Date: Wed, 04 Feb 2015 23:10:35 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423109460 14937 80.91.229.3 (5 Feb 2015 04:11:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 04:11:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kelly Dean Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 05 05:10:56 2015 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 1YJDmJ-00025v-Lp for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2015 05:10:55 +0100 Original-Received: from localhost ([::1]:39970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJDmI-0003NA-T0 for ged-emacs-devel@m.gmane.org; Wed, 04 Feb 2015 23:10:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJDm5-0003N5-0S for emacs-devel@gnu.org; Wed, 04 Feb 2015 23:10:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJDm1-0003Bl-L4 for emacs-devel@gnu.org; Wed, 04 Feb 2015 23:10:40 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:36615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJDm1-0003Bg-2x for emacs-devel@gnu.org; Wed, 04 Feb 2015 23:10:37 -0500 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t154AZPo014294; Wed, 4 Feb 2015 23:10:36 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 86269AE124; Wed, 4 Feb 2015 23:10:35 -0500 (EST) In-Reply-To: (Kelly Dean's message of "Thu, 05 Feb 2015 03:09:44 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5207=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5207> : inlines <2034> : streams <1384950> : uri <1846685> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:182428 Archived-At: > (let ((foo 'bar)) (setq-default foo 'baz)) > foo =E2=86=92 Lisp error: (void-variable foo) > Is that behavior correct? Looks correct, yes, since `foo' is not made buffer-local, so `setq-default' is just like `setq'. Stefan