From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hw Newsgroups: gmane.emacs.devel Subject: Re: Some developement questions Date: Fri, 31 Aug 2018 02:40:30 +0200 Organization: my virtual residence Message-ID: <87tvnbl669.fsf@himinbjorg.adminart.net> References: <87sh36inql.fsf@himinbjorg.adminart.net> <8336v6cvem.fsf@gnu.org> <8736v6icgt.fsf@himinbjorg.adminart.net> <83tvnmb958.fsf@gnu.org> <877ekigiiw.fsf@himinbjorg.adminart.net> <837ekhb2me.fsf@gnu.org> <87zhxcbmtr.fsf@himinbjorg.adminart.net> <83in409lub.fsf@gnu.org> <871sanb71j.fsf@himinbjorg.adminart.net> <87k1oeaofu.fsf@ada> <20180825103413.gbm5stsl67j6weow@Ergus> <87k1od7vzf.fsf@himinbjorg.adminart.net> <83wosd5h3x.fsf@gnu.org> <871sakzssu.fsf@himinbjorg.adminart.net> <83bm9n6f7d.fsf@gnu.org> <87tvneql3i.fsf@himinbjorg.adminart.net> <83o9dl2oob.fsf@gnu.org> <87y3coopyf.fsf@himinbjorg.adminart.net> <83pny00y1q.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535824504 4975 195.159.176.226 (1 Sep 2018 17:55:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2018 17:55:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: spacibba@aol.com, radon.neon@gmail.com, flexibeast@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 01 19:54:59 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwA6s-0001AQ-L2 for ged-emacs-devel@m.gmane.org; Sat, 01 Sep 2018 19:54:58 +0200 Original-Received: from localhost ([::1]:38019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwA8y-000447-SJ for ged-emacs-devel@m.gmane.org; Sat, 01 Sep 2018 13:57:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwA4N-0007GO-Lq for emacs-devel@gnu.org; Sat, 01 Sep 2018 13:52:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fw9uK-0001s6-Fd for emacs-devel@gnu.org; Sat, 01 Sep 2018 13:42:01 -0400 Original-Received: from mo6-p01-ob.smtp.rzone.de ([2a01:238:20a:202:5301::7]:33477) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fw9uH-0001oO-KK; Sat, 01 Sep 2018 13:41:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1535823714; s=strato-dkim-0002; d=adminart.net; h=Sender:References:Message-ID:Date:In-Reply-To:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Hzx/1PhoE0FQUQWObdaQ17bEPMb0fX+X9ChZ9hoBMIg=; b=E+GeJEQ+nTL7eO3itbCtb2TkvpZF7VJk91D/Tpc9d8DiwRJPkjv03yykWvdPxqoIV7 7gWtHC4DNGHbrK5v49jYWo+xnCZYLonDuGBZq/JyB88+X/Z6VQ2lpBVdfUsSbnMtPQdG Q7AcEzxRn9x+rJthTgv6cul3UAopXRUbv0WNgwgurZhKPv2zj5s4L6/jBFURjDqNzKmR YU8s5UwBfr0KbhuWn8T01QSnYfU+Y3xuc1IdS71TD6E/G6VF0/wRyiFhrAG2PDpUMndj Tr+pmCrBk+SN67fxQnzHaTx11j8empl2EiRHHWAifFJcY/+hJsqh/QOGANYCSnycDamw LNrQ== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+AVdIIwXjneEe9k=" X-RZG-CLASS-ID: mo00 Original-Received: from himinbjorg.adminart.net by smtp.strato.de (RZmta 43.21 DYNA|AUTH) with ESMTPSA id j020b1u81HfoESL (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 1 Sep 2018 19:41:50 +0200 (CEST) Original-Received: from lee by himinbjorg.adminart.net with local (Exim 4.90_1) (envelope-from ) id 1fw9u9-0001lK-K9; Sat, 01 Sep 2018 19:41:49 +0200 In-Reply-To: <83pny00y1q.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 30 Aug 2018 16:44:01 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5301::7 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229168 Archived-At: Eli Zaretskii writes: >> From: hw >> Cc: spacibba@aol.com, radon.neon@gmail.com, flexibeast@gmail.com, emacs-devel@gnu.org >> Date: Wed, 29 Aug 2018 22:52:40 +0200 >> >> The whole section about the --tramp-prefix= option confused me. > > It has an example, which should have cleared up things. However, I'm > not yet convinced that option is for your use case, because I don't > yet understand your use case well enough. I'm not sure, either. >> I have menu and toolbar disabled ... > > Unless you loathe the mouse, C-mouse-3 will pop up the same menu as > the one that would have been available from the menu bar. I usually use (toggle-menu-bar-mode-from-frame). In this case, I simply didn't think of turning on the menu, or of using it. >> I ended up getting stuck in the help documentation of info and >> actually had to kill the buffer to be able to start over because I >> couldn't get anywhere else from there. > > Typing 'q' (for "quit") would have been a better and easier way out. > But there's nothing wrong with killing the Info buffer, either. I tried that. When you run (info) again, you're back at the same help page. 'q' does not actually quit such buffers. >> >> And what file is there to access when I want an X frame? >> > >> > When you invoke emacsclient, you usually ask it to visit a file, >> > right? >> >> Wrong; the files are usually already loaded, either because Emacs keeps >> running on the server, or because desktop-mode has already restored >> them. > > That's irrelevant, because eventually you'd want to access files. > That's what Emacs is for, right? Sure, and it may not be irrelevant. Visiting a file is different from not visiting one. >> I'd like to use the Emacs server that runs remotely on the server from >> my workstation with an emacsclient running locally on the workstation >> directly without X11 forwarding via ssh for the frames, and I'd like to >> be able to also use 'emacsclient -nw' on the workstation, using the >> emacs server on the server. > > Is this a single use case or two separate ones? I guess it is two variants of the same case: using the terminal in one and an X frame in the other variant. It would be the same case because in any case, I'm trying to use emacsclient with a remote Emacs server. > Assuming they are separate: for the first one, is using the -dDISPLAY > option (without any client) what you want? And for the second, did > you try using server-use-tcp? I tried both. Without the -d option, emacs and emacsclient both seem to ignore the DISPLAY variable, and only with -d, they try to use the display they should use. >> I understand that the Emacs server can not open the virtual terminal >> when using 'emacsclient -nw' because from its perspective, that is a >> remote file. > > I'm afraid I don't understand why you need to run "emacsclient -nw" on > another machine. Why not remotely login and run emacsclient there? That's because I want to use emacsclient with a remote Emacs server and because I would have to log in to run emacsclient on the server. I wouldn't be able to use Emacs in an X frame, either, unless I'd switch the monitor over to the server and run an X server there. If I wanted to do that, I'd need to put a dedicated graphics card into the server to get a decent picture, and I don't want to do that because then the server would consume more electricity (about 1.5 times as much). I also would have to use a keyboard that is connected to the server and end up with two keyboards on my desk, which doesn't fit very well. Why would I want to run the emacsclient on the same machine as the Emacs server? I tried that, and the only advantage was that I could use it to visit files in an already running Emacs session from the command line. Other than that, there were no advantages but disadvantages.