raising an iconified emacs server
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
raising an iconified emacs server         


Author: rustom
Date: Dec 18, 2007 20:36

I am trying to make an emacsclient call such that it pops up the emacs
server.
I have the following lines in my .emacs

(server-start)
(defun myserver ()
(raise-frame)
(remember)
)

Then when I call emacsclient.emacs-snapshot -e '(myserver)'
the icon for emacs just blinks in the icon-bar but it does not
activate the window

If I change (raise-frame) to (make-frame-visible) it activates the
emacs window but does not bring it to the top. This is so even if I
use both (raise-frame) and (make-frame-visible)

So any ideas about how to (1) activate (if necesary deiconify) and (2)
bring to top the emacs frame??

Also one more thing: Where do I get the 'emacs as server' info files
(under debian etch)?

Thanks
Show full article (0.73Kb)
3 Comments
Re: raising an iconified emacs server         


Author: Lennart Borgman (gmail)
Date: Dec 19, 2007 02:21

rustom wrote:
> I am trying to make an emacsclient call such that it pops up the emacs
> server.
> I have the following lines in my .emacs
>
> (server-start)
> (defun myserver ()
> (raise-frame)
> (remember)
> )
>
> Then when I call emacsclient.emacs-snapshot -e '(myserver)'
> the icon for emacs just blinks in the icon-bar but it does not
> activate the window
>
> If I change (raise-frame) to (make-frame-visible) it activates the
> emacs window but does not bring it to the top. This is so even if I
> use both (raise-frame) and (make-frame-visible)
>
> So any ideas about how to (1) activate (if necesary deiconify) and (2) ...
Show full article (0.75Kb)
no comments
Re: raising an iconified emacs server         


Author: rustom
Date: Dec 19, 2007 05:59

On Dec 19, 3:21 pm, "Lennart Borgman (gmail)"
gmail.com> wrote:
> I have solved this by calling
>
> emacsclient -n
>
> afterwards.

Doesn't work. The window still stays below other windows.
Anyway why should 'no wait for server to return' have anything to do
with window arrangement?
1 Comment
Re: raising an iconified emacs server         


Author: Lennart Borgman (gmail)
Date: Dec 19, 2007 07:52

rustom wrote:
> On Dec 19, 3:21 pm, "Lennart Borgman (gmail)"
> gmail.com> wrote:
>> I have solved this by calling
>>
>> emacsclient -n
>>
>> afterwards.
>
> Doesn't work. The window still stays below other windows.
> Anyway why should 'no wait for server to return' have anything to do
> with window arrangement?

Hm, that might be something I added to emacsclient, not sure at the
moment. Or something that is specific to the MS Windows client.

Why -n? I just happened to have it there, just

emacsclient

without any arguments at all is sufficient in my case.
no comments

RELATED THREADS
SubjectArticles qty Group
Re: .emacs in the Windows version of Emacsgnu.emacs.help ·