home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.emacs
- Path: sparky!uunet!mcsun!sunic!psinntp!psinntp!ims.com!gerdh
- From: gerdh@ims.com (Gerd Hoeren)
- Subject: ELISP help needed
- Message-ID: <1992Nov10.213638.11986@ims.com>
- Keywords: find-file-hooks write-file-hooks
- Sender: usenet@ims.com (USENET News Poster)
- Organization: Integrated Measurement Systems, Inc.
- Date: Tue, 10 Nov 1992 21:36:38 GMT
- Lines: 31
-
- I'd like to connect an elisp function to the find-file-hooks and
- write-file-hooks. I seem to be missing something in my elisp syntax
- though.
-
- Suppose my function is just:
-
- (defun xyzzy ()
- (message "hello"))
-
- 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
-
- I've tried a number of variations on this syntax, but I'm not winning.
- Thanks in advance for the help!
-
- --------------------------------------
- Gerd Hoeren
- Integrated Measurement Systems, Inc.
- Voice: (503) 626-7117
- Fax: (503) 644-6969
- Email: gerdh@ims.com
- --------------------------------------
-