From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vagn Johansen Newsgroups: gmane.emacs.devel Subject: Re: New major mode using cc-mode => cc-mode intrudes unrelated modes Date: Fri, 29 Jun 2007 18:22:34 +0200 Message-ID: References: <87wsxpw62h.fsf@turing.ravneholm26.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183133834 30337 80.91.229.12 (29 Jun 2007 16:17:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2007 16:17:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 29 18:17:13 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I4J9f-0005Ll-Ua for ged-emacs-devel@m.gmane.org; Fri, 29 Jun 2007 18:17:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4J9e-0003c3-OM for ged-emacs-devel@m.gmane.org; Fri, 29 Jun 2007 12:17:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4J9b-0003aR-Jz for emacs-devel@gnu.org; Fri, 29 Jun 2007 12:17:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4J9a-0003aE-4E for emacs-devel@gnu.org; Fri, 29 Jun 2007 12:17:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4J9Z-0003aB-SC for emacs-devel@gnu.org; Fri, 29 Jun 2007 12:17:01 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I4J9Z-0007Z3-8O for emacs-devel@gnu.org; Fri, 29 Jun 2007 12:17:01 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I4J9Q-0003Y6-7E for emacs-devel@gnu.org; Fri, 29 Jun 2007 18:16:52 +0200 Original-Received: from 0x5551567a.adsl.cybercity.dk ([85.81.86.122]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Jun 2007 18:16:52 +0200 Original-Received: from gonz808 by 0x5551567a.adsl.cybercity.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Jun 2007 18:16:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 0x5551567a.adsl.cybercity.dk User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:XfbopvGZtpR3FQWcAePAgtv+QuM= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74034 Archived-At: Jens Peter Secher 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( 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