From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47067: 28.0.50; [feature/native-comp] Crash while scrolling through dispnew.c Date: Fri, 19 Mar 2021 09:42:33 +0000 Message-ID: References: <83sg52lykn.fsf@gnu.org> <83mtv8lrmf.fsf@gnu.org> <83czw4lelg.fsf@gnu.org> <835z1wl6ao.fsf@gnu.org> <83zgz8jq7t.fsf@gnu.org> <83pn04jhge.fsf@gnu.org> <838s6rjvup.fsf@gnu.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19449"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47067@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 19 10:43:39 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 1lNBfP-0004yH-PT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Mar 2021 10:43:39 +0100 Original-Received: from localhost ([::1]:45854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNBfO-0004tB-PE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Mar 2021 05:43:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNBeo-00044x-3j for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 05:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNBen-0007uo-Kk for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 05:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lNBen-0003Yk-IH for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 05:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Mar 2021 09:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47067 X-GNU-PR-Package: emacs Original-Received: via spool by 47067-submit@debbugs.gnu.org id=B47067.161614695513648 (code B ref 47067); Fri, 19 Mar 2021 09:43:01 +0000 Original-Received: (at 47067) by debbugs.gnu.org; 19 Mar 2021 09:42:35 +0000 Original-Received: from localhost ([127.0.0.1]:48836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNBeN-0003Y3-HK for submit@debbugs.gnu.org; Fri, 19 Mar 2021 05:42:35 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:50987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNBeM-0003Xv-9O for 47067@debbugs.gnu.org; Fri, 19 Mar 2021 05:42:35 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 12J9gXC0022527 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 19 Mar 2021 09:42:33 GMT In-Reply-To: <838s6rjvup.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 13 Mar 2021 10:34:06 +0200") 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:202680 Archived-At: Eli Zaretskii writes: [...] >> >> To force the .elc to be loaded one has to bind `load-no-native' to >> >> non-nil. >> > >> > I think if load-file is invoked interactively, and the user actually >> > types "foo.elc", we need to bind load-no-native non-nil >> > automatically. Otherwise users would be surprised, as it goes against >> > the logic of what we do when the user types "foo.el". >> >> We certanly can do this if this is what we want. This breaks a little >> the idea to have the system as much transparent as possible, I went this >> way cause this was my understanding of what we wanted but I've no strong >> feeling with that. > > I don't think this will break the transparent operation, because > loading a package non-interactively (as in when the corresponding > feature is 'require'd by some code) will still load the .eln file. > Only the following 2 use cases will be affected: > > M-x load-file RET /path/to/FOO.elc RET > M-x load-library RET FOO.elc RET > > IOW, when the user loads the file/library interactively, and > explicitly uses the .elc extension, we load the file the user > specified, not the corresponding .eln file. Hi Eli, I've a patch that works modifying `load' to prevent native code being loaded when a file with .elc suffix is explicitly presented as argument. I was going to post it but re-reading your message I now wanted to ask: do we want to act at `load' level or at `load-file' + `load-library' level? TIA Andrea