From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: file/line info for macro expansion Date: Wed, 05 Jan 2011 10:46:31 +1100 Organization: Unlimited download news at news.astraweb.com Message-ID: <87pqscb5bc.fsf@puma.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294188044 12519 80.91.229.12 (5 Jan 2011 00:40:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2011 00:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 05 01:40:40 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PaHQd-0002MW-B9 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jan 2011 01:40:39 +0100 Original-Received: from localhost ([127.0.0.1]:58254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaHQc-00059w-U5 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Jan 2011 19:40:38 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news-xfer.nntp.sonic.net!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:CXR/sO2LpSwx91Dhorab/Bzgbh8= Original-Lines: 24 Original-NNTP-Posting-Host: 19bafdb0.news.astraweb.com Original-X-Trace: DXC=hddjOM1A>EWI56`V^?kWSCAkl5c@Xgk^O5Y]^4i9Sj\8[Q^Hf>jR1Q Original-Xref: usenet.stanford.edu gnu.emacs.help:183991 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78196 Archived-At: Maurizio Vitale writes: > 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, > I don't understand what your requirement is. I also suspect you are possibly misunderstanding the role of macros. Can you expand on what the functionality is you want and how you would use it? It may then be possible to suggest something more relevant. Tim -- tcross (at) rapttech dot com dot au