| View previous topic :: View next topic |
| Author |
Message |
Mickael Veteran


Joined: 05 Sep 2005 Posts: 2267 Location: Besancon - France - EU
|
Posted: Wed Nov 21, 2007 3:24 am Post subject: [EMACS] matlab-shell [SOLVED] |
|
|
Hello,
I've got a little problem. I'm trying to execute matlab inside a buffer (== matlab -nodesktop), but the result of META-x matlab-shell is always the same, matlab don't start inside a buffer :/ he starts with the desktop interface
Please help
EDIT :
| Quote: | < M A T L A B >
Copyright 1984-2005 The MathWorks, Inc.
Version 7.0.4.352 (R14) Service Pack 2
January 29, 2005 |
| Quote: | eix -e matlab
[I] app-emacs/matlab
Available versions: 2.2.3
Installed versions: 2.2.3(11:05:27 06.07.2007)
Homepage: http://matlab-emacs.sourceforge.net/
Description: Major modes for MATLAB dot-m and dot-tlc files |
| Quote: | ;;-----------------------
;; Enable MATLAB mode |
;; --------------------
(autoload 'matlab-mode "matlab" "Matlab Editing Mode" t)
(autoload 'matlab-shell "matlab" "Interactive Matlab mode." t)
(add-to-list 'auto-mode-alist '("\\.m$" . matlab-mode))
(setq matlab-indent-function t) ; if you want function bodies indented
;; So we can open a matlab shell from emacs
(setq matlab-shell-command "matlab")
(defun my-matlab-mode-hook ()
(define-key matlab-mode-map [f5] 'matlab-eei-run-continue)
(define-key matlab-mode-map [f9] 'matlab-shell-run-region)
(define-key matlab-mode-map [f10] 'matlab-eei-step)
(define-key matlab-mode-map [f11] 'matlab-eei-step-in)
(setq fill-column 76))
(add-hook 'matlab-mode-hook 'my-matlab-mode-hook)
;; Turn off Matlab desktop
(setq matlab-shell-command-switches '("-nodesktop")) |
EDIT 2 : Ok, I'had unmerged matlab.el, and now I load matlab.el which is given with matlab and it's worked. The version of this last is the 3.0.1 and there are two other libraries : | Code: | ls /home/mickael/matlab7/java/extern/EmacsLink/lisp/
matlab-eei.el* matlab.el* mlint.el* |
EDIT 3 : It was necessary to configure the preferences inside matlab. There is a TIP inside the matlab directory :
| Code: | | firefox /home/mickael/matlab7/java/extern/EmacsLink/install.html |
Just for information, with this version (3.01) we must complete our DOTemacs with :
| Code: | ;; Edit the path in the following line to reflect the
;; actual location of the MATLAB root directory on your system.
(add-to-list 'load-path "~/matlab7/java/extern/EmacsLink/lisp")
(autoload 'matlab-eei-connect "matlab-eei"
"Connects Emacs to MATLAB's external editor interface.")
(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)
(setq matlab-indent-function t) ; if you want function bodies indented
(setq matlab-verify-on-save-flag nil) ; turn off auto-verify on save
(defun my-matlab-mode-hook ()
(setq fill-column 76)
(imenu-add-to-menubar "Find")) ; where auto-fill should wrap
(add-hook 'matlab-mode-hook 'my-matlab-mode-hook)
;; Uncomment the next two lines to enable use of the mlint package provided
;; with EmacsLink.
;; (setq matlab-show-mlint-warnings t)
;; (setq matlab-highlight-cross-function-variables t)
;; Note: The mlint package checks for common M-file coding
;; errors, such as omitting semicolons at the end of lines.
;; mlint requires Eric Ludlam's cedet package, which is not
;; included in the EmacsLink distribution. If you enable mlint,
;; you must download cedet from http://cedet.sourceforge.net/ and
;; install it on your system before using EmacsLink. |
_________________ À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo |
|
| Back to top |
|
 |
V-Li Developer

Joined: 02 Jan 2006 Posts: 353
|
Posted: Mon Dec 17, 2007 2:48 am Post subject: |
|
|
It would have been nice, if you had made a bug report...this makes life for maintainers easier and more comfortable for all users. _________________ Christian Faulhammer, Gentoo Lisp project, GNU Emacs wrangler
http://www.gentoo.org/proj/en/lisp/ #gentoo-lisp on FreeNode
http://gentoo.faulhammer.org/ |
|
| Back to top |
|
 |
Mickael Veteran


Joined: 05 Sep 2005 Posts: 2267 Location: Besancon - France - EU
|
Posted: Mon Dec 17, 2007 7:27 am Post subject: |
|
|
| V-Li wrote: | | It would have been nice, if you had made a bug report...this makes life for maintainers easier and more comfortable for all users. |
Hello V_li, I'will make a bug report. _________________ À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo |
|
| Back to top |
|
 |
V-Li Developer

Joined: 02 Jan 2006 Posts: 353
|
Posted: Mon Dec 17, 2007 12:12 pm Post subject: |
|
|
| MickTux wrote: | | V-Li wrote: | | It would have been nice, if you had made a bug report...this makes life for maintainers easier and more comfortable for all users. |
Hello V_li, I'will make a bug report. |
Have a look at the Emacs overlay and check the matlab-mode there...we created a corrected version. _________________ Christian Faulhammer, Gentoo Lisp project, GNU Emacs wrangler
http://www.gentoo.org/proj/en/lisp/ #gentoo-lisp on FreeNode
http://gentoo.faulhammer.org/ |
|
| Back to top |
|
 |
Mickael Veteran


Joined: 05 Sep 2005 Posts: 2267 Location: Besancon - France - EU
|
Posted: Wed Dec 19, 2007 2:10 am Post subject: |
|
|
| V-Li wrote: | | MickTux wrote: | | V-Li wrote: | | It would have been nice, if you had made a bug report...this makes life for maintainers easier and more comfortable for all users. |
Hello V_li, I'will make a bug report. |
Have a look at the Emacs overlay and check the matlab-mode there...we created a corrected version. |
The next time I shall pay more attention, and shall post a bug.  _________________ À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo |
|
| Back to top |
|
 |
V-Li Developer

Joined: 02 Jan 2006 Posts: 353
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|