From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Hash tables Date: Thu, 11 Sep 2003 23:12:38 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <16224.62294.152189.23291@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1063319558 8397 80.91.224.253 (11 Sep 2003 22:32:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2003 22:32:38 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Sep 12 00:32:37 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xZzR-0002hb-00 for ; Fri, 12 Sep 2003 00:32:37 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19xa0R-0001AM-00 for ; Fri, 12 Sep 2003 00:33:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19xZt3-0005eY-CK for emacs-devel@quimby.gnus.org; Thu, 11 Sep 2003 18:26:01 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19xZr1-0004wy-D0 for emacs-devel@gnu.org; Thu, 11 Sep 2003 18:23:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19xZqw-0004vQ-FZ for emacs-devel@gnu.org; Thu, 11 Sep 2003 18:23:51 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 19xZqv-0004ck-Bo for emacs-devel@gnu.org; Thu, 11 Sep 2003 18:23:49 -0400 Original-Received: from [194.247.49.118] (helo=nick.uklinux.net) by mx20.gnu.org with esmtp (Exim 4.22) id 19xZmP-0006gc-QB for emacs-devel@gnu.org; Thu, 11 Sep 2003 18:19:10 -0400 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id ABD6575FDE; Thu, 11 Sep 2003 23:12:38 +0100 (BST) Original-To: emacs-devel@gnu.org X-Mailer: VM 6.97 under Emacs 21.2.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16311 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16311 I am trying to using alists to store information (to display watched expressions under gdb with the speedbar). I have expressions like: (dolist (var gdb-var-list) (let ((var-list)) some operation on var... (push var var-list)) (setq gdb-var-list (nreverse var-list))) where var is a list like (varnum a b c d) Update of the speedbar for arrays and structures is too slow, so I thought hash tables might speed things up. I want to replace the above with something like: (maphash gdb-var-operation gdb-var-table) The manual says that gdb-var-operation, should accept two arguments KEY and VALUE. but I want to pass some arguments to gdb-var-operation. I plan to change maphash to: (maphash FUNCTION TABLE &optional ARGS) so that FUNCTION gets called with KEY, VALUE and ARGS. This won't be an easy task for me so I'd like some reassurance that its a) desirable and b) do-able. Nick