From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Lions & tigers & variables - Oh my! [was: Lisp error on function :documentation]
Date: Wed, 19 Oct 2022 07:27:14 +0200 [thread overview]
Message-ID: <8735bkbcy5.fsf@dataswamp.org> (raw)
In-Reply-To: SJ0PR10MB5488AA2F20F919FE8F17372FF3289@SJ0PR10MB5488.namprd10.prod.outlook.com
I wrote in another post that all global variables are
dynamic/special but not all dynamic/special variables are
global, however this is incorrect, it only happens with
`defvar', not `setq' ...
(setq some-var-1 111)
(defvar some-var-2 222)
(special-variable-p 'some-var-1) ; nil
(special-variable-p 'some-var-2) ; t
(defun test-global-vars ()
(list some-var-1 some-var-2) )
(let ((some-var-1 111000)
(some-var-2 222000) )
(test-global-vars) ) ; 111 222000
--
underground experts united
https://dataswamp.org/~incal
prev parent reply other threads:[~2022-10-19 5:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-18 15:37 Lions & tigers & variables - Oh my! [was: Lisp error on function :documentation] Drew Adams
2022-10-18 23:25 ` Emanuel Berg
2022-10-19 14:09 ` [External] : " Drew Adams
2022-10-19 20:20 ` Emanuel Berg
2022-10-20 8:48 ` tomas
2022-10-21 3:37 ` Emanuel Berg
2022-10-21 8:40 ` Emanuel Berg
2022-10-19 5:16 ` Emanuel Berg
2022-10-19 5:27 ` Emanuel Berg [this message]
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=8735bkbcy5.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--cc=help-gnu-emacs@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.