[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: abbrevs and cursor control

From: Kai Großjohann
Subject: Re: abbrevs and cursor control
Date: Sat, 15 Feb 2003 11:23:32 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50

Harry Putnam <> writes:

> Oh, how might I have spotted the correct syntax.. from the help
> provided? 

It says, if HOOK is non-nil, it should be a function of no args.

In Emacs, symbols (with quote in front) are used as functions.  For
example, consider (add-hook 'text-mode-hook 'turn-on-auto-fill).  It
adds the function turn-on-auto-fill to the variable text-mode-hook.
See how the quote is used in front of turn-on-auto-fill when a
function should be passed?

Note that the above also uses a quote in front of the variable.
That's similar to `set': (set 'x 3).  Normally, you use setq instead
of set -- the q stands for quote so you can omit the first quote...

A turnip curses Elvis

reply via email to

[Prev in Thread] Current Thread [Next in Thread]