From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "rgb" Newsgroups: gmane.emacs.help Subject: Re: shorter form of frequently-seen lisp idiom? Date: 23 Feb 2005 08:29:00 -0800 Organization: http://groups.google.com Message-ID: <1109176140.187917.260980@l41g2000cwc.googlegroups.com> References: <87y8dg64h3.fsf-monnier+gnu.emacs.help@gnu.org> <1109096963.491884.134590@c13g2000cwb.googlegroups.com> <7epsysa0nx.fsf@ada2.unipv.it> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1109176097 15486 80.91.229.2 (23 Feb 2005 16:28:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Feb 2005 16:28:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 23 17:28:17 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3zMj-0001pT-E0 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Feb 2005 17:27:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3ze7-0008OW-4Z for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Feb 2005 11:45:55 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l41g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 198.74.20.75 Original-X-Trace: posting.google.com 1109176145 19575 127.0.0.1 (23 Feb 2005 16:29:05 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 23 Feb 2005 16:29:05 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: l41g2000cwc.googlegroups.com; posting-host=198.74.20.75; posting-account=C7LM4w0AAAD23IRuMuUUJVCLQTuHhTK8 Original-Xref: shelby.stanford.edu gnu.emacs.help:128744 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24282 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24282 Thien-Thi Nguyen wrote: > "rgb" writes: > > > [code] > > symbol-value is > > probably what I should have coded. > > instead of obarray + set + eval, > why not use hash table + puthash + gethash? > Using obarray let me copy exactly what the lisp modes were doing to get eldoc working. I've never used the hash functions. Being unfamiliar, I didn't realize they might be useful to this situation. Now that I look at them, I see what you mean. Thanks for the suggestion.