Re: Proposed fix : emacs e-mode indentation not working

Pierre Radermecker <pradermecker-FFYn/[email protected]>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
Pierre Radermecker wrote:
> I am trying to set up Emacs for E using emacs 22.1 on a linux desktop
> (ubuntu 7.10) and E version 0.91.
> 
> Using the custom-e-mode I can get the *E emulator* buffer and feed lines
> of code. Unfortunately the indentation does not work. I have the
> following error:
> 
> indent-according-to-mode: Symbol's function definition is void:
> c-indent-line
> 
> By adding (require 'cc-mode) at the top of the file, I seem to go a
> little bit further by getting this error :
> 
> c-looking-at-decl-block: Wrong type argument: stringp, nil
> 
> I don't know what I should do to make the function "c-indent-line" work
> correctly.
> 
> Any help would be appreciated. Thanks in advance.
> 
> Regards,
> 

I have managed to make it work by modifying the file custom-e-mode.

I have just added one line with
(c-mode)
in the function (defun run-e () ...

I am not sure this is the correct way to fix it but well ...

It would be nice to have a correction in the svn repository.

Regards,

--
Pierre
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.