From: Felix E. Klee
Subject: *Good* EMACS Lisp mode?
Date: 
Message-ID: <a7antm$j6jp1$1@ID-84243.news.dfncis.de>
Hi,

is there a better EMACS-Lisp mode than the default emacs-lisp-mode (I am 
using EMACS 20.7.1)? 

I would like to have something similar to the cmuscheme-mode. Its most 
important features are:
1. Expressions can be evaluated from within themselfes with   
   scheme-send-definition, i.e. one doesn't have to go to the end of an 
   expression before evaluating it.
2. The output and results of Lisp expressions are send to a different 
   buffer (invoked with run-scheme) than the minibuffer.

In addition syntax highlighting is almost nonexistent in emacs-lisp-mode 
when compared to the cmuscheme-mode. However, that's probably the fault of 
font-lock-mode.

Felix

From: Rahul Jain
Subject: Re: *Good* EMACS Lisp mode?
Date: 
Message-ID: <87r8melxdy.fsf@photino.sid.rice.edu>
"Felix E. Klee" <··········@inka.de> writes:

> Hi,
> 
> is there a better EMACS-Lisp mode than the default emacs-lisp-mode (I am 
> using EMACS 20.7.1)? 

http://ilisp.sf.net

Or if you use debian, http://cclan.sf.net, add the source to
sources.list and apt-get install ilisp.

-- 
-> -/                        - Rahul Jain -                        \- <-
-> -\  http://linux.rice.edu/~rahul -=-  ············@techie.com   /- <-
-> -/ "Structure is nothing if it is all you got. Skeletons spook  \- <-
-> -\  people if [they] try to walk around on their own. I really  /- <-
-> -/  wonder why XML does not." -- Erik Naggum, comp.lang.lisp    \- <-
|--|--------|--------------|----|-------------|------|---------|-----|-|
   (c)1996-2002, All rights reserved. Disclaimer available upon request.
From: Martin Cracauer
Subject: Re: *Good* EMACS Lisp mode?
Date: 
Message-ID: <a7b3qa$3bj$1@counter.bik-gmbh.de>
Rahul Jain <·····@sid-1129.sid.rice.edu> writes:

>"Felix E. Klee" <··········@inka.de> writes:

>> Hi,
>> 
>> is there a better EMACS-Lisp mode than the default emacs-lisp-mode (I am 
>> using EMACS 20.7.1)? 

>http://ilisp.sf.net

>Or if you use debian, http://cclan.sf.net, add the source to
>sources.list and apt-get install ilisp.

Speaking of indentation in ilisp:

Anyone has a fix to do proper indendation of labels/flet/macrolet? The
normal emacs indent mode that ilisp reuses does not have a concept to
let the user specify indentation for things that look like parameters
to the parser.  Since the body of an flet look a second parameter (the
labdalist being the first, I could not catch it to let it indented at
first indentation level instead of whereever the first parameter
started.

Wanted:
(flet ((foo-with-a-long-name (bar baz)
          (+ baz baz)))

I get:
(flet ((foo-with-a-long-name (bar baz)
                             (+ baz baz)))

It seem the parser in lisp-mode doesn not have an entry point to treat
parameters to s-expressions differently based on their order.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <········@bik-gmbh.de> http://www.bik-gmbh.de/~cracauer/
FreeBSD - where you want to go. Today. http://www.freebsd.org/
From: Thomas F. Burdick
Subject: Re: *Good* EMACS Lisp mode?
Date: 
Message-ID: <xcvit7qvnn3.fsf@famine.OCF.Berkeley.EDU>
········@counter.bik-gmbh.de (Martin Cracauer) writes:

> Speaking of indentation in ilisp:

ILISP doesn't handle the indentation, so you're getting Emacs' crappy
default behavior.  You want to do:
  (setf lisp-indent-function #'common-lisp-indent-function)
in your .emacs file.

-- 
           /|_     .-----------------------.                        
         ,'  .\  / | No to Imperialist war |                        
     ,--'    _,'   | Wage class war!       |                        
    /       /      `-----------------------'                        
   (   -.  |                               
   |     ) |                               
  (`-.  '--.)                              
   `. )----'                               
From: Rahul Jain
Subject: Re: *Good* EMACS Lisp mode?
Date: 
Message-ID: <87it7qlp0g.fsf@photino.sid.rice.edu>
········@counter.bik-gmbh.de (Martin Cracauer) writes:

> Anyone has a fix to do proper indendation of labels/flet/macrolet?

I have to admit that I am using the indentation routines from Franz's
ELI package, grafted into ilisp's lisp-mode. :)

-- 
-> -/                        - Rahul Jain -                        \- <-
-> -\  http://linux.rice.edu/~rahul -=-  ············@techie.com   /- <-
-> -/ "Structure is nothing if it is all you got. Skeletons spook  \- <-
-> -\  people if [they] try to walk around on their own. I really  /- <-
-> -/  wonder why XML does not." -- Erik Naggum, comp.lang.lisp    \- <-
|--|--------|--------------|----|-------------|------|---------|-----|-|
   (c)1996-2002, All rights reserved. Disclaimer available upon request.
From: Nils Goesche
Subject: Re: *Good* EMACS Lisp mode?
Date: 
Message-ID: <87wuw6vmz8.fsf@darkstar.cartan>
········@counter.bik-gmbh.de (Martin Cracauer) writes:

> Speaking of indentation in ilisp:
> 
> Anyone has a fix to do proper indendation of labels/flet/macrolet? The
> normal emacs indent mode that ilisp reuses does not have a concept to
> let the user specify indentation for things that look like parameters
> to the parser.  Since the body of an flet look a second parameter (the
> labdalist being the first, I could not catch it to let it indented at
> first indentation level instead of whereever the first parameter
> started.
> 
> Wanted:
> (flet ((foo-with-a-long-name (bar baz)
>           (+ baz baz)))
> 
> I get:
> (flet ((foo-with-a-long-name (bar baz)
>                              (+ baz baz)))
> 
> It seem the parser in lisp-mode doesn not have an entry point to treat
> parameters to s-expressions differently based on their order.

I haven't used ILISP for quite some time, but does this work:

(setq lisp-indent-function 'common-lisp-indent-function)

Regards,
-- 
Nils Goesche
Ask not for whom the <CONTROL-G> tolls.

PGP key ID 0xC66D6E6F
From: Martin Cracauer
Subject: Re: *Good* EMACS Lisp mode?
Date: 
Message-ID: <a7b71f$56r$1@counter.bik-gmbh.de>
Nils Goesche <···@cartan.de> writes:

>I haven't used ILISP for quite some time, but does this work:

>(setq lisp-indent-function 'common-lisp-indent-function)

After doing
(require 'cl)

it does.

Thanks!

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <········@bik-gmbh.de> http://www.bik-gmbh.de/~cracauer/
FreeBSD - where you want to go. Today. http://www.freebsd.org/