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 20:27:43 +0200 Message-ID: <83y2go7peo.fsf@gnu.org> References: <877do9mnc0.fsf@gnus.org> <87a6t4j4yc.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2676"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45824@debbugs.gnu.org, alexhutcheson@google.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 19 20:24:47 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 1l1wcR-0000Zg-Fj for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 20:24:47 +0100 Original-Received: from localhost ([::1]:43956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1wcQ-00089k-F2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 14:24:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1vjW-00066V-Cd for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 13:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1vjW-0000Ou-5G for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 13:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1vjW-0005Vt-28 for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 13:28: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 18:28: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.161108086421167 (code B ref 45824); Tue, 19 Jan 2021 18:28:02 +0000 Original-Received: (at 45824) by debbugs.gnu.org; 19 Jan 2021 18:27:44 +0000 Original-Received: from localhost ([127.0.0.1]:51693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1vjE-0005VK-3F for submit@debbugs.gnu.org; Tue, 19 Jan 2021 13:27:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1vjC-0005V2-6V for 45824@debbugs.gnu.org; Tue, 19 Jan 2021 13:27:42 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57958) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1vj6-0000MZ-9h; Tue, 19 Jan 2021 13:27:36 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3353 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l1vj4-0007k0-RJ; Tue, 19 Jan 2021 13:27:35 -0500 In-Reply-To: <87a6t4j4yc.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 19 Jan 2021 16:56:27 +0100) 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:198199 Archived-At: > From: Lars Ingebrigtsen > Date: Tue, 19 Jan 2021 16:56:27 +0100 > Cc: 45824@debbugs.gnu.org > > Hm... but wouldn't that possibly cause problems? That is, if your TERM > is > > linux2.6.26 > > then if we split on dots, then Emacs will first look for > "text/linux2.6.26.el", and then "term/linux2.6.el"... and those are > indeed different terminfos as found on my system: > > linux2.6 > linux2.6.26 > > > The command I used to list all the relevant terminfo files was: > > find /lib/terminfo /usr/share/terminfo -name '*.*' -type f -exec > > basename '{}' ';' | sort -u > > Now, there is no term/linux2.6.el, so perhaps this is irrelevant... And > perhaps if there was a term/linux2.6.el, perhaps loading that would be > OK in this case? Anybody got an opinion here? Maybe we should just introduce a way for users to specify the terminal type that would override the value of TERM in the environment? Some defcustom that could be set in the init file? That way, we don't need to worry about inventing a new rule, with all the unintended consequences that could bring us.