all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Passing symbols whose values are symbols to macros?
@ 2015-07-09 12:50 Doug Lewan
  2015-07-11 12:23 ` Michael Heerdegen
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Lewan @ 2015-07-09 12:50 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

I have a project with many subsystems. 
I'd like to define a mode for the current subsystem of interest, 
but not for all 200+ subsystems. 
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, 
but, since I'll be constructing symbols at run time for the subsystem of interest,
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 calls (defcustom) 
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 (which is a symbol)
to a macro that expects a symbol like (defcustom)?

Thanks.

-- 
,Doug
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 4335

I once worked in a can recycling facility. It was soda pressing.




^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.6604.1436446216.904.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2015-07-11 12:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09 12:50 Passing symbols whose values are symbols to macros? Doug Lewan
2015-07-11 12:23 ` Michael Heerdegen
     [not found] <mailman.6604.1436446216.904.help-gnu-emacs@gnu.org>
2015-07-09 12:55 ` Pascal J. Bourguignon

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.