bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Emacs hangs if matlab mode is invoked on a certain file


From: Kevin Rodgers
Subject: Re: Emacs hangs if matlab mode is invoked on a certain file
Date: Mon, 29 Aug 2005 16:39:06 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

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 <address@hidden>
> ;; Maintainer: Matt Wette <address@hidden>
> ;; Created: 04 Jan 91
> ;; Version: 1.10.1
> ;; Keywords: matlab, octave
> ;;
> ;; LCD Archive Entry:
> ;; matlab|Matt Wette|address@hidden|
> ;; 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 <address@hidden>,
;;         Eric M. Ludlam <address@hidden>
;; Maintainer: Eric M. Ludlam <address@hidden>
;; 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





reply via email to

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