From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Why don't let bound values die? Date: Fri, 03 Sep 2010 23:52:25 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283550757 12914 80.91.229.12 (3 Sep 2010 21:52:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2010 21:52:37 +0000 (UTC) Cc: Emacs-Devel devel To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 03 23:52:36 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 1OreBW-0003KV-Uw for ged-emacs-devel@m.gmane.org; Fri, 03 Sep 2010 23:52:35 +0200 Original-Received: from localhost ([127.0.0.1]:54851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OreBW-0002dc-H8 for ged-emacs-devel@m.gmane.org; Fri, 03 Sep 2010 17:52:34 -0400 Original-Received: from [140.186.70.92] (port=44327 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OreBR-0002c1-SX for emacs-devel@gnu.org; Fri, 03 Sep 2010 17:52:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OreBQ-0005ix-NW for emacs-devel@gnu.org; Fri, 03 Sep 2010 17:52:29 -0400 Original-Received: from impaqm4.telefonica.net ([213.4.138.4]:22731) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OreBQ-0005ip-Fx for emacs-devel@gnu.org; Fri, 03 Sep 2010 17:52:28 -0400 Original-Received: from IMPmailhost6.adm.correo ([10.20.102.127]) by IMPaqm4.telefonica.net with bizsmtp id 2MXe1f00b2kvMAa3QMsSin; Fri, 03 Sep 2010 23:52:26 +0200 Original-Received: from ceviche.home ([83.61.33.16]) by IMPmailhost6.adm.correo with BIZ IMP id 2MsR1f0040LsqWj1mMsSVM; Fri, 03 Sep 2010 23:52:26 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id 6C442660DC; Fri, 3 Sep 2010 23:52:25 +0200 (CEST) In-Reply-To: (Lennart Borgman's message of "Fri, 3 Sep 2010 20:11:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:129660 Archived-At: > 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