how to make emacs indent my redefined defun? (in common lisp code)

This is a discussion on how to make emacs indent my redefined defun? (in common lisp code) within the lisp forums in Programming Languages category; Hi, In a project I'm working we use a redefined defun that exports the name of the function by default and may have the key rivate to prevent the function's name from being exported. The syntax is like defmethod's: ;;; the symbol bar is exported (defun bar () ....) ;;; the symbol foo is not exported (defun foo rivate () ...) How to make emacs indent the 'foo' function correctly? I suppose the function that indents defmethod should work, but I don't know how to make emacs use this function for defuns. I tried: (put 'defun 'common-lisp-indent-function 'lisp-indent-defmethod) But it ...

Go Back   Application Development Forum > Programming Languages > lisp

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-19-2008, 05:37 PM
Pedro Kroger
Guest
 
Default how to make emacs indent my redefined defun? (in common lisp code)

Hi,

In a project I'm working we use a redefined defun that exports the
name of the function by default and may have the key rivate to
prevent the function's name from being exported. The syntax is like
defmethod's:

;;; the symbol bar is exported
(defun bar ()
....)

;;; the symbol foo is not exported
(defun foo rivate ()
...)

How to make emacs indent the 'foo' function correctly? I suppose the
function that indents defmethod should work, but I don't know how to
make emacs use this function for defuns. I tried:

(put 'defun 'common-lisp-indent-function 'lisp-indent-defmethod)

But it doesn't work. Any ideas?
Reply With Quote
  #2  
Old 08-20-2008, 02:14 AM
Volkan YAZICI
Guest
 
Default Re: how to make emacs indent my redefined defun? (in common lispcode)

On Aug 20, 12:37 am, Pedro Kroger <pedro.kro...@gmail.com> wrote:
> In a project I'm working we use a redefined defun that exports the
> name of the function by default and may have the key rivate to
> prevent the function's name from being exported.


Actually, while this post is a more related with gnu.emacs.help, here
are my 2 cents: See `lisp-indent-defun-method' variable.


Regards.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:34 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.