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