From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Passing symbols whose values are symbols to macros?
Date: Thu, 09 Jul 2015 14:55:28 +0200 [thread overview]
Message-ID: <87twtdpk1r.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.6604.1436446216.904.help-gnu-emacs@gnu.org
Doug Lewan <dougl@shubertticketing.com> writes:
> 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,
Nope. The obvious choice is to remember that GNU emacs is 30 years
old, and therefore your problem has already occured to someone else, and
have been solved in a customizable way.
Therefore: M-x customize-variable RET compilation-error-regexp-alist RET
> 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)?
Use a time-machine.
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk
next parent reply other threads:[~2015-07-09 12:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.6604.1436446216.904.help-gnu-emacs@gnu.org>
2015-07-09 12:55 ` Pascal J. Bourguignon [this message]
2015-07-09 12:50 Passing symbols whose values are symbols to macros? Doug Lewan
2015-07-11 12:23 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87twtdpk1r.fsf@kuiper.lan.informatimago.com \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.