home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gumby!yale!yale.edu!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.emacs
- Subject: Re: ELISP help needed
- Date: 11 Nov 1992 20:22:44 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 23
- Message-ID: <1drq2kINNk90@early-bird.think.com>
- References: <1992Nov10.213638.11986@ims.com>
- NNTP-Posting-Host: telecaster.think.com
- Keywords: find-file-hooks write-file-hooks
-
- In article <1992Nov10.213638.11986@ims.com> gerdh@ims.com (Gerd Hoeren) writes:
- >And I do an:
- >
- > (setq find-file-hooks 'xyzzy)
- >
- >Then, the next find-file will complain about:
- >
- > Wrong type argument: sequencep, xyzzy
- >
- >If I do the same with the write-file-hooks, I get:
- >
- > Wrong type argument: listp, xyzzy
-
- Notice that the names of the variables are -hooks, plural. As it says in
- the built-in documentation (viewable with describe-variable, "C-h v"),
- these should contain a "list of functions". Therefore you should do
-
- (setq find-file-hooks (cons 'xyzzy find-file-hooks))
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-