From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Hattuari Newsgroups: gmane.emacs.help Subject: How to populate a property list? Date: Tue, 26 Oct 2004 06:09:16 -0400 Organization: Asii Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: 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 1098805306 8411 80.91.229.6 (26 Oct 2004 15:41:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 15:41:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 26 17:41:38 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMTS6-0000CY-00 for ; Tue, 26 Oct 2004 17:41:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMTZn-0000wN-8T for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2004 11:49:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 26 Oct 2004 05:11:21 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: KNode/0.8.1 Original-Lines: 28 Original-NNTP-Posting-Host: 66.92.149.152 Original-X-Trace: sv3-Kzj3rlbAsJbPlnaeOIGjTUkC9fOO1OktxLDdt/nifrx3voOxYztpTADkLWNJWqmh04nQoLaIUSmMCml!ekVS11+usf2DtxwqWlBQimMI0AXXC6ysAQBR36wlTNwllftyp4tOtoTvjBywnXGmQ+Ngr/rKLeqY!XScuchZ0eKrEj9X6QnY= Original-X-Complaints-To: abuse@speakeasy.net X-DMCA-Complaints-To: abuse@speakeasy.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.20 Original-Xref: shelby.stanford.edu gnu.emacs.help:126067 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21445 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21445 Suppose I have a collection of key values pairs as follows: char c short s int i long l I want to put them in a property list. I can do this: (setq type-map '(char c short s int i long l)) Which works for this short list. I don't find it particularly expressive. I can try playing with the format: (setq type-map '(char c short s int i long l)) That's heading nowhere fast. I can try adding additional pairs like this: (setq type-map (plist-put type-map 'float 'f)) That, however, seems excessively verbose. Is there a more concise means of adding the members of a property list in pairwise fashion? -- p->m == (*p).m == p[0].m