all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* raising an iconified emacs server
@ 2007-12-19  4:36 rustom
  2007-12-19 10:21 ` Lennart Borgman (gmail)
       [not found] ` <mailman.5207.1198059726.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: rustom @ 2007-12-19  4:36 UTC (permalink / raw)
  To: help-gnu-emacs

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

Rustom

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: raising an iconified emacs server
  2007-12-19  4:36 raising an iconified emacs server rustom
@ 2007-12-19 10:21 ` Lennart Borgman (gmail)
       [not found] ` <mailman.5207.1198059726.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2007-12-19 10:21 UTC (permalink / raw)
  To: rustom; +Cc: help-gnu-emacs

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)
> bring to top the emacs frame??


I have solved this by calling

   emacsclient -n

afterwards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: raising an iconified emacs server
       [not found] ` <mailman.5207.1198059726.18990.help-gnu-emacs@gnu.org>
@ 2007-12-19 13:59   ` rustom
  2007-12-19 15:52     ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 4+ messages in thread
From: rustom @ 2007-12-19 13:59 UTC (permalink / raw)
  To: help-gnu-emacs

On Dec 19, 3:21 pm, "Lennart Borgman (gmail)"
<lennart.borg...@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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: raising an iconified emacs server
  2007-12-19 13:59   ` rustom
@ 2007-12-19 15:52     ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2007-12-19 15:52 UTC (permalink / raw)
  To: rustom; +Cc: help-gnu-emacs

rustom wrote:
> On Dec 19, 3:21 pm, "Lennart Borgman (gmail)"
> <lennart.borg...@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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-19 15:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19  4:36 raising an iconified emacs server rustom
2007-12-19 10:21 ` Lennart Borgman (gmail)
     [not found] ` <mailman.5207.1198059726.18990.help-gnu-emacs@gnu.org>
2007-12-19 13:59   ` rustom
2007-12-19 15:52     ` Lennart Borgman (gmail)

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.