From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Lisp_Object to char* Date: 14 Dec 2003 07:54:11 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <1071343548.16244.5.camel@farmer> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1071381235 4868 80.91.224.253 (14 Dec 2003 05:53:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2003 05:53:55 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Dec 14 06:53:52 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AVPCS-0002DZ-00 for ; Sun, 14 Dec 2003 06:53:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AVPCM-0008V0-00 for ; Sun, 14 Dec 2003 06:53:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AVQ8y-0002ck-Mr for emacs-devel@quimby.gnus.org; Sun, 14 Dec 2003 01:54:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AVQ8s-0002Yp-68 for emacs-devel@gnu.org; Sun, 14 Dec 2003 01:54:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AVQ8L-00028P-3D for emacs-devel@gnu.org; Sun, 14 Dec 2003 01:54:12 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.24) id 1AVQ8K-000289-D9; Sun, 14 Dec 2003 01:53:40 -0500 Original-To: mwingert7149@wowway.com In-reply-to: <1071343548.16244.5.camel@farmer> (message from mr mike on Sat, 13 Dec 2003 14:25:48 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18682 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18682 > From: mr mike > Date: Sat, 13 Dec 2003 14:25:48 -0500 > > In the C code, how do you convert a Lisp_Object to a char* value? > > I'm asking because I'm playing around with making a gtk widget > from the gtk emacs port, and I am going to pass a argument > to make-frame like this > > (make-frame '((foo . "abc"))) > > and I need to know what the value that goes with foo. > > I can get the argument with x_get_arg(). I just need the value. Is the XCDR macro what you want?