From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: defvar without value Date: Wed, 01 Apr 2020 22:37:02 -0400 Message-ID: References: <87k1302htp.fsf@web.de> <878sjebzaj.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="102966"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Emacs Development To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 02 04:38:03 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJpk3-000Qhy-F2 for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Apr 2020 04:38:03 +0200 Original-Received: from localhost ([::1]:60850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJpk2-0008C8-I1 for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Apr 2020 22:38:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46193) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJpjA-0007m6-73 for emacs-devel@gnu.org; Wed, 01 Apr 2020 22:37:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJpj8-00020k-KR for emacs-devel@gnu.org; Wed, 01 Apr 2020 22:37:07 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16163) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJpj8-0001yn-DL for emacs-devel@gnu.org; Wed, 01 Apr 2020 22:37:06 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B8FE344FB13; Wed, 1 Apr 2020 22:37:05 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2318244FB07; Wed, 1 Apr 2020 22:37:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1585795024; bh=gf1zhJBDuwDmWRQmK7aDxeT+SFk1rtAL22jxepEDXnQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Ahzb3csmKWQrVsckr2as1inUQFIBEmvWS+Nk0DZv1lLCSHoh/jfHVOL109MXzCAGG w1BhzZd7CTIxmU8WtZgilREIsJpAuyJNVYV/+72x1rskc26L9vH+D/1zekA3xJoIDG /+oCWrmqM8d71XYTjzOBw59v0NvwbkBunpDDqdcWteYEL0DSG357oxwqEshIEoAPZO /mRmifYZqZ7bmvNFUNCLApqUQi+hFZqk1IDCT3bUc06LmqPhTU/i6+3kKmtZuJmYXP x6mkhnLFlYEj6S/6yY2VTHk+HIjNN3qY/Bb9cOvUbI9CGSjQaLLsCatQ8hsFAzvM3/ Hkh/d83Ua/XLA== Original-Received: from alfajor (unknown [104.247.241.114]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7750B12080E; Wed, 1 Apr 2020 22:37:03 -0400 (EDT) In-Reply-To: <878sjebzaj.fsf@web.de> (Michael Heerdegen's message of "Thu, 02 Apr 2020 00:45:40 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246233 Archived-At: > we/you/someone wanted to add `fluid-let' > (i.e. a dynamically binding `let') anyway. It's in `master`, called `dlet`, but it's orthogonal to `defvar-dynamic`. >> Similarly, we could add something like (defvar-lexical VAR VAL) which >> defines the var and sets it but doesn't set the `special` bit > Uses of that exceed my current imagination. How quickly one gets used to the idea of dynamic scoping, eh? % grep internal-make-var-non-special **/*.el lisp/emacs-lisp/float-sup.el:(internal-make-var-non-special 'pi) lisp/startup.el:(internal-make-var-non-special 'argv) lisp/startup.el:(internal-make-var-non-special 'argi) % -- Stefan