unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to convert a char to a property
@ 2010-07-27  8:29 Cecil Westerhof
  2010-07-27 12:12 ` TheFlyingDutchman
  2010-07-27 13:18 ` Cecil Westerhof
  0 siblings, 2 replies; 6+ messages in thread
From: Cecil Westerhof @ 2010-07-27  8:29 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-27 22:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-27  8:29 How to convert a char to a property Cecil Westerhof
2010-07-27 12:12 ` TheFlyingDutchman
2010-07-27 22:06   ` Cecil Westerhof
2010-07-27 13:18 ` Cecil Westerhof
2010-07-27 17:59   ` Pascal J. Bourguignon
2010-07-27 22:11     ` Cecil Westerhof

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).