[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to convert a char to a property
From: |
TheFlyingDutchman |
Subject: |
Re: How to convert a char to a property |
Date: |
Wed, 08 Dec 2010 15:21:14 -0000 |
User-agent: |
G2/1.0 |
On Jul 27, 1:29 am, Cecil Westerhof <Ce...@decebal.nl> wrote:
> I have the following property list:
> (defvar dcbl-bbdb-user-defined-fields (list :L "mail-alias"
> :M "mailer"
> :P "playlist"
> :s "subjects"
> :t "type"
> :w "website")
> "User defined fields in the bbdb with parameter to insert into buffer")
>
> With (getf dcbl-bbdb-user-defined-fields :M) I get "mailer".
>
> But I want to work parameter driven. So for example I have:
> (setq parameters "MLst")
> (setq current-char (string-to-char parameters))
>
> The variable current-char now contains 77. How could I use
> current-char to retrieve "mailer"?
>
> --
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn:http://www.linkedin.com/in/cecilwesterhof
(getf dcbl-bbdb-user-defined-fields
(intern (concat
":"
(char-to-string current-char) ) ) )