Re: [Matlab-emacs-discuss] partial solution

2015-06-25 Thread Daniels, Troy (US)
I was referring to saved-default-directory, not default directory. Troy From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Thursday, June 25, 2015 10:52 AM To: Daniels, Troy (US) Cc: matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matlab-emacs-discuss] partial solution On 06/25/2015 04:47

Re: [Matlab-emacs-discuss] partial solution

2015-06-25 Thread Uwe Brauer
everytime you open a new buffer. so this setting is anyhow temporal. Uwe Troy -Original Message- From: Uwe Brauer [mailto:o...@mat.ucm.es] Sent: Thursday, June 25, 2015 5:35 AM To: matlab-emacs Subject: [Matlab-emacs-discuss] partial solution *** WARNING **

Re: [Matlab-emacs-discuss] partial solution

2015-06-25 Thread Daniels, Troy (US)
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:o...@mat.ucm.es] Sent: Thursday, June 25, 2015 5:35 AM To: matlab-emacs Subje

[Matlab-emacs-discuss] partial solution

2015-06-25 Thread Uwe Brauer
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 som