unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Emacs Development <emacs-devel@gnu.org>
Subject: Re: defvar without value
Date: Wed, 01 Apr 2020 22:37:02 -0400	[thread overview]
Message-ID: <jwv4ku2r4yb.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <878sjebzaj.fsf@web.de> (Michael Heerdegen's message of "Thu, 02 Apr 2020 00:45:40 +0200")

> 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




  reply	other threads:[~2020-04-02  2:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01  0:03 defvar without value Michael Heerdegen
2020-04-01  0:36 ` Drew Adams
2020-04-01  0:59 ` Stefan Monnier
2020-04-01 22:45   ` Michael Heerdegen
2020-04-02  2:37     ` Stefan Monnier [this message]
2020-04-09  1:52       ` Michael Heerdegen
2020-04-09  2:04         ` Emanuel Berg via Emacs development discussions.
2020-04-09  2:20         ` Stefan Monnier
2020-04-09 23:34           ` Emanuel Berg via Emacs development discussions.
2020-04-10 15:20             ` Bruno Félix Rezende Ribeiro
2020-04-10 23:07               ` Emanuel Berg via Emacs development discussions.
2020-04-10 21:57           ` Michael Heerdegen
2020-04-01  1:21 ` Noam Postavsky
2020-04-01  1:53   ` Michael Heerdegen

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=jwv4ku2r4yb.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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).