You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(9) |
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2009 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(7) |
Aug
(1) |
Sep
(5) |
Oct
|
Nov
(6) |
Dec
(3) |
2010 |
Jan
|
Feb
(10) |
Mar
(12) |
Apr
(13) |
May
(2) |
Jun
(4) |
Jul
(4) |
Aug
(4) |
Sep
|
Oct
(4) |
Nov
(2) |
Dec
(4) |
2011 |
Jan
(11) |
Feb
|
Mar
(18) |
Apr
|
May
(1) |
Jun
(12) |
Jul
(10) |
Aug
(4) |
Sep
(4) |
Oct
(5) |
Nov
|
Dec
(10) |
2012 |
Jan
(4) |
Feb
(26) |
Mar
|
Apr
(1) |
May
|
Jun
(8) |
Jul
(3) |
Aug
(1) |
Sep
|
Oct
(14) |
Nov
(1) |
Dec
(2) |
2013 |
Jan
(5) |
Feb
(2) |
Mar
(2) |
Apr
(5) |
May
(3) |
Jun
|
Jul
(8) |
Aug
(4) |
Sep
|
Oct
(7) |
Nov
(2) |
Dec
(7) |
2014 |
Jan
(14) |
Feb
|
Mar
(6) |
Apr
|
May
(3) |
Jun
(2) |
Jul
(4) |
Aug
(3) |
Sep
(7) |
Oct
(9) |
Nov
(9) |
Dec
(5) |
2015 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(1) |
Jun
(10) |
Jul
(3) |
Aug
(4) |
Sep
(8) |
Oct
(1) |
Nov
(3) |
Dec
(3) |
2016 |
Jan
(12) |
Feb
(59) |
Mar
(23) |
Apr
(11) |
May
(4) |
Jun
(15) |
Jul
|
Aug
|
Sep
(9) |
Oct
(19) |
Nov
(12) |
Dec
(5) |
2017 |
Jan
(1) |
Feb
(5) |
Mar
(5) |
Apr
|
May
(2) |
Jun
|
Jul
(5) |
Aug
|
Sep
(3) |
Oct
(12) |
Nov
(15) |
Dec
|
2018 |
Jan
(7) |
Feb
(6) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(2) |
Oct
(4) |
Nov
|
Dec
|
2019 |
Jan
(2) |
Feb
(9) |
Mar
(4) |
Apr
(9) |
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
|
Oct
(2) |
Nov
(6) |
Dec
(5) |
2020 |
Jan
(9) |
Feb
|
Mar
(2) |
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
(28) |
Dec
(5) |
2021 |
Jan
(11) |
Feb
(2) |
Mar
(2) |
Apr
(2) |
May
(15) |
Jun
(9) |
Jul
(11) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
(3) |
2022 |
Jan
(1) |
Feb
|
Mar
|
Apr
(9) |
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
(4) |
Jun
|
Jul
(22) |
Aug
(3) |
Sep
|
Oct
(1) |
Nov
|
Dec
(14) |
2024 |
Jan
|
Feb
|
Mar
|
Apr
(17) |
May
(35) |
Jun
(1) |
Jul
(18) |
Aug
(31) |
Sep
(5) |
Oct
(18) |
Nov
(20) |
Dec
(9) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
(5) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Eric L. <Eri...@ma...> - 2015-12-02 17:03:45
|
Hi Tunc, I looked into this for a bit, and it seems like the output Emacs was interpreting for the debugger has changed. I spent a little time trying to divine how to get it up and running, but I wasn’t successful. I’m not sure how to make MATLAB spit out hotlinks anymore. ☹ The next step is for someone to come up with and updated or new REGEXP for handling errors. (See gud-matlab-error-regexp) and for the breakpoint detection regexps. (See gud-matlab-marker-regexp-2) . Unfortunately, I don’t have as much time to play with this sort of thing as I used to. ☹ Eric From: Tunc Aydin [mailto:tun...@gm...] Sent: Saturday, November 07, 2015 3:05 PM To: mat...@li... Subject: [Matlab-emacs-discuss] Debugging Hi all, I recently started using matlab-emacs (MacOS X El Capitan, Emacs 24.5 (homebrew), Matlab R2015b). I managed to get a number of things working, such as displaying mlint warnings, autocompletion, the command "edit" launching .m files in emacs, etc. However some debugging related features are not working for me. 1. No html links in matlab shell. My emacsinit.m has the line "feature('HotLinks','on');", but I never saw a single hyperlink being displayed in matlab shell 2. No "automatically open files when matlab reaches a breakpoint". I tick this box from matlab's preferences. Then when I launch matlab-shell from emacs I don't get the expected functionality. In fact launching matlab-shell seems to reset this option to false. 3. No visual indication of the current execution point. From what I understand a small triangle should show up at the current execution point when I'm debugging (http://blog.angjookanazawa.com/post/8815280589/productivity-matlab-emacs-integration-more) I'd appreciate if people could help me with these issues. Many thanks to Eric Ludlam and other contributors for making this great mode! Best, -tunc |
From: Eric L. <Eri...@ma...> - 2015-12-02 17:03:44
|
Hi Yuval, If you set: M-x toggle-debug-on-quit RET then the next time you get a hang, press C-g to see the stack. Hopefully that will help you find the offending code, and perhaps someone can come up with a patch. Eric From: Yuval A. [mailto:yuv...@gm...] Sent: Sunday, November 15, 2015 9:43 AM To: mat...@li... Subject: [Matlab-emacs-discuss] Matlab shell freezes emacs when entering a multiline text Hi, When I copy-pasted a simple text into the matlab-shell, it makes emacs freeze. This issue is reproducible (emacs 24.3, matlab 2014b) To reproduce, simply copy paste the following and press RET ne = 20; struct('Tcnt', 100e3, 'max_step_size', [ .001 .01 .1 1], ... 'sparse_weight', [ .002 .02 .2 .25 .35 .8 8], ... 'eta_bound_w', 0.3, 'logdet_weight',[50], 'num_d_repeats', ne, ... 'stepsize_diag', 10, 'n_steps_diag', 30) Any idea how to overcome this issue? Thanks, Yuval |
From: Hunter M. <hun...@gm...> - 2015-11-16 12:41:18
|
I was curious, so I tried on my setup... no freeze. I have MATLAB 2015a, Emacs 24.3.1, in case it helps. -Hunter On Sun, Nov 15, 2015 at 9:43 AM, Yuval A. <yuv...@gm...> wrote: > Hi, > > When I copy-pasted a simple text into the matlab-shell, it makes emacs > freeze. > This issue is reproducible (emacs 24.3, matlab 2014b) > > To reproduce, simply copy paste the following and press RET > > ne = 20; struct('Tcnt', 100e3, 'max_step_size', [ .001 .01 .1 1], ... > 'sparse_weight', [ .002 .02 .2 .25 .35 .8 8], ... > 'eta_bound_w', 0.3, 'logdet_weight',[50], > 'num_d_repeats', ne, ... > 'stepsize_diag', 10, 'n_steps_diag', 30) > > Any idea how to overcome this issue? > > Thanks, > Yuval > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > |
From: Yuval A. <yuv...@gm...> - 2015-11-15 14:43:32
|
Hi, When I copy-pasted a simple text into the matlab-shell, it makes emacs freeze. This issue is reproducible (emacs 24.3, matlab 2014b) To reproduce, simply copy paste the following and press RET ne = 20; struct('Tcnt', 100e3, 'max_step_size', [ .001 .01 .1 1], ... 'sparse_weight', [ .002 .02 .2 .25 .35 .8 8], ... 'eta_bound_w', 0.3, 'logdet_weight',[50], 'num_d_repeats', ne, ... 'stepsize_diag', 10, 'n_steps_diag', 30) Any idea how to overcome this issue? Thanks, Yuval |
From: Tunc A. <tun...@gm...> - 2015-11-07 20:05:17
|
Hi all, I recently started using matlab-emacs (MacOS X El Capitan, Emacs 24.5 (homebrew), Matlab R2015b). I managed to get a number of things working, such as displaying mlint warnings, autocompletion, the command "edit" launching .m files in emacs, etc. However some debugging related features are not working for me. 1. No html links in matlab shell. My emacsinit.m has the line "feature('HotLinks','on');", but I never saw a single hyperlink being displayed in matlab shell 2. No "automatically open files when matlab reaches a breakpoint". I tick this box from matlab's preferences. Then when I launch matlab-shell from emacs I don't get the expected functionality. In fact launching matlab-shell seems to reset this option to false. 3. No visual indication of the current execution point. From what I understand a small triangle should show up at the current execution point when I'm debugging ( http://blog.angjookanazawa.com/post/8815280589/productivity-matlab-emacs-integration-more ) I'd appreciate if people could help me with these issues. Many thanks to Eric Ludlam and other contributors for making this great mode! Best, -tunc |
From: Eric L. <Eri...@ma...> - 2015-10-01 14:00:36
|
There isn’t much in the way of documentation for the matlab-mode stuff. Both the mode, minor mode, and debugging work similarly to all the other modes and debuggers in Emacs, so it didn’t seem necessary. If someone wanted to write up some stuff, I’d be happy to update the website on sourceforge with the new content. There is also this blog post: http://blogs.mathworks.com/community/2009/09/14/matlab-emacs-integration-is-back/ but some of that is a bit dated at this point. Eric From: yu...@gm... [mailto:yu...@gm...] On Behalf Of Yuval A. Sent: Saturday, September 19, 2015 3:54 PM To: Eric Ludlam <Eri...@ma...> Cc: Dennis Ogbe <do...@pu...>; mat...@li... Subject: Re: [Matlab-emacs-discuss] matlab-emacs fails to open a file for edit (2014a) Thank you for all your assistance! It wasn't enough having (start-server) on .emacs I solved it by adding to emacsinit.m the following line: setenv('EDITOR', clientcommand); on the last line of the "if usejava(..)" block BTW: I couldn't find where all the goodies are documented. (e.g. autocomplete, debugging, ...) I found some goodies on personal blogs of people. But I was wandering if there's anywhere central with the documentation. Thanks again! Yuval On Fri, Sep 18, 2015 at 11:39 PM, Eric Ludlam <Eri...@ma...<mailto:Eri...@ma...>> wrote: The matlab setup for Emacs sets the editor preference to “emacsclient –n”. Emacsclient itself depends on the EDITOR command to be set so it can find your emacs. Thus if emacsclient can’t find Emacs already running (because you didn’t setup emacs client) it will try to start Emacs via EDITOR. You may only need (server-start) in your .emacs file. Try using emacsclient by itself, and when that works, your Matlab shell should be good too. Eric From: Yuval A. [mailto:yuv...@gm...<mailto:yuv...@gm...>] Sent: Thursday, September 17, 2015 12:05 AM To: Dennis Ogbe <do...@pu...<mailto:do...@pu...>> Cc: mat...@li...<mailto:mat...@li...> Subject: Re: [Matlab-emacs-discuss] matlab-emacs fails to open a file for edit (2014a) Thanks! I managed to isolate the issue. On both machines, when I connect with ssh with no X forwarding then I get the error Error: Environment variable EDITOR is not set. Error using edit (line 61) "Unknown service" However, if I connect with X forwarding then everything is ok (editing / debugging works). Since I would like to use tmux, and keep the session alive even when I disconnect from the ssh, then I cannot use X forwarding, because otherwise, matlab will crash. So anyone has any idea why I get "Error: Environment variable EDITOR is not set." when I don't use X fwding? and how to fix it? Many Thanks! Yuval PS: that's my .emacs file contents: ;; default to better frame titles (setq frame-title-format (concat "%b - emacs@" (system-name))) ;; default to unified diffs (setq diff-switches "-u") ;; always end a file with a newline ;(setq require-final-newline 'query) ;; map C-h to backspace since thats what the terminal prog. sends ;; and then map help to f1 (define-key key-translation-map [?\C-h] [?\C-?]) (global-set-key (kbd "<f1>") 'help-command) ;; change window sizes (global-set-key (kbd "<M-down>") 'shrink-window) (global-set-key (kbd "<M-up>") 'enlarge-window) (global-set-key (kbd "<M-left>") 'shrink-window-horizontally) (global-set-key (kbd "<M-right>") 'enlarge-window-horizontally) ;; for GDB/debugging in general (global-set-key (kbd "<f10>") 'gud-cont) (global-set-key (kbd "<f9>") 'gud-step);; equiv matlab step in (global-set-key (kbd "<f8>") 'gud-next) ;; equiv matlab step 1 (global-set-key (kbd "<f7>") 'gud-finish) ;; equiv matlab step out ;; Setting up matlab-mode (server-start) (add-to-list 'load-path "~/externals/matlab-emacs") (load-library "matlab-load") (add-to-list 'auto-mode-alist '("\\.m$<file:///\\.m$>" . matlab-mode)) (custom-set-variables '(matlab-shell-command-switches '("-nodesktop -nosplash"))) (add-hook 'matlab-mode-hook 'auto-complete-mode) ;;(setq auto-mode-alist ;; (cons ;; '("\\.m$<file:///\\.m$>" . matlab-mode) ;; auto-mode-alist)) ;; Enable CEDET feature support for MATLAB code. (Optional) (matlab-cedet-setup) On Wed, Sep 16, 2015 at 8:28 PM, Dennis Ogbe <do...@pu...<mailto:do...@pu...>> wrote: Do you have (add-to-list 'auto-mode-alist '("\\.m$<file:///\\.m$>" . matlab-mode)) in your init.el? Best, Dennis Yuval A. <yuv...@gm...<mailto:yuv...@gm...>> writes: > I downloaded and installed the matlab-emacs project from > http://matlab-emacs.sourceforge.net/ using the dl_emacs_support.m script > and edited my .emacs file according to the instructions. > > When I run > > M-x matlab-shell > > The matlab shell runs successfully, and the following line is shown: > > >> addpath('/home/lab/yuvval/externals/matlab-emacs/toolbox','-begin'); > rehash; emacsinit('emacsclient -n'); > > > However when I try to edit a file ( edit tmp.m), nothing happens. Even no > error messages.. > > > I have access to a linux machine in a different university. When I tried > the same there I got the following error message: > > Error: Environment variable EDITOR is not set. > Error using edit (line 61) > "Unknown service" > > > > Does anyone know how to solve it? I would love to be able to edit and debug > matlab code from emacs. > > Thanks! > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now! > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140_______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li...<mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |
From: Yuval A. <yuv...@gm...> - 2015-09-19 19:54:29
|
Thank you for all your assistance! It wasn't enough having (start-server) on .emacs I solved it by adding to emacsinit.m the following line: setenv('EDITOR', clientcommand); on the last line of the "if usejava(..)" block BTW: I couldn't find where all the goodies are documented. (e.g. autocomplete, debugging, ...) I found some goodies on personal blogs of people. But I was wandering if there's anywhere central with the documentation. Thanks again! Yuval On Fri, Sep 18, 2015 at 11:39 PM, Eric Ludlam <Eri...@ma...> wrote: > The matlab setup for Emacs sets the editor preference to “emacsclient > –n”. Emacsclient itself depends on the EDITOR command to be set so it can > find your emacs. Thus if emacsclient can’t find Emacs already running > (because you didn’t setup emacs client) it will try to start Emacs via > EDITOR. > > > > You may only need (server-start) in your .emacs file. > > > > Try using emacsclient by itself, and when that works, your Matlab shell > should be good too. > > > > Eric > > > > *From:* Yuval A. [mailto:yuv...@gm...] > *Sent:* Thursday, September 17, 2015 12:05 AM > *To:* Dennis Ogbe <do...@pu...> > *Cc:* mat...@li... > *Subject:* Re: [Matlab-emacs-discuss] matlab-emacs fails to open a file > for edit (2014a) > > > > Thanks! > > > > I managed to isolate the issue. On both machines, when I connect with ssh > with no X forwarding then I get the error > > > > Error: Environment variable EDITOR is not set. > > Error using edit (line 61) > > "Unknown service" > > > > However, if I connect with X forwarding then everything is ok (editing / > debugging works). > > > > Since I would like to use tmux, and keep the session alive even when I > disconnect from the ssh, then I cannot use X forwarding, because otherwise, > matlab will crash. > > > > So anyone has any idea why I get "Error: Environment variable EDITOR is > not set." when I don't use X fwding? and how to fix it? > > > > Many Thanks! > > Yuval > > > > > > PS: that's my .emacs file contents: > > > > > > ;; default to better frame titles > > (setq frame-title-format > > (concat "%b - emacs@" (system-name))) > > > > ;; default to unified diffs > > (setq diff-switches "-u") > > > > ;; always end a file with a newline > > ;(setq require-final-newline 'query) > > > > ;; map C-h to backspace since thats what the terminal prog. sends > > ;; and then map help to f1 > > (define-key key-translation-map [?\C-h] [?\C-?]) > > (global-set-key (kbd "<f1>") 'help-command) > > > > ;; change window sizes > > (global-set-key (kbd "<M-down>") 'shrink-window) > > (global-set-key (kbd "<M-up>") 'enlarge-window) > > (global-set-key (kbd "<M-left>") 'shrink-window-horizontally) > > (global-set-key (kbd "<M-right>") 'enlarge-window-horizontally) > > > > ;; for GDB/debugging in general > > (global-set-key (kbd "<f10>") 'gud-cont) > > (global-set-key (kbd "<f9>") 'gud-step);; equiv matlab step in > > (global-set-key (kbd "<f8>") 'gud-next) ;; equiv matlab step 1 > > (global-set-key (kbd "<f7>") 'gud-finish) ;; equiv matlab step out > > > > ;; Setting up matlab-mode > > (server-start) > > (add-to-list 'load-path "~/externals/matlab-emacs") > > (load-library "matlab-load") > > > > > > (add-to-list > > 'auto-mode-alist > > '("\\.m$" . matlab-mode)) > > (custom-set-variables > > '(matlab-shell-command-switches '("-nodesktop -nosplash"))) > > (add-hook 'matlab-mode-hook 'auto-complete-mode) > > ;;(setq auto-mode-alist > > ;; (cons > > ;; '("\\.m$" . matlab-mode) > > ;; auto-mode-alist)) > > > > ;; Enable CEDET feature support for MATLAB code. (Optional) > > (matlab-cedet-setup) > > > > > > > > > > On Wed, Sep 16, 2015 at 8:28 PM, Dennis Ogbe <do...@pu...> wrote: > > Do you have > > (add-to-list > 'auto-mode-alist > '("\\.m$" . matlab-mode)) > > in your init.el? > > Best, > Dennis > > > Yuval A. <yuv...@gm...> writes: > > > I downloaded and installed the matlab-emacs project from > > http://matlab-emacs.sourceforge.net/ using the dl_emacs_support.m script > > and edited my .emacs file according to the instructions. > > > > When I run > > > > M-x matlab-shell > > > > The matlab shell runs successfully, and the following line is shown: > > > > >> > addpath('/home/lab/yuvval/externals/matlab-emacs/toolbox','-begin'); > > rehash; emacsinit('emacsclient -n'); > > > > > > However when I try to edit a file ( edit tmp.m), nothing happens. Even no > > error messages.. > > > > > > I have access to a linux machine in a different university. When I tried > > the same there I got the following error message: > > > > Error: Environment variable EDITOR is not set. > > Error using edit (line 61) > > "Unknown service" > > > > > > > > Does anyone know how to solve it? I would love to be able to edit and > debug > > matlab code from emacs. > > > > Thanks! > > > > ------------------------------------------------------------------------------ > > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > > Get real-time metrics from all of your servers, apps and tools > > in one place. > > SourceForge users - Click here to start your Free Trial of Datadog now! > > > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140_______________________________________________ > > Matlab-emacs-discuss mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > > |
From: Eric L. <Eri...@ma...> - 2015-09-18 20:39:44
|
The matlab setup for Emacs sets the editor preference to “emacsclient –n”. Emacsclient itself depends on the EDITOR command to be set so it can find your emacs. Thus if emacsclient can’t find Emacs already running (because you didn’t setup emacs client) it will try to start Emacs via EDITOR. You may only need (server-start) in your .emacs file. Try using emacsclient by itself, and when that works, your Matlab shell should be good too. Eric From: Yuval A. [mailto:yuv...@gm...] Sent: Thursday, September 17, 2015 12:05 AM To: Dennis Ogbe <do...@pu...> Cc: mat...@li... Subject: Re: [Matlab-emacs-discuss] matlab-emacs fails to open a file for edit (2014a) Thanks! I managed to isolate the issue. On both machines, when I connect with ssh with no X forwarding then I get the error Error: Environment variable EDITOR is not set. Error using edit (line 61) "Unknown service" However, if I connect with X forwarding then everything is ok (editing / debugging works). Since I would like to use tmux, and keep the session alive even when I disconnect from the ssh, then I cannot use X forwarding, because otherwise, matlab will crash. So anyone has any idea why I get "Error: Environment variable EDITOR is not set." when I don't use X fwding? and how to fix it? Many Thanks! Yuval PS: that's my .emacs file contents: ;; default to better frame titles (setq frame-title-format (concat "%b - emacs@" (system-name))) ;; default to unified diffs (setq diff-switches "-u") ;; always end a file with a newline ;(setq require-final-newline 'query) ;; map C-h to backspace since thats what the terminal prog. sends ;; and then map help to f1 (define-key key-translation-map [?\C-h] [?\C-?]) (global-set-key (kbd "<f1>") 'help-command) ;; change window sizes (global-set-key (kbd "<M-down>") 'shrink-window) (global-set-key (kbd "<M-up>") 'enlarge-window) (global-set-key (kbd "<M-left>") 'shrink-window-horizontally) (global-set-key (kbd "<M-right>") 'enlarge-window-horizontally) ;; for GDB/debugging in general (global-set-key (kbd "<f10>") 'gud-cont) (global-set-key (kbd "<f9>") 'gud-step);; equiv matlab step in (global-set-key (kbd "<f8>") 'gud-next) ;; equiv matlab step 1 (global-set-key (kbd "<f7>") 'gud-finish) ;; equiv matlab step out ;; Setting up matlab-mode (server-start) (add-to-list 'load-path "~/externals/matlab-emacs") (load-library "matlab-load") (add-to-list 'auto-mode-alist '("\\.m$<file:///\\.m$>" . matlab-mode)) (custom-set-variables '(matlab-shell-command-switches '("-nodesktop -nosplash"))) (add-hook 'matlab-mode-hook 'auto-complete-mode) ;;(setq auto-mode-alist ;; (cons ;; '("\\.m$<file:///\\.m$>" . matlab-mode) ;; auto-mode-alist)) ;; Enable CEDET feature support for MATLAB code. (Optional) (matlab-cedet-setup) On Wed, Sep 16, 2015 at 8:28 PM, Dennis Ogbe <do...@pu...<mailto:do...@pu...>> wrote: Do you have (add-to-list 'auto-mode-alist '("\\.m$<file:///\\.m$>" . matlab-mode)) in your init.el? Best, Dennis Yuval A. <yuv...@gm...<mailto:yuv...@gm...>> writes: > I downloaded and installed the matlab-emacs project from > http://matlab-emacs.sourceforge.net/ using the dl_emacs_support.m script > and edited my .emacs file according to the instructions. > > When I run > > M-x matlab-shell > > The matlab shell runs successfully, and the following line is shown: > > >> addpath('/home/lab/yuvval/externals/matlab-emacs/toolbox','-begin'); > rehash; emacsinit('emacsclient -n'); > > > However when I try to edit a file ( edit tmp.m), nothing happens. Even no > error messages.. > > > I have access to a linux machine in a different university. When I tried > the same there I got the following error message: > > Error: Environment variable EDITOR is not set. > Error using edit (line 61) > "Unknown service" > > > > Does anyone know how to solve it? I would love to be able to edit and debug > matlab code from emacs. > > Thanks! > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now! > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140_______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li...<mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |
From: Yuval A. <yuv...@gm...> - 2015-09-17 04:05:37
|
Thanks! I managed to isolate the issue. On both machines, when I connect with ssh with no X forwarding then I get the error Error: Environment variable EDITOR is not set. Error using edit (line 61) "Unknown service" However, if I connect with X forwarding then everything is ok (editing / debugging works). Since I would like to use tmux, and keep the session alive even when I disconnect from the ssh, then I cannot use X forwarding, because otherwise, matlab will crash. So anyone has any idea why I get "Error: Environment variable EDITOR is not set." when I don't use X fwding? and how to fix it? Many Thanks! Yuval PS: that's my .emacs file contents: ;; default to better frame titles (setq frame-title-format (concat "%b - emacs@" (system-name))) ;; default to unified diffs (setq diff-switches "-u") ;; always end a file with a newline ;(setq require-final-newline 'query) ;; map C-h to backspace since thats what the terminal prog. sends ;; and then map help to f1 (define-key key-translation-map [?\C-h] [?\C-?]) (global-set-key (kbd "<f1>") 'help-command) ;; change window sizes (global-set-key (kbd "<M-down>") 'shrink-window) (global-set-key (kbd "<M-up>") 'enlarge-window) (global-set-key (kbd "<M-left>") 'shrink-window-horizontally) (global-set-key (kbd "<M-right>") 'enlarge-window-horizontally) ;; for GDB/debugging in general (global-set-key (kbd "<f10>") 'gud-cont) (global-set-key (kbd "<f9>") 'gud-step);; equiv matlab step in (global-set-key (kbd "<f8>") 'gud-next) ;; equiv matlab step 1 (global-set-key (kbd "<f7>") 'gud-finish) ;; equiv matlab step out ;; Setting up matlab-mode (server-start) (add-to-list 'load-path "~/externals/matlab-emacs") (load-library "matlab-load") (add-to-list 'auto-mode-alist '("\\.m$" . matlab-mode)) (custom-set-variables '(matlab-shell-command-switches '("-nodesktop -nosplash"))) (add-hook 'matlab-mode-hook 'auto-complete-mode) ;;(setq auto-mode-alist ;; (cons ;; '("\\.m$" . matlab-mode) ;; auto-mode-alist)) ;; Enable CEDET feature support for MATLAB code. (Optional) (matlab-cedet-setup) On Wed, Sep 16, 2015 at 8:28 PM, Dennis Ogbe <do...@pu...> wrote: > Do you have > > (add-to-list > 'auto-mode-alist > '("\\.m$" . matlab-mode)) > > in your init.el? > > Best, > Dennis > > Yuval A. <yuv...@gm...> writes: > > > I downloaded and installed the matlab-emacs project from > > http://matlab-emacs.sourceforge.net/ using the dl_emacs_support.m script > > and edited my .emacs file according to the instructions. > > > > When I run > > > > M-x matlab-shell > > > > The matlab shell runs successfully, and the following line is shown: > > > > >> > addpath('/home/lab/yuvval/externals/matlab-emacs/toolbox','-begin'); > > rehash; emacsinit('emacsclient -n'); > > > > > > However when I try to edit a file ( edit tmp.m), nothing happens. Even no > > error messages.. > > > > > > I have access to a linux machine in a different university. When I tried > > the same there I got the following error message: > > > > Error: Environment variable EDITOR is not set. > > Error using edit (line 61) > > "Unknown service" > > > > > > > > Does anyone know how to solve it? I would love to be able to edit and > debug > > matlab code from emacs. > > > > Thanks! > > > ------------------------------------------------------------------------------ > > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > > Get real-time metrics from all of your servers, apps and tools > > in one place. > > SourceForge users - Click here to start your Free Trial of Datadog now! > > > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140_______________________________________________ > > Matlab-emacs-discuss mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > |
From: Dennis O. <do...@pu...> - 2015-09-16 17:28:52
|
Do you have (add-to-list 'auto-mode-alist '("\\.m$" . matlab-mode)) in your init.el? Best, Dennis Yuval A. <yuv...@gm...> writes: > I downloaded and installed the matlab-emacs project from > http://matlab-emacs.sourceforge.net/ using the dl_emacs_support.m script > and edited my .emacs file according to the instructions. > > When I run > > M-x matlab-shell > > The matlab shell runs successfully, and the following line is shown: > > >> addpath('/home/lab/yuvval/externals/matlab-emacs/toolbox','-begin'); > rehash; emacsinit('emacsclient -n'); > > > However when I try to edit a file ( edit tmp.m), nothing happens. Even no > error messages.. > > > I have access to a linux machine in a different university. When I tried > the same there I got the following error message: > > Error: Environment variable EDITOR is not set. > Error using edit (line 61) > "Unknown service" > > > > Does anyone know how to solve it? I would love to be able to edit and debug > matlab code from emacs. > > Thanks! > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now! > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140_______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |
From: Yuval A. <yuv...@gm...> - 2015-09-16 05:28:04
|
Hi Again, I think I understand the cause of my issue. I try to run it from emacs in terminal (emacs -nw). Is this mode is supported by matlab-emacs? Since my internet connection to the linux machine is slow, using the X version of emacs wouldn't be useful. Thanks again. On Wed, Sep 16, 2015 at 7:48 AM, Yuval A. <yuv...@gm...> wrote: > I downloaded and installed the matlab-emacs project from > http://matlab-emacs.sourceforge.net/ using the dl_emacs_support.m script > and edited my .emacs file according to the instructions. > > When I run > > M-x matlab-shell > > The matlab shell runs successfully, and the following line is shown: > > >> > addpath('/home/lab/yuvval/externals/matlab-emacs/toolbox','-begin'); > rehash; emacsinit('emacsclient -n'); > > > However when I try to edit a file ( edit tmp.m), nothing happens. Even no > error messages.. > > > I have access to a linux machine in a different university. When I tried > the same there I got the following error message: > > Error: Environment variable EDITOR is not set. > Error using edit (line 61) > "Unknown service" > > > > Does anyone know how to solve it? I would love to be able to edit and > debug matlab code from emacs. > > Thanks! > |
From: Yuval A. <yuv...@gm...> - 2015-09-16 04:48:40
|
I downloaded and installed the matlab-emacs project from http://matlab-emacs.sourceforge.net/ using the dl_emacs_support.m script and edited my .emacs file according to the instructions. When I run M-x matlab-shell The matlab shell runs successfully, and the following line is shown: >> addpath('/home/lab/yuvval/externals/matlab-emacs/toolbox','-begin'); rehash; emacsinit('emacsclient -n'); However when I try to edit a file ( edit tmp.m), nothing happens. Even no error messages.. I have access to a linux machine in a different university. When I tried the same there I got the following error message: Error: Environment variable EDITOR is not set. Error using edit (line 61) "Unknown service" Does anyone know how to solve it? I would love to be able to edit and debug matlab code from emacs. Thanks! |
From: Yuval A. <yu...@gm...> - 2015-09-16 04:45:16
|
I downloaded and installed the matlab-emacs project from http://matlab-emacs.sourceforge.net/ using the dl_emacs_support.m script and edited my .emacs file according to the instructions. When I run M-x matlab-shell The matlab shell runs successfully, and the following line is shown: >> addpath('/home/lab/yuvval/externals/matlab-emacs/toolbox','-begin'); rehash; emacsinit('emacsclient -n'); However when I try to edit a file ( edit tmp.m), nothing happens. Even no error messages.. I have access to a linux machine in a different university. When I tried the same there I got the following error message: Error: Environment variable EDITOR is not set. Error using edit (line 61) "Unknown service" Does anyone know how to solve it? I would love to be able to edit and debug matlab code from emacs. Thanks! |
From: Christian S. <crs...@um...> - 2015-09-14 01:10:33
|
Hi, I use Emacs with Matlab mode and its working absolutely great. There is one minor issue though. The semantic autocompletion parser scans every file in my Matlab directory (including all packages and examples). Thus it is incredibly slow when trying to autocomplete. Also if I stop typing after one character is starts scanning for possible autocompletions starting with that character which takes forever. Is there any way to exclude the matlab toolboxes and examples from the semantic scanner? I attached the relevant parts of my .emacs file below. Thanks, Chris (add-to-list 'semantic-default-submodes 'global-semantic-idle-summary-mode t) (add-to-list 'semantic-default-submodes 'global-semantic-idle-completions-mode t) ;;(add-to-list 'semantic-default-submodes 'global-cedet-m3-minor-mode t) ;; Enable Semantic (semantic-mode 1) ;;auto-complete (require 'auto-complete) (ac-config-default) (global-auto-complete-mode t) (require 'auto-complete-config) (ac-config-default) ;; start after 3 characters were typed (setq ac-auto-start 3) ;; show menu immediately... ;; MATLAB integration (add-to-list 'load-path "~/.emacs.d/matlab-mode") (load-library "matlab-load") ;; (require 'matlab) ;; (require 'mlint) (matlab-cedet-setup) ;; (add-to-list 'company-backends 'company-anaconda) (add-hook 'company-backends (lambda () (defvar company-backends '((company-anaconda))))) (defvar flycheck-matlab-mlint-executable "mlint") (eval-after-load 'flycheck '(require 'flycheck-matlab-mlint)) (autoload 'matlab-mode "matlab" "Matlab Editing Mode" t) (add-hook 'matlab-mode-hook 'auto-complete-mode) (add-hook 'matlab-mode-hook 'rainbow-delimiters-mode) (add-hook 'matlab-shell-mode-hook 'evil-emacs-state) (setq-default matlab-function t) (setq-default matlab-highlight-cross-function-variables t) (setq-default matlab-functions-have-end t) (setq-default matlab-show-mlint-warnings nil) (setq-default matlab-indent-function t) |
From: Dennis O. <do...@pu...> - 2015-08-03 23:01:02
|
Hi, this was quite some time ago now, but I figured I'd post this here to not leave this unresolved: My issue was that I didn't use the customize interface to set the mlint-* variables. Doing (setq-default matlab-show-mlint-warnings t) instead of (setq matlab-show-mlint-warnings t) did the trick. In addition, I wanted the mlint warnings to show up in the echo area whenever point was on a line with an error, so I wrote a small function to take care of that: (defun mlint-show-warning-continuous () "Show the warning for the current mark. This is intended to be run after every command. It only prints a message if there is a error at point." (let ((n (linemark-at-point (point) mlint-mark-group))) (when n (message (oref n warning))))) In order for this to work as intended, I needed to add the function above to my post-command-hook: (add-hook 'matlab-mode-hook '(lambda () (add-hook 'post-command-hook 'mlint-show-warning-continuous))) Maybe this is useful for someone. Best, Dennis Dennis Ogbe <do...@pu...> writes: > Hi, > > Apart from absolutely loving this package, I have one issue: > > As far as I can understand, mlint-minor-mode is supposed to highlight > any issues in the current buffer. This is *not* the case for me. > > I'm running emacs 24.5.1 on 64-bit Linux and MATLAB R2014b, with the > latest version of matlab-mode. > > I have pointed mlint-minor-mode to correct mlint binary, and when I run > M-x mlint-buffer, I get a new buffer called *M-Lint* in the > background. This buffer contains all of the mlint outputs, but they do > not get highlighted in the m-file buffer. > > What could be the reason for this? Can anyone confirm that they have gotten > mlint-minor-mode to work? Obviously, not getting this to work won't be a > dealbreaker, but the idea seems pretty cool... > > Any help would be appreciated, thanks in advance! > > Dennis > > ------------------------------------------------------------------------------ > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |
From: Hunter M. <hun...@gm...> - 2015-08-03 21:37:50
|
Just tried myself, and it worked. I think it must have been SourceForge. Thanks! -Hunter On Mon, Aug 3, 2015 at 4:41 PM, Eric Ludlam <Eri...@ma...> wrote: > I just tried your link, and everything worked for me. > > > > Source Forge has not been reliable recently, so the best I can offer is to > try again. > > > > Eric > > > > *From:* Hunter McClelland [mailto:hun...@gm...] > *Sent:* Sunday, July 26, 2015 2:48 PM > *To:* mat...@li... > *Subject:* [Matlab-emacs-discuss] CVS down? > > > > Hi, I'm trying to access the latest version of matlab-emacs. The > web-based viewer (http://matlab-emacs.cvs.sourceforge.net/matlab-emacs) > says Page Not Found and the cvs anonymous checkout request shows: > > $ cvs -z3 -d:pserver:ano...@ma...:/cvsroot/matlab-emacs > co -P matlab-emacs > cvs [checkout aborted]: reading from server: Connection reset by peer > > Is the cvs down? Or do I have some issue on my end? > > Best, > -Hunter > |
From: Eric L. <Eri...@ma...> - 2015-08-03 20:51:54
|
Hi Uwe, Directory tracking in the shell is handled by comint mode with `shell-dirtrackp'. I snooped around in comint but to be honest, I don't know why your code snippet doesn't trigger dirtracking where typing it in yourself would work. It may be that matlab-shell-collect-command-output and other functions that call `comint-send-string' should instead call `comint-send-input' after editing the command line. You could give it a try and see if it helps. Eric -----Original Message----- From: Uwe Brauer [mailto:ou...@ma...] Sent: Wednesday, June 24, 2015 4:09 AM To: matlab-emacs <mat...@li...> Subject: [Matlab-emacs-discuss] change directory, matlab-shell Hello Here is the scenario (usually happens when I correct a bunch of matlab files in different directories). Dir1 contains 3 matlab files dir2 contains 3 matlab files I open one file in dir1 and execute the code for example via matlab-shell-save-and-go I do the same with the other files but then I change to dir2 and open the first file: when I now execute the code it sometimes does not run, since the matlab-shell presumes it is still in dir 1. So I execute the following hack. (defun matlab-cd-dir-actual () (interactive) (matlab-shell-run-command (concat "cd " (file-name-directory (buffer-file-name)))) (message (concat "*MATLAB* (& lisp) dir: " (default-directory))) (setq default-directory (file-name-directory (buffer-file-name)))) So far so good. However when I switch to the matlab-shell and want to open a file via find-file Then (X)emacs still seems to think that I am in dir1 and offers ~/matlabfiles/dir1 Instead of ~/matlabfiles/dir2 When I execute pwd in the matlab-shell I receive ans= /home/oub/matlabfiles/dir2 As it should be. So maybe this is more a question of (X)emacs, but why does my function not work as expected. Thanks Uwe Brauer ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Matlab-emacs-discuss mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |
From: Eric L. <Eri...@ma...> - 2015-08-03 20:42:03
|
I just tried your link, and everything worked for me. Source Forge has not been reliable recently, so the best I can offer is to try again. Eric From: Hunter McClelland [mailto:hun...@gm...] Sent: Sunday, July 26, 2015 2:48 PM To: mat...@li... Subject: [Matlab-emacs-discuss] CVS down? Hi, I'm trying to access the latest version of matlab-emacs. The web-based viewer (http://matlab-emacs.cvs.sourceforge.net/matlab-emacs) says Page Not Found and the cvs anonymous checkout request shows: $ cvs -z3 -d:pserver:ano...@ma...:/cvsroot/matlab-emacs co -P matlab-emacs cvs [checkout aborted]: reading from server: Connection reset by peer Is the cvs down? Or do I have some issue on my end? Best, -Hunter |
From: Hunter M. <hun...@gm...> - 2015-07-26 18:48:13
|
Hi, I'm trying to access the latest version of matlab-emacs. The web-based viewer (http://matlab-emacs.cvs.sourceforge.net/matlab-emacs) says Page Not Found and the cvs anonymous checkout request shows: $ cvs -z3 -d:pserver:ano...@ma...:/cvsroot/matlab-emacs co -P matlab-emacs cvs [checkout aborted]: reading from server: Connection reset by peer Is the cvs down? Or do I have some issue on my end? Best, -Hunter |
From: Hunter M. <hun...@gm...> - 2015-07-16 00:26:22
|
Hi, I'm not sure if anyone replied privately, but I'd be glad to share a little of what I know: 1) The most useful bit of matlab-emacs mode is the syntax recognition for highlighing, auto-spacing, and such when editing m-files. 2) Another very useful bit is the matlab shell. M-x matlab-shell inside emacs to open a matlab interactive command line inside emacs. This lets you use Emacs kill-and-yank, movement commands, etc while working at a Matlab command line Does that help? Or did you want help installing/configuring matlab-emacs? Best, -Hunter On Sat, Jul 11, 2015 at 8:57 PM, myszak <mys...@gm...> wrote: > Hello everyone, > > I've just downloaded Emacs on my windows computer. I'm learning matlab > for biomathematical purposes, so my IT skills can be described simply as > "noob-mode". Could someone send me some "step-by-step" tutorial of emacs > configuration to work in matlab-mode (on windows)? > > I would be very grateful, > > Nicpoń > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > |
From: myszak <mys...@gm...> - 2015-07-11 12:58:01
|
Hello everyone, I've just downloaded Emacs on my windows computer. I'm learning matlab for biomathematical purposes, so my IT skills can be described simply as "noob-mode". Could someone send me some "step-by-step" tutorial of emacs configuration to work in matlab-mode (on windows)? I would be very grateful, Nicpoń |
From: Daniels, T. (US) <tro...@ba...> - 2015-06-25 15:00:09
|
I was referring to saved-default-directory, not default directory. Troy From: Uwe Brauer [mailto:ou...@ma...] Sent: Thursday, June 25, 2015 10:52 AM To: Daniels, Troy (US) Cc: mat...@li... Subject: Re: [Matlab-emacs-discuss] partial solution On 06/25/2015 04:47 PM, Daniels, Troy (US) wrote: The only change that I would make is: (defun my-matlab-switch-and-save-default-directory () (interactive) (let ((saved-default-directory default-directory)) (switch-to-buffer "*MATLAB*") (setq default-directory saved-default-directory))) By using let, you don't permanently change the value of the variable (if it already existed for some other code) and you don't add a new variable if it didn't. right, however default-directory, is overwritten everytime you open a new buffer. so this setting is anyhow temporal. Uwe Troy -----Original Message----- From: Uwe Brauer [mailto:ou...@ma...] Sent: Thursday, June 25, 2015 5:35 AM To: matlab-emacs Subject: [Matlab-emacs-discuss] partial solution *** WARNING *** This message originates from outside our organization, either from an external partner or the internet. Consider carefully whether you should click on any links, open any attachments or reply. For additional information about Spearphishing, click here <http://intranet.ent.baesystems.com/howwework/security/spotlights/Pages/SpearphishingTips.aspx><http://intranet.ent.baesystems.com/howwework/security/spotlights/Pages/SpearphishingTips.aspx>. If you feel the email is suspicious, please follow this process. <http://intranet.ent.baesystems.com/howwework/security/spotlights/Documents/Dealing%20With%20Suspicious%20Emails.pdf><http://intranet.ent.baesystems.com/howwework/security/spotlights/Documents/Dealing%20With%20Suspicious%20Emails.pdf> Hello To answer my own question, the following hack does what I want: (defun my-matlab-switch-and-save-default-directory () (interactive) (setq saved-default-directory default-directory) (switch-to-buffer "*MATLAB*") (setq default-directory saved-default-directory)) Maybe somebody with real lips skills could improve the code. regards Uwe Brauer ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Matlab-emacs-discuss mailing list Mat...@li...<mailto:Mat...@li...> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |
From: Uwe B. <ou...@ma...> - 2015-06-25 14:51:59
|
<html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#FFFFFF"> <div class="moz-cite-prefix">On 06/25/2015 04:47 PM, Daniels, Troy (US) wrote:<br> </div> <blockquote cite="mid:558...@mx..." type="cite"> <pre wrap="">The only change that I would make is: (defun my-matlab-switch-and-save-default-directory () (interactive) (let ((saved-default-directory default-directory)) (switch-to-buffer "*MATLAB*") (setq default-directory saved-default-directory))) By using let, you don't permanently change the value of the variable (if it already existed for some other code) and you don't add a new variable if it didn't.</pre> </blockquote> <br> right, however default-directory, is overwritten everytime you open a new buffer.<br> so this setting is anyhow temporal.<br> <br> Uwe<br> <blockquote cite="mid:558...@mx..." type="cite"> <pre wrap=""> Troy -----Original Message----- From: Uwe Brauer [<a class="moz-txt-link-freetext" href="mailto:ou...@ma...">mailto:ou...@ma...</a>] Sent: Thursday, June 25, 2015 5:35 AM To: matlab-emacs Subject: [Matlab-emacs-discuss] partial solution *** WARNING *** This message originates from outside our organization, either from an external partner or the internet. Consider carefully whether you should click on any links, open any attachments or reply. For additional information about Spearphishing, click here <a class="moz-txt-link-rfc2396E" href="http://intranet.ent.baesystems.com/howwework/security/spotlights/Pages/SpearphishingTips.aspx"><http://intranet.ent.baesystems.com/howwework/security/spotlights/Pages/SpearphishingTips.aspx></a>. If you feel the email is suspicious, please follow this process. <a class="moz-txt-link-rfc2396E" href="http://intranet.ent.baesystems.com/howwework/security/spotlights/Documents/Dealing%20With%20Suspicious%20Emails.pdf"><http://intranet.ent.baesystems.com/howwework/security/spotlights/Documents/Dealing%20With%20Suspicious%20Emails.pdf></a> Hello To answer my own question, the following hack does what I want: (defun my-matlab-switch-and-save-default-directory () (interactive) (setq saved-default-directory default-directory) (switch-to-buffer "*MATLAB*") (setq default-directory saved-default-directory)) Maybe somebody with real lips skills could improve the code. regards Uwe Brauer ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now <a class="moz-txt-link-freetext" href="http://ad.doubleclick.net/ddm/clk/292181274;119417398;o">http://ad.doubleclick.net/ddm/clk/292181274;119417398;o</a> _______________________________________________ Matlab-emacs-discuss mailing list <a class="moz-txt-link-abbreviated" href="mailto:Mat...@li...">Mat...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss">https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss</a> </pre> </blockquote> <br> </body> </html> |
From: Daniels, T. (US) <tro...@ba...> - 2015-06-25 14:47:27
|
The only change that I would make is: (defun my-matlab-switch-and-save-default-directory () (interactive) (let ((saved-default-directory default-directory)) (switch-to-buffer "*MATLAB*") (setq default-directory saved-default-directory))) By using let, you don't permanently change the value of the variable (if it already existed for some other code) and you don't add a new variable if it didn't. Troy -----Original Message----- From: Uwe Brauer [mailto:ou...@ma...] Sent: Thursday, June 25, 2015 5:35 AM To: matlab-emacs Subject: [Matlab-emacs-discuss] partial solution *** WARNING *** This message originates from outside our organization, either from an external partner or the internet. Consider carefully whether you should click on any links, open any attachments or reply. For additional information about Spearphishing, click here <http://intranet.ent.baesystems.com/howwework/security/spotlights/Pages/SpearphishingTips.aspx>. If you feel the email is suspicious, please follow this process. <http://intranet.ent.baesystems.com/howwework/security/spotlights/Documents/Dealing%20With%20Suspicious%20Emails.pdf> Hello To answer my own question, the following hack does what I want: (defun my-matlab-switch-and-save-default-directory () (interactive) (setq saved-default-directory default-directory) (switch-to-buffer "*MATLAB*") (setq default-directory saved-default-directory)) Maybe somebody with real lips skills could improve the code. regards Uwe Brauer ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Matlab-emacs-discuss mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |
From: Uwe B. <ou...@ma...> - 2015-06-25 09:35:31
|
Hello To answer my own question, the following hack does what I want: (defun my-matlab-switch-and-save-default-directory () (interactive) (setq saved-default-directory default-directory) (switch-to-buffer "*MATLAB*") (setq default-directory saved-default-directory)) Maybe somebody with real lips skills could improve the code. regards Uwe Brauer |