From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: server.el test failures Date: Tue, 28 Feb 2023 11:41:41 -0800 Message-ID: References: <877h40vb8h.fsf@mail.jurta.org> <4EA4D31B.4050604@cs.ucla.edu> <4EA5E08D.8070903@cs.ucla.edu> <861qmvcglp.fsf@aarsen.me> <98e880a0-d076-cfd9-b39d-50c84fa8975a@gmail.com> <811d85e0-4032-68df-bc0c-1073ff5d1b96@cs.ucla.edu> <5a38c18d-263c-223b-7335-8395a10eb494@gmail.com> <00864fe6-b63a-685f-2d20-4e1fd5a5573e@cs.ucla.edu> <3e7c26d6-215a-6c29-5304-0e32f42b2174@gmail.com> <87zg8z5afj.fsf@gmail.com> <83ttz7giib.fsf@gnu.org> <87r0ub561t.fsf@gmail.com> <83sfergdgf.fsf@gnu.org> <87h6v6qlq7.fsf@gmail.com> <83ilfmgf88.fsf@gnu.org> <87cz5uq6s1.fsf@gmail.com> <84c54b68-e787-2bc5-0908-52d953b557d2@gmail.com> <83wn41fvc9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------4Ofby7hE2ZMAU9JWUsmjrlm4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36311"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 28 20:42:45 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pX5s5-0009HA-0M for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Feb 2023 20:42:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX5r9-0004gh-1b; Tue, 28 Feb 2023 14:41:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX5r7-0004gS-Bn for emacs-devel@gnu.org; Tue, 28 Feb 2023 14:41:45 -0500 Original-Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pX5r5-0001dx-2Z; Tue, 28 Feb 2023 14:41:45 -0500 Original-Received: by mail-pl1-x629.google.com with SMTP id ky4so11662169plb.3; Tue, 28 Feb 2023 11:41:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=JRHxM0EelgdISrCqdhWgOVOLuiyjuS+e/K1SZVe4S44=; b=o1PShDTjMudnFM8hkk8aAFLCpLLo8TmCtTZOCZfYMTL5YAYscQNj4qTDo+AoO9NyF7 o7Vi+3BHqrbBqr3wUf6CZEDDUe+bCkFLYM+0QGURjESjDpVr79X9+a6yTbuWSk1+VCmH IXRo4wNCkKKLc/1yHCDiPsQA/YlX2m4sjy5DAKn985X0fjjIINMKVaz6GnwTPz8JLpB0 0wWyvSXklWlZ+z+lZGk0S2i3NxdLO2QwvGM0AWhThXVNQKTL+U08bJfjBQwVJhmy0qMg eWf/K3zgI9M1mkey290n/UyE0fM/qHIOnknG51pch24bkGKOFX1tkVDEQ6uxlBAtOXZm Dndg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=JRHxM0EelgdISrCqdhWgOVOLuiyjuS+e/K1SZVe4S44=; b=O9ioIvWuWgzJXKS5MvB5mRzJkJLe6fD63sfGyNaN64nV83XvW5SMsEFKUIriW0pCtu w0Q9ZAsr8ZIvbgj0g1KlCYWsVkXM5+P8l3XPymwdDYRBG7rL4LRTRD2BaEcpFriricSq tOppEujB+F2Y4SJOCWjTsLZa0fRC0dux+ZfLhRQJcXVLAt+NAkOSxbjwB+cHbZ7qCPso icnoLVJRCKS2fLUj0JLefwxxNHtU0S3obHVseBuAX/d0Lp7o6AXuJNkWWpR897vvNQQN mbXKohc5zCVGY8RAWkmBxX1u8B39wLIGpeFK/MvsCGOCGcFWrSyYtBI0WrTOKRQ3eJRQ j6OA== X-Gm-Message-State: AO0yUKUwX/vqYv5vgdM3kInqyvzr8SWjEtW2g4lN01+AAL9Xy6gx/rjG P9xVZ8MSUSEtyIeSuc2pihQZPCsfSjM= X-Google-Smtp-Source: AK7set9nu4U5S6ibRBJ/aXpLawisA983OKbbort/YF6AuUJPuqLAxqBtSKLGzUKUj+6dBrVl20iGLg== X-Received: by 2002:a17:902:d48b:b0:19a:b427:230a with SMTP id c11-20020a170902d48b00b0019ab427230amr4313745plg.63.1677613300997; Tue, 28 Feb 2023 11:41:40 -0800 (PST) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id im16-20020a170902bb1000b0019a983f0119sm6846378plb.307.2023.02.28.11.41.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Feb 2023 11:41:40 -0800 (PST) Content-Language: en-US In-Reply-To: <83wn41fvc9.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=jporterbugs@gmail.com; helo=mail-pl1-x629.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303867 Archived-At: This is a multi-part message in MIME format. --------------4Ofby7hE2ZMAU9JWUsmjrlm4 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/28/2023 11:23 AM, Eli Zaretskii wrote: > How about changing make-frame on master to create a TTY frame in batch > sessions, even if DISPLAY is set in the environment? That could work. Just to see what would happen, I tried running the Emacs server in a batch session and then calling "emacsclient -c -nw": emacs -Q --batch --eval '(progn (server-start) (while t (sit-for 1)))' emacsclient -c -nw Surprisingly, it seems to mostly work, although it echoes control characters to the screen. Anyway, here's a patch for this. Maybe there's a better way to do it, but this seemed like the least-invasive. --------------4Ofby7hE2ZMAU9JWUsmjrlm4 Content-Type: text/plain; charset=UTF-8; name="0001-Don-t-create-GUI-frames-in-batch-sessions.patch" Content-Disposition: attachment; filename="0001-Don-t-create-GUI-frames-in-batch-sessions.patch" Content-Transfer-Encoding: base64 RnJvbSBkMzk5Y2EwM2MwZDkxZGE3YWQyYWE3MGU3NjI4NGExM2M0OWQ0NTNkIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gUG9ydGVyIDxqcG9ydGVyYnVnc0BnbWFpbC5j b20+CkRhdGU6IFR1ZSwgMjggRmViIDI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