From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: Passing symbols whose values are symbols to macros? Date: Thu, 9 Jul 2015 12:50:08 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA98C1F74A12@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1436446233 32513 80.91.229.3 (9 Jul 2015 12:50:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2015 12:50:33 +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 Jul 09 14:50:32 2015 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 1ZDBHc-0000VA-Bb for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jul 2015 14:50:32 +0200 Original-Received: from localhost ([::1]:39608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDBHb-0001IY-GN for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jul 2015 08:50:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDBHK-0001IJ-Sg for help-gnu-emacs@gnu.org; Thu, 09 Jul 2015 08:50:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDBHF-0006uo-Cj for help-gnu-emacs@gnu.org; Thu, 09 Jul 2015 08:50:14 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:34209 helo=livemail.shubertorg.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDBHF-0006sp-9t for help-gnu-emacs@gnu.org; Thu, 09 Jul 2015 08:50:09 -0400 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.03.0123.003; Thu, 9 Jul 2015 08:50:10 -0400 Thread-Topic: Passing symbols whose values are symbols to macros? Thread-Index: AdC6RciNDmSvBGNXRHGM7G9RtYz6BA== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 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:105558 Archived-At: I have a project with many subsystems.=20 I'd like to define a mode for the current subsystem of interest,=20 but not for all 200+ subsystems.=20 The mode(s) are based on compilation mode but add customizations for handling local log files. Doing this with macros seems like the obvious choice,=20 but, since I'll be constructing symbols at run time for the subsystem of in= terest, I'm having a very hard time using (defcustom). I've been able to work around that by wrapping (defcustom) in another macro that evals the argument that is the symbol for the customization and then c= alls (defcustom)=20 but eval-ing args in macros is recommended against. (I also suspect it won't play nicely once I try to compile it.) Does anyone have any advice for how I might pass the value of a symbol (whi= ch is a symbol) to a macro that expects a symbol like (defcustom)? Thanks. --=20 ,Doug Douglas Lewan Shubert Ticketing (201) 489-8600 ext 4335 I once worked in a can recycling facility. It was soda pressing.