all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Bennee <kernel-hacker@bennee.com>
To: help-gnu-emacs mailing list <help-gnu-emacs@gnu.org>
Subject: How does emacsclient create it's first frame
Date: Tue, 12 Jan 2010 09:40:34 +0000	[thread overview]
Message-ID: <b2cdc9f31001120140t308e834w21ff8b6f80ff40e3@mail.gmail.com> (raw)

Hi,

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 alex@trent/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: http://www.bennee.com/~alex/
http://www.half-llama.co.uk




             reply	other threads:[~2010-01-12  9:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-12  9:40 Alex Bennee [this message]
     [not found] <mailman.1256.1263289245.18930.help-gnu-emacs@gnu.org>
2010-01-12 10:09 ` How does emacsclient create it's first frame Pascal J. Bourguignon
2010-01-12 12:24   ` Alex Bennee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b2cdc9f31001120140t308e834w21ff8b6f80ff40e3@mail.gmail.com \
    --to=kernel-hacker@bennee.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.