From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: Programmatically access all the possible values of a defcustom Date: Wed, 29 Jan 2014 23:19:02 +0100 Message-ID: <871tzqh1nt.fsf@yahoo.fr> References: <86fvo6jzx5.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1391033982 12398 80.91.229.3 (29 Jan 2014 22:19:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jan 2014 22:19:42 +0000 (UTC) Cc: public-help-gnu-emacs-mXXj517/zsQ@plane.gmane.org To: "Sebastien Vauban" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 29 23:19:49 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8dU2-0002c5-TL for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jan 2014 23:19:47 +0100 Original-Received: from localhost ([::1]:45485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8dU2-00083X-Es for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jan 2014 17:19:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8dTg-0007qi-2q for help-gnu-emacs@gnu.org; Wed, 29 Jan 2014 17:19:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8dTX-0001H3-SS for help-gnu-emacs@gnu.org; Wed, 29 Jan 2014 17:19:23 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:34764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8dTX-0001Gz-Lp for help-gnu-emacs@gnu.org; Wed, 29 Jan 2014 17:19:15 -0500 Original-Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W8dTV-0002Hq-VY for help-gnu-emacs@gnu.org; Wed, 29 Jan 2014 23:19:13 +0100 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8dTI-00028x-68; Wed, 29 Jan 2014 23:19:00 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEAHJ96VKkD4Xx/2dsb2JhbABZhxi6EIEZdIImAQEEI1YQCAMaAgUhAgIPAQRJLYdWARSrAFOVfgGIYReBKYZIhlszB4JvgUkEmCiGMYtugy47 Original-Received: from mathsrv4.ulb.ac.be (HELO geodiff-mac3) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 29 Jan 2014 23:18:58 +0100 In-Reply-To: <86fvo6jzx5.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 29 Jan 2014 21:28:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95768 Archived-At: Hi S=C3=A9bastien, "Sebastien Vauban" writes: > Is there a possibility to programmatically access all the values that > a defcustom can take? I guess it's in the plist associated to the symbol. Let's check: (symbol-plist 'org-babel-load-languages) Ah ha! (get 'org-babel-load-languages 'custom-type) =3D> (alist :tag "Babel Languages" :key-type (choice (const :tag "Awk" awk)= (const :tag "C" C) (const :tag "R" R) (const :tag "Asymptote" asymptote) (= const :tag "Calc" calc) (const :tag "Clojure" clojure) (const :tag "CSS" cs= s) (const :tag "Ditaa" ditaa) (const :tag "Dot" dot) (const :tag "Emacs Lis= p" emacs-lisp) (const :tag "Fortran" fortran) ...) :value-type (boolean :ta= g "Activate" :value t)) HTH, --=20 Nico.