From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#48135: 27.1.91; standard-display-table incorrectly initialized in byte compiled code? Date: Sat, 01 May 2021 12:00:27 +0000 Message-ID: <4edb14352660e56af8c0@heytings.org> References: <835z02adnw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27968"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Norm Tovey-Walsh , 48135@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 01 14:01:18 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 1lcoJC-0006xc-BK for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 May 2021 14:01:18 +0200 Original-Received: from localhost ([::1]:58438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcoJB-0006Px-Dm for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 May 2021 08:01:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcoIx-0006Ig-PD for bug-gnu-emacs@gnu.org; Sat, 01 May 2021 08:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcoIx-0004DF-Gq for bug-gnu-emacs@gnu.org; Sat, 01 May 2021 08:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcoIx-0004Iq-Fk for bug-gnu-emacs@gnu.org; Sat, 01 May 2021 08:01:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 May 2021 12:01:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48135 X-GNU-PR-Package: emacs Original-Received: via spool by 48135-submit@debbugs.gnu.org id=B48135.161987043316460 (code B ref 48135); Sat, 01 May 2021 12:01:03 +0000 Original-Received: (at 48135) by debbugs.gnu.org; 1 May 2021 12:00:33 +0000 Original-Received: from localhost ([127.0.0.1]:35647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcoIS-0004HP-Sy for submit@debbugs.gnu.org; Sat, 01 May 2021 08:00:33 -0400 Original-Received: from heytings.org ([95.142.160.155]:32782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcoIP-0004HF-3T for 48135@debbugs.gnu.org; Sat, 01 May 2021 08:00:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1619870427; bh=YD/xe4T3cu+95npCcnxhT5PrW4DvOMfYldTNvzaUnSo=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=L03lN/Qpk9WjetY47PHvNFtuvELk4xj1HdYF8YAMK6O0N1SE65zt2WH+eLrkgKhsn jaMLvr2GiWt6k33mjON4gdwchAL5ZPGNtocluXxTIH9dBbeqSsRxgC8Qp5gJZ0WMXG bC0fCo+CRdLV+AlQY1+Hx/+48I1d3wtujr3dT5heLDbMO2DZG2CGT6+LP5VH3puap3 XV3hhH0r7RXFt6N6hVeOS/oSUI1b/I5QwR8w/c5brz9aEi+r0a6yAbl3Z8sygEr6X+ Ikyr94CSHQOrU68v2UBUhSMyZEKA9EIn7cpWz+Tf7ZNTHncAo4McmOyiA147mEfmtu Hq08E/O5YTLoA== In-Reply-To: <835z02adnw.fsf@gnu.org> 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:205337 Archived-At: >> Now byte compile the file and start emacs: emacs -q -l testdt.elc >> >> You'll get a wrong-type-argument error and the *Messages* buffer will >> contain: >> >> For information about GNU Emacs and the GNU system, type C-h C-a. >> Hello >> display-table-slot: Wrong type argument: char-table-p, nil >> >> The *Help* buffer will contain: >> >> Truncation glyph: >> >> Apparently, there's something wrong with attempting to access the >> standard-display-table from byte compiled code. > > I cannot reproduce this with the stock version of Emacs 27.2 (of which > yours seems to be a pretest). I get the same results from both the > compiled and the interpreted versions. > Perhaps it's a GNU/Linux specific bug, but I can reproduce this with Emacs 22-28. It worked with Emacs 21. standard-display-table is nil before invoking describe-display-table, and somehow becomes populated when discribe-display-table is invoked from a non-byte-compiled file, but not when it is invoked from a byte-compiled file. A simple workaround is to (require 'disp-table).