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
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 **
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
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