From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Why don't let bound values die? Date: Sat, 4 Sep 2010 00:20:24 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283552565 19224 80.91.229.12 (3 Sep 2010 22:22:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2010 22:22:45 +0000 (UTC) Cc: Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 04 00:22:43 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oreeg-00074i-Mp for ged-emacs-devel@m.gmane.org; Sat, 04 Sep 2010 00:22:43 +0200 Original-Received: from localhost ([127.0.0.1]:42050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oreeg-0006tF-4f for ged-emacs-devel@m.gmane.org; Fri, 03 Sep 2010 18:22:42 -0400 Original-Received: from [140.186.70.92] (port=36028 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oredg-0006i0-WE for emacs-devel@gnu.org; Fri, 03 Sep 2010 18:22:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Orecn-0003wV-FU for emacs-devel@gnu.org; Fri, 03 Sep 2010 18:21:40 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:51835) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Orecn-0003vt-12 for emacs-devel@gnu.org; Fri, 03 Sep 2010 18:20:45 -0400 Original-Received: by qwf7 with SMTP id 7so3027173qwf.0 for ; Fri, 03 Sep 2010 15:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=66qfePfbjIc2qT/kjbpExxVKGSypH143isudjBf8dvI=; b=fuW12RRbkVdzeK3cyqB/EMn6+qc6z5hBiBpOUwW4iKWB8Nn33e8NNuaHICfYLQl/zV dkpMkG601vhLtNE5mzn9XFXPlSsaiQC3IIhR8U4Cf42XLjZ27jAL5P7VxVqBjfP5bcuS /S54B/fcuRKh0Yq7MU1yZs2QnJxaPj72XV3M0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=uMCQ7IhFYdIv4Sks6RBrE6zihYY4bMZ6MOWB1Shu+X5gDCnFt9WklRPnyneQCrwEE1 O79cwhSFYoaB/KjKJtWvpiCt8eR9GBcnblXtMrU8Enk3Ab3aFmEDc934ys4gAeDd2yn+ EYk/k8vmVhPa081mtP1hc/ucY/YyUd+HLoL0E= Original-Received: by 10.224.36.12 with SMTP id r12mr450594qad.224.1283552444177; Fri, 03 Sep 2010 15:20:44 -0700 (PDT) Original-Received: by 10.229.27.133 with HTTP; Fri, 3 Sep 2010 15:20:24 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129662 Archived-At: On Fri, Sep 3, 2010 at 11:52 PM, Stefan Monnier 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". =C2=A0Then 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 correctl= y ;-) 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.