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 Matlab-emacs-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss