From: Cecil Westerhof <Cecil@decebal.nl>
To: help-gnu-emacs@gnu.org
Subject: How to convert a char to a property
Date: Tue, 27 Jul 2010 10:29:39 +0200 [thread overview]
Message-ID: <87sk358gzw.fsf@decebal.nl> (raw)
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
next reply other threads:[~2010-07-27 8:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 8:29 Cecil Westerhof [this message]
2010-07-27 12:12 ` How to convert a char to a property 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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sk358gzw.fsf@decebal.nl \
--to=cecil@decebal.nl \
--cc=help-gnu-emacs@gnu.org \
/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.
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.