emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New major mode using cc-mode => cc-mode intrudes unrelated modes


From: Vagn Johansen
Subject: Re: New major mode using cc-mode => cc-mode intrudes unrelated modes
Date: Fri, 29 Jun 2007 18:22:34 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt)

Jens Peter Secher <address@hidden> writes:

> The problems is that, efter putting a buffer in haxe-mode, cc-mode
> functions intrude into others modes, eg. lisp-mode.  More specifically,
> after visiting the haxe-mode test file in the second attachment, a newly
> created lisp-mode buffer will have eg. beginning-of-defun-function set
> to c-beginning-of-defun.

I encounter the same problem with csharp-mode (moonfire version 0.6.0)
and action script mode (http://blog.pettomato.com/?p=24).

After opening a cs or as3 file and then opening an .el file I then get
errors on most lisp related command (TAB, C-M-A) etc. e.g. TAB gives

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  looking-at(nil)
  c-backward-sws()
  c-beginning-of-statement-1(nil nil t)
  byte-code(<snip>
  c-beginning-of-decl-1(nil)
  c-where-wrt-brace-construct()
  c-beginning-of-defun()
  beginning-of-defun-raw(nil)
  beginning-of-defun()
  calculate-lisp-indent()
  lisp-indent-line(nil)
  call-interactively(lisp-indent-line)


I get "improved" behaviour if I have the following in my .emacs

  (make-variable-buffer-local 'beginning-of-defun-function)
  (make-variable-buffer-local 'end-of-defun-function)

But I have only tried this for 10 minutes.

-- 

Vagn Johansen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]