unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnu.org>
To: "Sebastien Vauban"
	<public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org>
Cc: public-help-gnu-emacs-mXXj517/zsQ@plane.gmane.org
Subject: Re: Line number where eval-after-load is defined in my .emacs file
Date: Thu, 14 Nov 2013 09:19:40 +0100	[thread overview]
Message-ID: <87iovv5rab.fsf@zigzag.favinet> (raw)
In-Reply-To: <867gccnjrl.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 13 Nov 2013 21:12:30 +0100")


[-- Attachment #1.1: Type: text/plain, Size: 300 bytes --]

() "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
() Wed, 13 Nov 2013 21:12:30 +0100

   So the question boils down to: is it possible to access/save the line
   number of where the macro is called (in my .emacs file)?

Under some circumstances, yes.  Here is a quick sketch:


[-- Attachment #1.2: know-this.el --]
[-- Type: application/emacs-lisp, Size: 707 bytes --]

[-- Attachment #1.3: Type: text/plain, Size: 525 bytes --]


that demonstrates the basic technique, and illustrates the primary
shortcomings -- unreliability and imprecision (if you use it, you will
undoubtedly discover the other shortcomings, soon enough :-D).

To play, save to disk, ‘M-x load-file’ it, and then examine the
*Messages* buffer.

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2013-11-14  8:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-13 16:42 Line number where eval-after-load is defined in my .emacs file Sebastien Vauban
2013-11-13 17:05 ` William G. Gardella
     [not found] ` <mailman.5986.1384362332.10748.help-gnu-emacs@gnu.org>
2013-11-13 20:12   ` Sebastien Vauban
2013-11-14  8:19     ` Thien-Thi Nguyen [this message]
     [not found]     ` <mailman.6043.1384418405.10748.help-gnu-emacs@gnu.org>
2013-11-15 13:43       ` Sebastien Vauban
2013-11-16  1:40         ` Michael Heerdegen
2013-11-13 21:03 ` Sebastien Vauban
2013-11-13 22:09   ` Stefan Monnier
2013-11-13 23:26 ` Michael Heerdegen
     [not found] ` <mailman.6018.1384385233.10748.help-gnu-emacs@gnu.org>
2013-11-15 13:46   ` Sebastien Vauban
2013-11-22 16:47 ` jack-mac

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iovv5rab.fsf@zigzag.favinet \
    --to=ttn@gnu.org \
    --cc=public-help-gnu-emacs-mXXj517/zsQ@plane.gmane.org \
    --cc=public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).