all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Why don't let bound values die?
Date: Fri, 03 Sep 2010 23:52:25 +0200	[thread overview]
Message-ID: <jwv7hj233h1.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <AANLkTikO7Pu77j7KOKMfyh1QRCbj7dsLhx+9O1M0py-G@mail.gmail.com> (Lennart Borgman's message of "Fri, 3 Sep 2010 20:11:28 +0200")

> 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.

> 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.

> 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.


        Stefan



  reply	other threads:[~2010-09-03 21:52 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 [this message]
2010-09-03 22:20   ` Lennart Borgman
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=jwv7hj233h1.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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.