From: Arthur Miller <arthur.miller@live.com>
To: emacs-devel@gnu.org
Subject: Defvar not called at top level
Date: Tue, 23 Nov 2021 14:28:04 +0100 [thread overview]
Message-ID: <AM9PR09MB49774B104AEEC5B2928191BC96609@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
Just a question: why is it important to call defvar from top level?
I would like to have some code that generates some other code, amongs that to
declare few global symbols with auto generated docs as well.
If I call those from a defun/macro normally I get that warning that defvar is
not called at top level; so I guess it is for some reason a bad practice? So if
I generate some code that will be called at some later time that uses defvar I
guess it would be equally bad practice.
I just wonder, why is it demanded to call defvar as top level form?
next reply other threads:[~2021-11-23 13:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-23 13:28 Arthur Miller [this message]
2021-11-23 13:58 ` Defvar not called at top level Stefan Monnier
2021-11-24 10:47 ` Arthur Miller
2021-11-24 13:38 ` Stefan Monnier
2021-11-25 3:04 ` Arthur Miller
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=AM9PR09MB49774B104AEEC5B2928191BC96609@AM9PR09MB4977.eurprd09.prod.outlook.com \
--to=arthur.miller@live.com \
--cc=emacs-devel@gnu.org \
/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.