[Top][All Lists]

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

How does emacsclient create it's first frame

From: Alex Bennee
Subject: How does emacsclient create it's first frame
Date: Tue, 12 Jan 2010 09:40:34 +0000


I've now got a working "edit server" in elisp which will respond to
edit requests from Google Chrome. However it has a small problem when
creating new frames.

If there is a frame already visible then the (make-frame) invocation
works as expected. However as I'm running this server inside an emacs
--daemon invocation the default state if for no frame to be displayed.

Indeed if you manually try a (make-frame) in this state then emacs
will complain:

09:03 address@hidden/i686 [emacs_chrome.git] >emacsclient -e '(make-frame)'
*ERROR*: Unknown terminal type

I've been trying to find how the emacsclient causes the first frame to
appear but I'm having trouble finding the client code in the emacs src
tree. Can anyone offer any pointers as to how to do this from scratch?

Alex, homepage:

reply via email to

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