unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: eval-after-load confusion
Date: Wed, 30 Apr 2014 11:36:47 +0200	[thread overview]
Message-ID: <87bnvjxiog.fsf@zigzag.favinet> (raw)
In-Reply-To: <87k3a7i57h.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 30 Apr 2014 16:36:50 +0800")

[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]

() Eric Abrahamsen <eric@ericabrahamsen.net>
() Wed, 30 Apr 2014 16:36:50 +0800

   ;; (eval-after-load 'message
   ;;   (let ...)

   What am I not understanding?!

If you ‘C-h f eval-after-load’, you will see the template:

 (eval-after-load FILE FORM)

and can match symbol ‘eval-after-load’ to the first element
of the same name, the expression

 'message

to the second element FILE, and the expression

 (let ...)

to the third element FORM.  So order seems to be correct.  No easy
answers in this life!  Trundle on!  Next step, do the "types" match?
The first element is for dispatch so we ignore it.  The second one,
FILE, seems to be correct per this fragment:

 Alternatively, FILE can be a feature (i.e. a symbol),

and the expression does indeed evaluate to a symbol, i.e.,

 (quote SYMBOL) => SYMBOL

That leaves the third element, FORM.  It appears the ‘(let ...)’ does
not evaluate to a proper FORM.  Hmm...

"But ttn, why all this "evaluate to" noise?  Why didn't you just say
that ‘(quote message)’ *is* a symbol?  Same for "does not evaluate to"
for the third arg!  What, are you getting old and crufty?!"

Well, yes!  Everything has its time.

-- 
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 --]

  parent reply	other threads:[~2014-04-30  9:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-30  8:36 eval-after-load confusion Eric Abrahamsen
2014-04-30  9:18 ` Nicolas Richard
2014-04-30  9:28   ` Eric Abrahamsen
2014-04-30  9:36 ` Thien-Thi Nguyen [this message]
2014-04-30  9:41   ` Eric Abrahamsen
2014-04-30 12:28 ` Stefan Monnier
2014-05-02  5:28   ` Eric Abrahamsen

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=87bnvjxiog.fsf@zigzag.favinet \
    --to=ttn@gnu.org \
    --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.
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).