From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: 2QdxY4RzWzUUiLuE@potatochowder.com Newsgroups: gmane.emacs.help Subject: Re: use SLIME/SDL2 from the VT Date: Sun, 4 Jul 2021 14:02:14 -0700 Message-ID: References: <87wnq9gn96.fsf@zoho.eu> <87a6n1g65e.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15364"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 04 23:02:44 2021 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 1m09GF-0003oQ-Gz for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Jul 2021 23:02:43 +0200 Original-Received: from localhost ([::1]:38024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m09GE-00030a-JI for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Jul 2021 17:02:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1m09Fu-00030B-TQ for help-gnu-emacs@gnu.org; Sun, 04 Jul 2021 17:02:22 -0400 Original-Received: from www458.your-server.de ([136.243.165.62]:49372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1m09Fs-0005Z0-PO for help-gnu-emacs@gnu.org; Sun, 04 Jul 2021 17:02:22 -0400 Original-Received: from sslproxy02.your-server.de ([78.47.166.47]) by www458.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1m09Fp-0000oc-QC for help-gnu-emacs@gnu.org; Sun, 04 Jul 2021 23:02:17 +0200 Original-Received: from [47.44.249.130] (helo=localhost) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1m09Fp-0008jn-4V for help-gnu-emacs@gnu.org; Sun, 04 Jul 2021 23:02:17 +0200 Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87a6n1g65e.fsf@zoho.eu> X-Authenticated-Sender: 2QdxY4RzWzUUiLuE@potatochowder.com X-Virus-Scanned: Clear (ClamAV 0.103.2/26221/Sun Jul 4 13:09:25 2021) Received-SPF: pass client-ip=136.243.165.62; envelope-from=2QdxY4RzWzUUiLuE@potatochowder.com; helo=www458.your-server.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131462 Archived-At: On 2021-07-04 at 22:45:17 +0200, Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Can you use SLIME/SDL2 from the Linux VT and pipe the > > graphics to X, similar to what happens (sometimes) with the > > shell tools if you set the DISPLAY=":0" environmental, or if > > the tool comes with a -d option specifically for this (which > > SBCL don't)? > > > > The below attempt doesn't work, what happens is that with or > > without it SBCL tries and actually manages to write > > something to the VT framebuffer, but then crashes. > > > > Can it be done? > > > > (setq slime-lisp-implementations > > '((sbcl ("sbcl" "--core" "/home/incal/cl/sbcl.core-with-swank") > > :env ("DISPLAY=\":0\"") Try: :env ("DISPLAY=:0") > > :init (lambda (port-file _) > > (format "(swank:start-server %S)\n" port-file) )))) > > I works with > > $ DISPLAY=":0" emacs -nw In the shell, those quotes are part of shell syntax, not part of the value of the DISPLAY variable. That command works just as well as follows: $ DISPLAY=:0 emacs -nw > Note the -nw, because without it, the whole Emacs instance > will be the GUI version, in X.