From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: abbrevs and cursor control Date: Sat, 15 Feb 2003 11:23:32 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84ptptvo4b.fsf@lucy.is.informatik.uni-duisburg.de> References: <84vfznz13p.fsf@lucy.is.informatik.uni-duisburg.de> <84heb79gdt.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045304725 6580 80.91.224.249 (15 Feb 2003 10:25:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Feb 2003 10:25:25 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18jzVc-0001i0-00 for ; Sat, 15 Feb 2003 11:25:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jzWK-0007GC-0A for gnu-help-gnu-emacs@m.gmane.org; Sat, 15 Feb 2003 05:26:08 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!pd951f666.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: pd951f666.dip.t-dialin.net (217.81.246.102) Original-X-Trace: fu-berlin.de 1045304654 47400180 217.81.246.102 (16 [73968]) User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 Cancel-Lock: sha1:XGr3qI08t2mr27rsk8bCwy+JqTE= Original-Xref: shelby.stanford.edu gnu.emacs.help:110230 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6732 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6732 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