From: Alan <ora...@gm...> - 2011-03-23 18:56:14
|
I just realized I forgot to CC the email list. Here is the reply I sent to Eric. Sorry to Eric for getting 2 emails! Thanks for the reply. Using the latest matlab.el (Revision 1.29), here is the output after starting 'emacs -nw', then doing M-x toggle-debug-on-error, then C-x C-f blah.m to create or find a non-existent text file "blah.m": Debugger entered--Lisp error: (void-variable mlfile) (or mlfile "") (file-name-directory (or mlfile "")) (expand-file-name "toolbox/emacsinit.m" (file-name-directory (or mlfile ""))) (let ((mlfile ...) (dir ...)) (and mlfile (file-exists-p dir))) (defvar matlab-shell-use-emacs-toolbox (let (... ...) (and mlfile...)) "Add the `matlab-shell' MATLAB toolbox to the MATLAB path on startup.") eval-buffer(#<buffer *load*> nil "/home/alan/.matlab.el" nil t) ; Reading at buffer position 152939 load-with-code-conversion("/home/alan/.matlab.el" "/home/alan/.matlab.el" nil t) matlab-mode() set-auto-mode-0(matlab-mode nil) set-auto-mode() normal-mode(t) after-find-file(t t) find-file-noselect-1(#<buffer blah.m> "~/blah.m" nil nil "~/blah.m" nil) find-file-noselect("~/blah.m" nil nil t) find-file("~/blah.m" t) call-interactively(find-file nil nil) Some further info about my setup: I renamed the file matlab.el to .matlab.el, and used the following code in my .emacs file: (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) Any suggestions or hints? Thanks, Alan On Wed, Mar 23, 2011 at 9:01 AM, Eric Ludlam <Eri...@ma...> wrote: > Hi, > > Can you do: > > M-x toggle-debug-on-error RET > > and reproduce the error? The resulting stack will help identify the culprit. > > Eric > > -----Original Message----- > From: Alan [mailto:ora...@gm...] > Sent: Sunday, March 20, 2011 12:57 AM > To: mat...@li... > Subject: [Matlab-emacs-discuss] File mode specification error: (wrong-type-argument stringp nil) > > Hi, > > I'm trying to use just the matlab.el file for editing code. However, > if I use any version >= 3.3.0 (corresponding to revision number >= > 1.14), I get the following error: > > File mode specification error: (wrong-type-argument stringp nil) > > whenever I try to open a .m file in emacs. This happens with emacs > versions 21 and 23. > > Has this happened to anyone before? Know of any fixes? > > Thanks for your help, > > Alan > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > |