From: Drew Adams <drew.adams@oracle.com>
To: Drew Adams <drew.adams@oracle.com>, uzibalqa <uzibalqa@proton.me>,
CToID <funk443@yahoo.com.tw>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: Names to defun, defvar, defconst
Date: Mon, 1 Jul 2024 22:41:01 +0000 [thread overview]
Message-ID: <SJ0PR10MB5488D710A7380D32B4ADAEEBF3D32@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <SJ0PR10MB54884A79B9E1981756307D60F3D32@SJ0PR10MB5488.namprd10.prod.outlook.com>
> You _can_ use a keyword name with defvar, but
> it doesn't do anything. Symbols with keyword
> names as their `symbol-name' always evaluate
> to themselves.
>
> To me, using defvar with a keyword name should
> be a BUG, just as it is with defconst.
>
> (defvar :foo 42 "101010") raises no error, and
> evaluating `:foo' as a variable returns `:foo',
> not 42, because it's a keyword, i.e., a constant.
This bug was fixed in Emacs 28. Prior to that
what I said was true. (I still use Emacs 26.)
next prev parent reply other threads:[~2024-07-01 22:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-01 20:14 Names to defun, defvar, defconst uzibalqa
2024-07-01 20:37 ` CToID
[not found] ` <1914797742.11180.1719865741072@mail.yahoo.com>
[not found] ` <N-WomROhsQbqycJ7xelPXzdxPQS1v1PljZZaDu0i0G8PGR73Qjrb49DeBX1K7POfXnnwqQT_7bLksXzvgbf4eN1HyWPv82hEW-E9Y7CJbqU=@proton.me>
2024-07-01 20:42 ` CToID
2024-07-01 21:48 ` uzibalqa
2024-07-01 22:32 ` [External] : " Drew Adams
2024-07-01 22:41 ` Drew Adams [this message]
2024-07-02 3:34 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-07-02 3:42 ` Drew Adams
2024-07-01 23:21 ` tpeplt
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SJ0PR10MB5488D710A7380D32B4ADAEEBF3D32@SJ0PR10MB5488.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=funk443@yahoo.com.tw \
--cc=help-gnu-emacs@gnu.org \
--cc=uzibalqa@proton.me \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.