From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70519: 30.0.50; Device for Emacs terminal I/O Date: Sat, 04 May 2024 13:34:23 +0300 Message-ID: <865xvthnm8.fsf@gnu.org> References: <871q6xkvm9.fsf@gmail.com> <86zftk4pau.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16053"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70519@debbugs.gnu.org To: eller.helmut@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 04 12:35:59 2024 Return-path: Envelope-to: geb-bug-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 1s3CkJ-0003tw-46 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 May 2024 12:35:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3CkA-00039H-BR; Sat, 04 May 2024 06:35:50 -0400 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 1s3Ck0-00037k-TC for bug-gnu-emacs@gnu.org; Sat, 04 May 2024 06:35:42 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3Cjz-0004b0-1y for bug-gnu-emacs@gnu.org; Sat, 04 May 2024 06:35:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s3CkL-0000ow-Oa for bug-gnu-emacs@gnu.org; Sat, 04 May 2024 06:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 May 2024 10:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70519 X-GNU-PR-Package: emacs Original-Received: via spool by 70519-submit@debbugs.gnu.org id=B70519.17148189033123 (code B ref 70519); Sat, 04 May 2024 10:36:01 +0000 Original-Received: (at 70519) by debbugs.gnu.org; 4 May 2024 10:35:03 +0000 Original-Received: from localhost ([127.0.0.1]:52615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3CjO-0000oJ-UM for submit@debbugs.gnu.org; Sat, 04 May 2024 06:35:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3CjK-0000nt-Qq for 70519@debbugs.gnu.org; Sat, 04 May 2024 06:35:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s3Cis-0004BU-AS; Sat, 04 May 2024 06:34:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lrhhIGLY1Zov9vp58+OaxnrciYJkD+FG28v5BsI2B3k=; b=p6SgxibT9Tnv tH/79vv16OWsc40sa/7x7+qlWJE664PsC25u7maDxplbVO4RbvKJxyv5vKJ3zdXREzfeQ4vN7zz7B 2UHPHQn7nIJjEsElzhGOhaM/njlNKjJjgTv0QQ5kaTa0PJGZq0p9lGanCmGutJEVKIpYeelNss1mn xtFybiCJWVmPiHCKshg1NUmRjWcOd2Sgx+rhtH6cNxzKpmB12jqfH/GqnZ1Aswij4c9BXK/qWROzw VfV3uqPijDG7QKCW7rCEiz3xR7GjPvC2jCzi4+u/F9qdFUEVCkIDMJZPMKAVNGMEmuWsIWqclieOY OB6Z4CdOlfhpqb53Seg0Ig==; In-Reply-To: <86zftk4pau.fsf@gnu.org> (message from Eli Zaretskii on Tue, 23 Apr 2024 08:32:25 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284412 Archived-At: > Cc: 70519@debbugs.gnu.org > Date: Tue, 23 Apr 2024 08:32:25 +0300 > From: Eli Zaretskii > > More importantly, we already know the name of the terminal: we used it > in emacs.c when we processed the --terminal switch. We just "forgot" > it because we didn't save it anywhere. So one way of fixing this is > to record that name and reuse it in init_tty. E.g., make DEV_TTY > non-const, and save the actual name there when we process it in > emacs.c. I attempted to fix this now that way on the master branch. Would you mind testing whether it does what you wanted? If the current master somehow doesn't do what you wanted, I'd appreciate a recipe for reproducing the problematic behavior, so I could investigate. Thanks.