home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / help / 4895 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.5 KB  |  33 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!stanford.edu!leland.Stanford.EDU!leland!konkar
  3. From: konkar@bimini.stanford.edu (Ranjit Konkar)
  4. Subject: cl-indent
  5. Message-ID: <KONKAR.92Nov22112505@bimini.stanford.edu>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Reply-To: Ranjit Konkar <konkar@sunrise.stanford.edu>
  8. Organization: DSG, Stanford University
  9. Distribution: gnu
  10. Date: 22 Nov 92 11:25:05
  11. Lines: 20
  12.  
  13.  
  14. I need to do the following: set the 'common-lisp-indent-hook property
  15. of functions I define to that of predefined functions. E.g., set the
  16. indentation of a function I wrote, defmethod, to that of defun, which
  17. is (4 (&whole 4 &rest 1) &body). The problem I have is that emacs does
  18. not know the indentation properties of anything until I hit the first
  19. tab, which causes cl-indent.el to be loaded from the site emacs lisp
  20. directory. So my (put 'defmethod 'common-lisp-indent-hook (get 'defun
  21. 'common-lisp-indent-hook)) directive in the .emacs file does nothing
  22. but insert nil into the common-lisp-indent-hook property of defmethod,
  23. because at load time, that's what is found in the
  24. common-lisp-indent-hook property of defun. I have to reload .emacs
  25. after the first tab to set the common-lisp-indent-hook property of
  26. functions the way I want. Alternatively, I have to explicitly load the
  27. cl-indent.elc file ahead of time myself. This brings path-specific
  28. directives into my .emacs file, which makes it non-portable. Is there
  29. any way of detecting when a file has been loaded and having that
  30. trigger the invocation of some functions? 
  31.  
  32. Ranjit
  33.