all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maurizio Vitale <mav@google.com>
To: help-gnu-emacs@gnu.org
Subject: file/line info for macro expansion
Date: Tue, 04 Jan 2011 11:10:27 -0500	[thread overview]
Message-ID: <xotjd3ocabv0.fsf@google.com> (raw)

I think it is not possible, but I'm ready to be surprised.
Basically, I'd like macros of the form:

  (declare-foo args)

to expand to something containing the file and line number of the
expansion site. This way I could easily jump back to the definition.
One use is in my .emacs, where I'd like each mode customization to be
able to define its own keys and still be able to edit all keys
definitions in one place.
Thanks,

        Maurizio




             reply	other threads:[~2011-01-04 16:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-04 16:10 Maurizio Vitale [this message]
     [not found] <mailman.1.1294157491.12765.help-gnu-emacs@gnu.org>
2011-01-04 16:18 ` file/line info for macro expansion Elena
2011-01-04 19:52 ` Pascal J. Bourguignon
2011-01-04 22:32   ` Elena
2011-01-05  6:11     ` Stefan Monnier
2011-01-05 14:50       ` Steven W. Orr
2011-01-05 22:36       ` Maurizio Vitale
2011-01-04 23:46 ` Tim X
2011-01-05  6:10 ` Stefan Monnier
2011-01-05 15:16 ` Elena

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=xotjd3ocabv0.fsf@google.com \
    --to=mav@google.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.