From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: local emacs and a remote emacs daemon Date: Fri, 19 Jul 2019 17:08:15 +0300 Message-ID: <838ssuung0.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="44212"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 19 16:08:29 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hoTYe-000BIo-Ln for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jul 2019 16:08:24 +0200 Original-Received: from localhost ([::1]:45872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoTYd-0007b1-5v for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jul 2019 10:08:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46375) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoTYa-0007aj-EW for help-gnu-emacs@gnu.org; Fri, 19 Jul 2019 10:08:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hoTYa-0003Ve-BG for help-gnu-emacs@gnu.org; Fri, 19 Jul 2019 10:08:20 -0400 Original-Received: from [176.228.60.248] (port=2812 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hoTYZ-0004KV-Qe for help-gnu-emacs@gnu.org; Fri, 19 Jul 2019 10:08:20 -0400 In-reply-to: (message from Perry Smith on Fri, 19 Jul 2019 08:13:14 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121207 Archived-At: > From: Perry Smith > Date: Fri, 19 Jul 2019 08:13:14 -0500 > > Probably the best way to help me is to point me to the fundamental functions involved. In effect, how does emacsclient “talk” to a daemon. I assume there are some primitives that the rest of the functionality is built up from. I’m assuming that the functionality built into emacsclient is also built into emacs (to rephrase, there is nothing essential in emacsclient that isn’t also in emacs). The protocol between emacsclient and Emacs is in emacsclient.c and in server.el. in the latter you will see the commands that the client sends and how each command is executed; you can then look up those commands in the client source and see when each command is sent.