|
From: | Jason Rumney |
Subject: | Re: emacsclient/server finished, documentation, raising frames |
Date: | Tue, 07 Nov 2006 12:23:17 +0000 |
User-agent: | Thunderbird 1.5.0.7 (Windows/20060909) |
Juanma Barranquero wrote:
Is this really Windows specific? It doesn't seem like it should be, as it is a user preference whether Emacs should jump to the front when emacsclient is used. Currently the frame is raised whenever Emacs was iconified, and there doesn't seem to be a user option to control this. Personally I think there should be a user option that controls whether Emacs is raised, whether iconified or not.[All the following is Windows-specific; please skip it if you're not interested.] I've just checked in a patch to emacsclient that allows it to bring Emacs to front just before passing it a file. "Allows" is the operative word: Emacs won't be the foreground app unless it does something to be, that is, call `raise-frame'.
I think this is the best place for it though, as this code has knowledge about which frame needs to be raised.1) Modify `server-switch-buffer' to raise the frame. Hairy. `server-switch-buffer' already does quite a lot of things to try to determine the right buffer/window/frame (and in some cases it already calls `raise-frame'), so I don't think it is wise to mess with it.
[Prev in Thread] | Current Thread | [Next in Thread] |