From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Emacs hangs if matlab mode is invoked on a certain file Date: Mon, 29 Aug 2005 16:39:06 -0600 Message-ID: References: <43137A60.3020504@intrusic.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1125356382 27390 80.91.229.2 (29 Aug 2005 22:59:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2005 22:59:42 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 30 00:59:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E9sa7-0000vL-OC for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Aug 2005 00:58:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9seD-0007FP-8q for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Aug 2005 19:02:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E9sZd-0006jn-80 for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2005 18:57:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E9sZQ-0006eU-J0 for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2005 18:57:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9sZQ-0006V1-7T for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2005 18:57:40 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E9sML-0000Ns-Hu for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2005 18:44:09 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E9sIf-0005lR-1h for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2005 00:40:21 +0200 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Aug 2005 00:40:21 +0200 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Aug 2005 00:40:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 67 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <43137A60.3020504@intrusic.com> X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:12867 Archived-At: Michael Smolsky wrote: > Configure emacs to use matlab mode on .m files (lines from .emacs follow): > ----------------------------- > ; matlab-mode stuff > (autoload 'matlab-mode "matlab" "Enter Matlab mode." t) > (setq auto-mode-alist (cons '("\\.m\\'" . matlab-mode) auto-mode-alist)) > (autoload 'matlab-shell "matlab" "Interactive Matlab mode." t) > ----------------------------- > > Start emacs > Load file tst.m (attached to this message). Observe matlab mode getting > loaded (.el file attached) > Try to add a few empty lines to the end of the file. > See how emacs starts consuming 100% of cputime and doesn't respond to > any keystrokes. ... > ;;; matlab.el --- major mode for MATLAB dot-m files > ;; > ;; Author: Matt Wette > ;; Maintainer: Matt Wette > ;; Created: 04 Jan 91 > ;; Version: 1.10.1 > ;; Keywords: matlab, octave > ;; > ;; LCD Archive Entry: > ;; matlab|Matt Wette|mwette@alumni.caltech.edu| > ;; Major mode for MATLAB dot-m files| > ;; 30-May-97|1.10.1|~/modes/matlab.el.Z| > ;; > ;; Copyright (C) 1991-1997 Matthew R. Wette Try this version: http://www.mathworks.com/matlabcentral/files/104/matlab.el which says: ;;; matlab.el --- major mode for MATLAB dot-m files ;; ;; Author: Matt Wette , ;; Eric M. Ludlam ;; Maintainer: Eric M. Ludlam ;; Created: 04 Jan 91 ;; Version: 2.3.1 ;; Keywords: MATLAB ;; ;; Copyright (C) 1997-2003 Eric M. Ludlam ;; Copyright (C) 1991-1997 Matthew R. Wette ... ;;; Finding Updates: ;; ;; The latest stable version of matlab.el can be found on MATLAB Central: ;; ;; Catagory: ;; http://www.mathworks.com/matlabcentral/fileexchange/loadCategory.do?objectId=19&objectType=Category ;; This File ;; http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=104&objectType=file ;; ;; Older versions of matlab.el can be found in as matlab.el.1.10.1 ;; for emacsen that do not have the latest additional utilities such ;; as tempo and derived. -- Kevin Rodgers