From: Lennart Borgman <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Why don't let bound values die?
Date: Sat, 4 Sep 2010 00:20:24 +0200 [thread overview]
Message-ID: <AANLkTimvRhTo2hEmF7SeKM8f4UkCp=XJrOxSDz5mHaPY@mail.gmail.com> (raw)
In-Reply-To: <jwv7hj233h1.fsf-monnier+emacs@gnu.org>
On Fri, Sep 3, 2010 at 11:52 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> When accessing this menu item a temporary command symbol is set up (if
>> I understand this correctly), something like menu-function-21.
>
> No, this symbol is setup when the menu is defined.
Thanks. Learning. So that was a bad assumption by me. (Did not think
about uninterned symbols so I thought it was let bound.)
>> I tried to avoid adding such symbols like menu-function-21 to the
>> history list.
>
> One way is to check whether they're interned in `obarray'.
>
>> I thought it would be gone if I looked for it in a
>> run-with-idle-timer timer, but it is not.
>
> I have no clue whatsoever what you mean by "looked for it in
> a run-with-idle-timer". Then again, I have no idea why you say "let
> bound" in the title, so I'm clearly missing something.
Yes, that is because you are not understanding my misunderstanding correctly ;-)
I just missed that it was defined by make-symbol. (Easy for me to do
since I have not fully understood how such symbols are handled.)
>> I do not understand why and would be glad for an explanation.
>
> Why what?
>
>> (I fixed it by saving the symbol name and checking for it with
>> intern-soft.)
>
> That means checking that it's interned in `obarray', so it sounds like
> a good solution.
Thanks, you have given me most of the explanation I needed to understand.
I think I still do not know exactly what an uninterned symbol is, but
I guess it is something that can not be looked up, just somehow
accessed directly. But it still has a name and I wonder why.
next prev parent reply other threads:[~2010-09-03 22:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 18:11 Why don't let bound values die? Lennart Borgman
2010-09-03 21:52 ` Stefan Monnier
2010-09-03 22:20 ` Lennart Borgman [this message]
2010-09-04 8:46 ` Stefan Monnier
2010-09-06 8:25 ` David Kastrup
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='AANLkTimvRhTo2hEmF7SeKM8f4UkCp=XJrOxSDz5mHaPY@mail.gmail.com' \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.