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#45824: 27.1; term/screen.el not loaded when TERM=screen.xterm-256color Date: Tue, 19 Jan 2021 21:20:15 +0200 Message-ID: <83sg6w7mz4.fsf@gnu.org> References: <877do9mnc0.fsf@gnus.org> <87a6t4j4yc.fsf@gnus.org> <83y2go7peo.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1925"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 45824@debbugs.gnu.org To: Alex Hutcheson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 19 21:17:33 2021 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 1l1xRV-0000No-9A for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 21:17:33 +0100 Original-Received: from localhost ([::1]:41060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1xRU-0006Sn-8i for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 15:17:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1wYp-0005EF-CE for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 14:21:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1wYo-0007lM-LO for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 14:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1wYo-0002iS-HK for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 14:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jan 2021 19:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45824 X-GNU-PR-Package: emacs Original-Received: via spool by 45824-submit@debbugs.gnu.org id=B45824.161108403510397 (code B ref 45824); Tue, 19 Jan 2021 19:21:02 +0000 Original-Received: (at 45824) by debbugs.gnu.org; 19 Jan 2021 19:20:35 +0000 Original-Received: from localhost ([127.0.0.1]:51828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1wYN-0002hd-8K for submit@debbugs.gnu.org; Tue, 19 Jan 2021 14:20:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1wYJ-0002hP-4R for 45824@debbugs.gnu.org; Tue, 19 Jan 2021 14:20:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59472) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1wYD-0007as-LZ; Tue, 19 Jan 2021 14:20:25 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2577 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l1wY7-0007yP-Du; Tue, 19 Jan 2021 14:20:25 -0500 In-Reply-To: (message from Alex Hutcheson on Tue, 19 Jan 2021 13:33:09 -0500) 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" Xref: news.gmane.io gmane.emacs.bugs:198203 Archived-At: > From: Alex Hutcheson > Date: Tue, 19 Jan 2021 13:33:09 -0500 > Cc: Lars Ingebrigtsen , 45824@debbugs.gnu.org > > A defcustom won't really work, since the correct value of TERM to use > might be different for different frames. For example, I might > sometimes launch Emacs directly within an xterm, and other times > launch it within a screen session. A defcustom can be set (by your code) depending on the value of TERM, of course, so this problem is easily solvable. IOW, my proposal is to delegate the responsibility for "parsing" the TERM value to the user initializations, instead of asking Emacs to understand all the possible quirks there. > Also, we already have the term-file-aliases variable, which enables a > workaround as mentioned up the thread. Then perhaps nothing at all needs to be done. (I thought that the existing aliases were somehow inconvenient in this case.) > However, I still think we should aim to work correctly with GNU Screen > without any additional configuration required by the user. The current > state is broken in that regard. I just don't see where that would end, that's all. Any terminal emulator can call itself anything, and Emacs cannot possibly know all the future names. But that's me; if Lars thinks we should have built-in support for this use case, I won't argue. I was just responding to his request for other opinions.