help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: let emacs server get the focus


From: Zero Void
Subject: Re: let emacs server get the focus
Date: Thu, 20 Feb 2003 11:50:52 -0500
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu)

Glenn Morris <gmorris+news@ast.cam.ac.uk> writes:

> Zero Void wrote:
>
>> Is it possible that when after I run emacsclient, emacs can
>> automatically popup to the front and get focus? I found it's really
>> inconvenient when I have emacs minimized and in the meanwhile
>> running emacsclient.
>
> I use this:
>
>   (add-hook 'server-visit-hook 
>             '(lambda ()
>                (setq server-window (make-frame))))
>
>
> I tried the following as well for a bit (to delete the frame on exit),
> but then decided against it. It doesn't work with --no-wait.
>
>   (add-hook 'server-done-hook
>             '(lambda ()
>                (delete-frame server-window)
>                (setq server-window nil)))

Thanks a lot Glenn. It's much better now. 

-- 
monitor VLF leakage


reply via email to

[Prev in Thread] Current Thread [Next in Thread]