unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: PT <mailshield.gg@mailnull.com>
Subject: Re: Structured data in Emacs Lisp
Date: Tue, 26 Apr 2005 17:57:45 +0200	[thread overview]
Message-ID: <op.spujyjxpp52o26@home-ca12fabbc0> (raw)
In-Reply-To: mailman.3069.1114529432.2895.help-gnu-emacs@gnu.org

On Tue, 26 Apr 2005 17:28:48 +0200, Denis Bueno <dbueno@gmail.com> wrote:
>
> You could use a plist:
>
>   (:key1 1 :key2 2)
>
> Then to get a particular value:
>
> (getf '(:key1 1 :key2 2) :key1)
> => 1
>

Nice! I like it better than association lists. Thanks!

> So you might need to do (require 'cl) before using it....

I already require 'cl, so it's no problem. I checked Info and getf was  
listed under the Symbols node, that's why I didn't know about it.

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/

  parent reply	other threads:[~2005-04-26 15:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-26 15:20 Structured data in Emacs Lisp PT
2005-04-26 15:28 ` Denis Bueno
     [not found] ` <mailman.3069.1114529432.2895.help-gnu-emacs@gnu.org>
2005-04-26 15:57   ` PT [this message]
2005-04-26 16:59     ` Jim Ottaway
2005-04-27  5:35       ` Ian Zimmerman
2005-04-26 16:03 ` Phillip Lord
2005-04-26 17:21   ` PT
2005-04-27 11:13     ` Phillip Lord
2005-04-27 15:27 ` Klaus Berndl
2005-04-27 18:38   ` PT
2005-05-09 21:39 ` Christopher C. Stacy
2005-05-10 10:05   ` Phillip Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.spujyjxpp52o26@home-ca12fabbc0 \
    --to=mailshield.gg@mailnull.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).