unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bob Nelson <bnelson@nelsonbe.com>
Subject: Canonical add-hook idiom
Date: Sat, 15 Nov 2003 05:35:34 GMT	[thread overview]
Message-ID: <GWitb.1387$n56.744@newsread1.news.pas.earthlink.net> (raw)

What is the preferred approach given these examples:

    1). (add-hook 'some-mode-hook (lambda () [...]
    2). (add-hook 'some-mode-hook '(lambda () [...]
    3). (add-hook 'some-mode-hook (function (lambda () [...]
    4). None of the above -- please explain.

-- 
=============================================================================
           Bob Nelson -- Dallas, Texas, USA (nelsonbe@earthlink.net)
          http://www.oldradio.com/archives/nelson/open-computing.html
Good engineering is finding the right wrench to pound in the correct screw

             reply	other threads:[~2003-11-15  5:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-15  5:35 Bob Nelson [this message]
2003-11-15  8:25 ` Canonical add-hook idiom Oliver Scholz
2003-11-15 18:27   ` Henrik Enberg
2003-11-15 16:55 ` Jesper Harder
2003-11-16 23:26 ` Stefan Monnier

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='GWitb.1387$n56.744@newsread1.news.pas.earthlink.net' \
    --to=bnelson@nelsonbe.com \
    /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).