home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / emacs / 3511 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.1 KB  |  43 lines

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!mcsun!sunic!psinntp!psinntp!ims.com!gerdh
  3. From: gerdh@ims.com (Gerd Hoeren)
  4. Subject: ELISP help needed
  5. Message-ID: <1992Nov10.213638.11986@ims.com>
  6. Keywords: find-file-hooks write-file-hooks
  7. Sender: usenet@ims.com (USENET News Poster)
  8. Organization: Integrated Measurement Systems, Inc.
  9. Date: Tue, 10 Nov 1992 21:36:38 GMT
  10. Lines: 31
  11.  
  12. I'd like to connect an elisp function to the find-file-hooks and
  13. write-file-hooks.  I seem to be missing something in my elisp syntax
  14. though.
  15.  
  16. Suppose my function is just:
  17.  
  18.       (defun xyzzy ()
  19.         (message "hello"))
  20.  
  21. And I do an:
  22.  
  23.       (setq find-file-hooks 'xyzzy)
  24.  
  25. Then, the next find-file will complain about:
  26.  
  27.       Wrong type argument: sequencep, xyzzy
  28.  
  29. If I do the same with the write-file-hooks, I get:
  30.  
  31.       Wrong type argument: listp, xyzzy
  32.  
  33. I've tried a number of variations on this syntax, but I'm not winning.
  34. Thanks in advance for the help!
  35.  
  36. --------------------------------------
  37. Gerd Hoeren
  38.   Integrated Measurement Systems, Inc.
  39.   Voice: (503) 626-7117
  40.   Fax:   (503) 644-6969
  41.   Email: gerdh@ims.com
  42. --------------------------------------
  43.