From: Ondra K. <ond...@gm...> - 2012-10-12 17:02:02
|
wow! That was draining my nerves as well. Very useful! BTW: the aggresivity of Matlab figures in stealing a focus is very anoying not only when working in matlab-shell. So Eric if you know a general mechanism to influence this, please, can you tell us? ondra On Oct 12, 2012 6:45 PM, "David Chappaz" <dav...@fr...> wrote: > 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.**** > > ** ** > > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > |