From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: Make a defcustom dependent on another variable Date: Thu, 20 Mar 2014 09:17:15 +0100 Message-ID: <87ob11qo6s.fsf@zigzag.favinet> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1395303221 7441 80.91.229.3 (20 Mar 2014 08:13:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 08:13:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 09:13:47 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 1WQY6g-0000ZY-39 for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 09:13:42 +0100 Original-Received: from localhost ([::1]:45685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQY6f-0007pM-Fw for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 04:13:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQY6M-0007on-9O for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 04:13:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQY6F-000059-00 for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 04:13:22 -0400 Original-Received: from smtp206.alice.it ([82.57.200.102]:5401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQY6E-000050-Jr for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 04:13:14 -0400 Original-Received: from zigzag.favinet (95.233.75.91) by smtp206.alice.it (8.6.060.28) id 529A678F15DD98E0; Thu, 20 Mar 2014 09:13:12 +0100 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1WQYAH-000389-9L; Thu, 20 Mar 2014 09:17:25 +0100 Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: (Joost Kremers's message of "19 Mar 2014 23:05:21 GMT") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.102 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:96641 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Joost Kremers () 19 Mar 2014 23:05:21 GMT The code seems to work (the resulting customisation option works), but I was wondering a) if there are any hidden problems I'm not aware of; and b) if there is a more canonical way of doing this. If you have the GNU Emacs source, you can grep for "choice.*mapcar" and see how others do it. I see 9 hits. I choose one that is from a fundamental library -- minibuffer.el var =E2=80=98completion--styles-type= =E2=80=99 -- and find it in the lisp/ChangeLog.16 entry dated 2011-10-03 authored by Stefan Monnier. I feel comfortable using this technique now. If you do not have the GNU Emacs source, then you can question your sanity / situation / style / subjugation, until you do... :-D =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlMqpA4ACgkQZwMiJEyAdQJkMwCfcOvnUJyccUxmHyrZs7HR/Q1T 5E8AoNuM9drtq8Djlv4IQ6nNkV5He6uQ =9Jj7 -----END PGP SIGNATURE----- --=-=-=--