From: Vagn Johansen <gonz808@hotmail.com>
To: emacs-devel@gnu.org
Subject: Re: New major mode using cc-mode => cc-mode intrudes unrelated modes
Date: Fri, 29 Jun 2007 18:22:34 +0200 [thread overview]
Message-ID: <ubqeyenn9.fsf@hotmail.com> (raw)
In-Reply-To: 87wsxpw62h.fsf@turing.ravneholm26.dk
Jens Peter Secher <jpsecher@gmail.com> 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
next prev parent reply other threads:[~2007-06-29 16:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-27 19:28 New major mode using cc-mode => cc-mode intrudes unrelated modes Jens Peter Secher
2007-06-29 16:22 ` Vagn Johansen [this message]
2007-07-16 22:42 ` Alan Mackenzie
2007-07-17 15:05 ` Richard Stallman
2007-07-17 16:14 ` Jens Peter Secher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ubqeyenn9.fsf@hotmail.com \
--to=gonz808@hotmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.