all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.