From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Re: How to convert a char to a property Date: Tue, 27 Jul 2010 05:12:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6eea9888-4043-4f22-9928-b345bcc899e9@z30g2000prg.googlegroups.com> References: <87sk358gzw.fsf@decebal.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291851740 12335 80.91.229.12 (8 Dec 2010 23:42:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 23:42:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 00:42:16 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQTeK-0000yt-36 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:42:16 +0100 Original-Received: from localhost ([127.0.0.1]:57345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQTeJ-0000ed-DT for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 18:42:15 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!z30g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 75.36.151.102 Original-X-Trace: posting.google.com 1280232766 5300 127.0.0.1 (27 Jul 2010 12:12:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 27 Jul 2010 12:12:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z30g2000prg.googlegroups.com; posting-host=75.36.151.102; posting-account=9bWHAAoAAAAxSFC_2O_ssTETNW9NhMbW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTbBT5/5.8.0.12304),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:180101 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76209 Archived-At: On Jul 27, 1:29=A0am, Cecil Westerhof wrote: > I have the following property list: > =A0 =A0 (defvar dcbl-bbdb-user-defined-fields (list :L "mail-alias" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 :M "mailer" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 :P "playlist" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 :s "subjects" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 :t "type" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 :w "website") > =A0 =A0 =A0 "User defined fields in the bbdb with parameter to insert int= o buffer") > > With (getf dcbl-bbdb-user-defined-fields :M) I get "mailer". > > But I want to work parameter driven. So for example I have: > =A0 =A0 =A0(setq parameters "MLst") > =A0 =A0 =A0(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) ) ) )