From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Hash tables Date: 11 Sep 2003 18:50:33 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <16224.62294.152189.23291@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063322054 12126 80.91.224.253 (11 Sep 2003 23:14:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2003 23:14:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Sep 12 01:14:12 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 19xadg-0004mq-00 for ; Fri, 12 Sep 2003 01:14:12 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 19xaeh-0006Sw-00 for ; Fri, 12 Sep 2003 01:15:15 +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 19xaLD-0000Sx-Po for emacs-devel@quimby.gnus.org; Thu, 11 Sep 2003 18:55:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19xaJd-00008T-96 for emacs-devel@gnu.org; Thu, 11 Sep 2003 18:53:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19xaJa-00007h-Iy for emacs-devel@gnu.org; Thu, 11 Sep 2003 18:53:27 -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 19xaJZ-0008SE-HJ for emacs-devel@gnu.org; Thu, 11 Sep 2003 18:53:25 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by mx20.gnu.org with esmtp (Exim 4.22) id 19xaGr-0000Bx-QZ for emacs-devel@gnu.org; Thu, 11 Sep 2003 18:50:37 -0400 Original-Received: from noir.iro.umontreal.ca (noir.iro.umontreal.ca [132.204.26.236]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id h8BMoYHD026358; Thu, 11 Sep 2003 18:50:34 -0400 Original-Received: (from monnier@localhost) by noir.iro.umontreal.ca (8.12.9/8.12.9) id h8BMoYd9008281; Thu, 11 Sep 2003 18:50:34 -0400 Original-To: Nick Roberts In-Reply-To: <16224.62294.152189.23291@nick.uklinux.net> Original-Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-MailScanner-DIRO: Found to be clean 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:16312 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16312 > 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. That is not necessary. You can just use (maphash `(lambda (key value) (fun key value ',arg)) table) instead. And in most cases the above can even be simplified to (maphash (lambda (key value) (fun key value arg)) table) Stefan