From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: local emacsclient to remote emacs server Date: Thu, 24 Mar 2022 13:32:47 +0100 Message-ID: <87bkxvwmxc.fsf@gmail.com> References: <61ef851f-1d3a-4070-b19a-ad6d19813fc4@www.fastmail.com> <87o81wc289.fsf@elite.giraud> <87lewzach1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37283"; mail-complaints-to="usenet@ciao.gmane.io" Cc: t@fullmeta.me, help-gnu-emacs@gnu.org To: Manuel Giraud Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 24 13:34:23 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXMfT-0009Kh-EK for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Mar 2022 13:34:19 +0100 Original-Received: from localhost ([::1]:55594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXMfR-0008Oc-U8 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Mar 2022 08:34:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXMe4-0008OS-KK for help-gnu-emacs@gnu.org; Thu, 24 Mar 2022 08:32:52 -0400 Original-Received: from [2a00:1450:4864:20::32f] (port=33929 helo=mail-wm1-x32f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXMe3-00080b-4c for help-gnu-emacs@gnu.org; Thu, 24 Mar 2022 08:32:52 -0400 Original-Received: by mail-wm1-x32f.google.com with SMTP id p26-20020a05600c1d9a00b0038ccbff1951so1331089wms.1 for ; Thu, 24 Mar 2022 05:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=wNhJ5LNNQm4Q1z3OpeLhP6JlB+vbqWpL69tOB4jq9+E=; b=SyhyU8eE41mR12kUOjn2vdESuyS/aTpxDgK6Dc49e9u7AIdOD1Pd1IOtTzz7ITPy9f 6SQ+onlEvsIH5pFpnzcgxrn5QfkikbEKwGaW7B2VKTZyLC4o5KxMB5okLI64hmlWLx0D j0bsk9vAY3Sylg/kJ0ocFlzi/GjI3o16CKSQ1VAZSA1OYNtUMkiYrA6NkwNE2R8z0gcO MhQfj1eLjtZZAafDWJ+EJrlZIcSgItORwlhfgLNVbZ20c0dvSUCKsz5GPkY6O181dXBV k2Bj2+QQ6jNxEsmFLemvkHAzrFZHyzc0Jn4DCLwVhh1HFA0Yb+OCm6uxiORKs50TN0Ak gadg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=wNhJ5LNNQm4Q1z3OpeLhP6JlB+vbqWpL69tOB4jq9+E=; b=KqsT1fc623TLASK3C3vgUZEXO/h1uodDasBSYrMkRRLXqjMQTXbDcGuQFG/fNaLe3f 1yJ+wY2PTTKI6VY3EqNuOw92rbplmedtTq+q7yIMP/rP27USUkQ5N75oWxmE2SAyXDIt Gqnj1nhV93dyiVCMt3lDXMAU/fg1pt+abvvwHEwSzelkMmW108atTVcsC01GdT9gOUzQ /zABNjSJgiJA7UBdR0fB32SbQXilLiHKf6bZJPSIVJYsdQ6QRZZLOYrJqhGH2XY8lTGz BibYCKHRQuIlfsEDJe/E9OMTFmHTMP1P/rLYlqwebhzI1KJu+MYHFYh3llHEVmy0CjMA 4sAg== X-Gm-Message-State: AOAM533X7kjEKzfvKx6fWc/ok6oKM+McjExBbWFQbu6ea4qH3S+Td9xm PbOOIgdMzHoP6oAopcVCFyK7vFZv/as= X-Google-Smtp-Source: ABdhPJw/6RD3NcDnd5EdW4Wj/kv/alKoR13XXso1kGzwwOxPPjjKSlmYXYQ1yutwakQzQx1hqmefng== X-Received: by 2002:a05:600c:2948:b0:38c:b3e5:eed3 with SMTP id n8-20020a05600c294800b0038cb3e5eed3mr13804624wmd.168.1648125168984; Thu, 24 Mar 2022 05:32:48 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:ef35:1a5:b5fa:992a]) by smtp.gmail.com with ESMTPSA id o11-20020a05600c510b00b0038ccaa66af7sm1976676wms.15.2022.03.24.05.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Mar 2022 05:32:48 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <87lewzach1.fsf@gmail.com> (Robert Pluim's message of "Thu, 24 Mar 2022 11:09:30 +0100") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136737 Archived-At: >>>>> On Thu, 24 Mar 2022 11:09:30 +0100, Robert Pluim s= aid: >>>>> On Wed, 23 Mar 2022 12:55:34 +0100, Manuel Giraud said: Manuel> Hi, Manuel> So like you did, I tried to setup an emacs server on one server= and have Manuel> the emacsclient locally. I tried using TCP but ended up with th= e same Manuel> error as you: Manuel> Waiting for Emacs... Manuel> *ERROR*: Could not open file: /dev/ttyp3 Manuel> =E2=80=A6 so I don't think that it is the intended usage of "Em= acs server". It Manuel> is more an "editing server" (running locally). Robert> Right. I=CA=BCve taken a look at the emacs code, it tries to op= en the tty Robert> that emacsclient is running on, and obviously that doesn=CA=BCt= work, since Robert> that=CA=BCs on a different machine than where emacs is running. BTW, one other possible solution to this is to use the 'crdt' package: it connects a local emacs to a remote emacs over tcp. You edit locally, and it sends the changes to the remote emacs. I=CA=BCve not used it much, but it seems to work well enough. Robert --=20