From unknown Fri Jun 20 07:10:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51116 <51116@debbugs.gnu.org> To: bug#51116 <51116@debbugs.gnu.org> Subject: Status: 28.0.60; tty-run-terminal-initialization unnecessarily decompresses .el.gz file Reply-To: bug#51116 <51116@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:10:27 +0000 retitle 51116 28.0.60; tty-run-terminal-initialization unnecessarily decomp= resses .el.gz file reassign 51116 emacs submitter 51116 "Sebastian Arlund N=C3=B8rgaard" severity 51116 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 10 12:13:13 2021 Received: (at submit) by debbugs.gnu.org; 10 Oct 2021 16:13:13 +0000 Received: from localhost ([127.0.0.1]:55706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZbRl-0008GT-VD for submit@debbugs.gnu.org; Sun, 10 Oct 2021 12:13:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:54692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZVH8-0002Jn-Fg for submit@debbugs.gnu.org; Sun, 10 Oct 2021 05:37:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZVH8-0002vq-98 for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2021 05:37:46 -0400 Received: from out10.migadu.com ([46.105.121.227]:63045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZVH4-0004pC-JQ for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2021 05:37:46 -0400 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsnrg.net; s=key1; t=1633858657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vRqAvbvtmoEVj3ZQpxHoSA6swkUd3DKC49HaoQf+0X4=; b=qziig5ZJocckhSWBIl9rrg8ndWVeo96fYhgnLehJ0wgC+I+4aMN5TbSbbSDblmDA78+cyb 3ZNRTvR0nPD+TSoCEN92h3ihOrRirQd6CMZAO+BHiWHkzZIDUx8Ki7Qp+ZY68M2Cur6LMI Yd2nBabDCAFjqlQpGtB4Q4XKUzw6feA= Date: Sun, 10 Oct 2021 09:37:35 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "=?utf-8?B?U2ViYXN0aWFuIEFybHVuZCBOw7hyZ2FhcmQ=?=" Message-ID: Subject: 28.0.60; tty-run-terminal-initialization unnecessarily decompresses .el.gz file To: bug-gnu-emacs@gnu.org X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: sebastian@bsnrg.net Received-SPF: pass client-ip=46.105.121.227; envelope-from=sebastian@bsnrg.net; helo=out10.migadu.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FROM_FMBLA_NEWDOM28=0.799, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 10 Oct 2021 12:13:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) When compressed elisp files are installed, tty-run-terminal-initializatio= n will decompress and interpret an el.gz file rather than use the availab= le compiled .elc file.=0A=0AThe problem is this bit of code (line 2288-22= 93 in lisp/faces.el):=0A=0A (tty-find-type #'(lambda (type)=0A (let = ((file (locate-library (concat term-file-prefix type))))=0A (and f= ile=0A (or (assoc file load-history)=0A (load (file-name-sa= ns-extension file)=0A t t)))))= =0A=0AIn my case, the locate-library call will resolve to (locate-library= "term/xterm"), which will return=0A=0A/path/to/install/lisp/term/xterm.e= l.gz=0A=0AA bit further down, the call to file-name-sans-extension will s= trip the extension to xterm.el. But there is only xterm.el.gz and xterm.e= lc in the path, so load will resolve to the xterm.el.gz, rather than the = .elc file. I can reproduce this as follows:=0A=0A- emacs -nw -Q=0A- switc= h to *Messages* buffer=0A- Buffer contains "uncompressing xterm.el.gz...d= one"=0A=0AIdeally the output of load-library should be stripped completel= y of extensions, so load will resolve to xterm.elc.=0A=0A(xterm is the tt= y type for my system, but this would apply just as well for other tty typ= es.)=0A=0A----------------------=0A=0AIn GNU Emacs 28.0.60 (build 1, x86_= 64-pc-linux-gnu, GTK+ Version 3.24.25, cairo version 1.16.0)=0A of 2021-1= 0-07 built on sebastian-Home-Linux=0ARepository revision: 160e62a23cd7227= 44c74cec9e8d37cb678be0fb1=0ARepository branch: emacs-28=0AWindowing syste= m distributor 'The X.Org Foundation', version 11.0.12011000=0ASystem Desc= ription: Ubuntu 21.04=0A=0AConfigured using:=0A 'configure --prefix=3D/ho= me/sebastian/emacs-master-install=0A --with-native-compilation --with-cai= ro --with-dumping=3Dpdumper=0A --with-mailutils --with-json --with-x --en= able-link-time-optimization=0A 'CFLAGS=3D-g3 -O3 -mtune=3Dnative -march= =3Dnative -fomit-frame-pointer''=0A=0AConfigured features:=0ACAIRO DBUS F= REETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON=0ALCMS2 LIBOTF L= IBSELINUX LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY=0AINOTIFY PDUMPER P= NG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS=0AX11 XDBE XIM XPM= GTK3 ZLIB=0A=0AImportant settings:=0A value of $LANG: en_US.UTF-8=0A l= ocale-coding-system: utf-8-unix From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 11 05:22:48 2021 Received: (at 51116) by debbugs.gnu.org; 11 Oct 2021 09:22:48 +0000 Received: from localhost ([127.0.0.1]:56601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZrWB-0003DC-Uu for submit@debbugs.gnu.org; Mon, 11 Oct 2021 05:22:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZrW9-0003Cv-K5 for 51116@debbugs.gnu.org; Mon, 11 Oct 2021 05:22:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SA8vJRCohzn0Lo9oxP9yPLH41FCT1ypNu/h6wsKjXSc=; b=B85e4/JBGJcrdQMCu6Q72XRcht kq0srwpJ7JVz79yGRSOtZgLofoM6agVW2eEzf3erc8LkijrQtk3GaCnrtdfmmJVRB6mtl0IVVcW8C OLfE/VJUc6/kBOBUufpakyTYfVtlbiI6usa5/ltHR0s/G+9rsrHGS0h43SACXvt1Qc0w=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZrVz-0001GA-SW; Mon, 11 Oct 2021 11:22:38 +0200 From: Lars Ingebrigtsen To: =?utf-8?Q?Sebastian_Arlund_N=C3=B8rgaard?= Subject: Re: bug#51116: 28.0.60; tty-run-terminal-initialization unnecessarily decompresses .el.gz file References: X-Now-Playing: David Byrne's _The Catherine Wheel_: "Big Blue Plymouth (Eyes Wide Open)" Date: Mon, 11 Oct 2021 11:22:35 +0200 In-Reply-To: ("Sebastian Arlund =?utf-8?Q?N=C3=B8rgaard=22's?= message of "Sun, 10 Oct 2021 09:37:35 +0000") Message-ID: <871r4rkjac.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Sebastian Arlund Nørgaard" writes: > Ideally the output of load-library should be stripped completely of > extensions, so load will resolve to xterm.elc. This should now be fixed in emacs-28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51116 Cc: 51116@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "Sebastian Arlund N=C3=B8rgaard" writes: > Ideally the output of load-library should be stripped completely of > extensions, so load will resolve to xterm.elc. This should now be fixed in emacs-28. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 11 05:22:52 2021 Received: (at control) by debbugs.gnu.org; 11 Oct 2021 09:22:52 +0000 Received: from localhost ([127.0.0.1]:56604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZrWG-0003DS-5D for submit@debbugs.gnu.org; Mon, 11 Oct 2021 05:22:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZrWE-0003D4-Fn for control@debbugs.gnu.org; Mon, 11 Oct 2021 05:22:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vS1xr1kGpLmNvKmATPC1idtYQ/vkhZfWl+MKI4TwV84=; b=fAT30QLtkco8E8jaKoE6RARKS1 hwJ+8m95pPCBPoRveFroU5xNND5ip1l4RJoUPdF64+hJMTWLA8cqnjQL1/FczIPul5fIvsXKWq0kr ojM4Svwi9j5DH8FOBhXs0PQ2y9vCPNaz6LxBnLaVXkMkRTS7ywjier3zsjYZwYajNaZQ=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZrW7-0001GJ-2Z for control@debbugs.gnu.org; Mon, 11 Oct 2021 11:22:45 +0200 Date: Mon, 11 Oct 2021 11:22:42 +0200 Message-Id: <87zgrfj4pp.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51116 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 51116 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 51116 28.1 quit From unknown Fri Jun 20 07:10:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 08 Nov 2021 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator