From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: How to obtain customize :type for an option at runtime? Date: Sun, 29 Jan 2006 03:09:29 +0100 Message-ID: <43DC23D9.1070304@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1138522069 2222 80.91.229.2 (29 Jan 2006 08:07:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 08:07:49 +0000 (UTC) Cc: Help-Gnu-Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 09:07:47 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F37b8-0003j6-An for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 09:07:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F37e2-0005YE-28 for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 03:10:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F32Wp-0007IE-3m for help-gnu-emacs@gnu.org; Sat, 28 Jan 2006 21:42:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F32D5-0007rI-Q6 for help-gnu-emacs@gnu.org; Sat, 28 Jan 2006 21:22:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F323P-0003p6-7u for help-gnu-emacs@gnu.org; Sat, 28 Jan 2006 21:12:35 -0500 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F321R-0004Gv-Qf for help-gnu-emacs@gnu.org; Sat, 28 Jan 2006 21:10:34 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn2.hy.skanova.net (7.2.069.1) id 43D8C75A00097F52; Sun, 29 Jan 2006 03:09:30 +0100 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: Drew Adams In-Reply-To: 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:32892 Archived-At: Drew Adams wrote: > How can I determine, for a given user option, what its Customize :type is? > > For example, function `user-variable-p' tests whether a symbol is a user > option, but what if I want to test whether a variable is a toggle (binary) > option? > > Although not all options that can act as toggles are defined with a simple > ":type 'boolean" in Customize (far from it, and there are good reasons for > that), obtaining such :type info would be a start. > It is in the symbol property list: (get 'your-symbol 'custom-type)