From: David C. <dav...@fr...> - 2012-10-12 16:45:12
|
Hi all, Quite some time ago, I had an offline discussion with Eric Ludlam about the matlab-shell window loosing focus when you create a figure. It sounds a bit cosmetic, but it really gets on my nerves, as you constantly have to use the mouse to restore focus to your emacs frame. It was a bit trial and error, but in the end he found a working solution, so I thought I'd share that with you. Basically all you have to do, is before starting matlab-shell, to evaluate with (M-:) or (M-x M-e) the following: (setenv "WINDOWID" (frame-parameter (selected-frame) 'outer-window-id)) This one-liner can probably be added somewhere in matlab.el but I feel a little lazy tonight, so I'll leave it to someone else to figure out where that should be ! Hope that is useful. Enjoy ! David. |