From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Bennee Newsgroups: gmane.emacs.help Subject: How does emacsclient create it's first frame Date: Tue, 12 Jan 2010 09:40:34 +0000 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1263289384 26812 80.91.229.12 (12 Jan 2010 09:43:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2010 09:43:04 +0000 (UTC) To: help-gnu-emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 12 10:42:56 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUdH5-0007bq-CZ for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jan 2010 10:42:55 +0100 Original-Received: from localhost ([127.0.0.1]:40738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUdH1-0004aT-35 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jan 2010 04:42:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUdEx-0003LZ-A6 for help-gnu-emacs@gnu.org; Tue, 12 Jan 2010 04:40:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUdEr-0003ED-8b for help-gnu-emacs@gnu.org; Tue, 12 Jan 2010 04:40:42 -0500 Original-Received: from [199.232.76.173] (port=50076 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUdEr-0003Dv-3m for help-gnu-emacs@gnu.org; Tue, 12 Jan 2010 04:40:37 -0500 Original-Received: from mail-iw0-f187.google.com ([209.85.223.187]:49056) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUdEq-0004B9-PV for help-gnu-emacs@gnu.org; Tue, 12 Jan 2010 04:40:36 -0500 Original-Received: by iwn17 with SMTP id 17so15165654iwn.25 for ; Tue, 12 Jan 2010 01:40:35 -0800 (PST) Original-Received: by 10.231.147.149 with SMTP id l21mr455866ibv.0.1263289234496; Tue, 12 Jan 2010 01:40:34 -0800 (PST) X-Google-Sender-Auth: 763a5cb1a4cc5a76 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71189 Archived-At: 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