🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #1845

cl-indent

#1845
From: Ranjit Konkar
Date: Sun, 22 Nov 1992 11:25
20 lines
1610 bytes
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
Technical Details
Message-ID: <KONKAR.92Nov22112505@bimini.stanford.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!stanford.edu!leland.Stanford.EDU!leland!konkar

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.help
Path: arc1-ca.pugleaf.net!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