From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#53562: 28.0.90; Documentation of `load' and .eln files with native-compilation Date: Thu, 27 Jan 2022 12:25:43 +1300 Message-ID: <9676e13f03287c3890d77117a7823246@webmail.orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11669"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail To: 53562@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 27 00:26:33 2022 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 1nCrgN-0002qe-KA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Jan 2022 00:26:31 +0100 Original-Received: from localhost ([::1]:53044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCrgJ-0005eL-FW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 18:26:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCrfv-0005dx-4u for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 18:26:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60863) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCrfu-0007fZ-Qu for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 18:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCrfu-0007vv-Fy for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 18:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jan 2022 23:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53562 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164323955930484 (code B ref -1); Wed, 26 Jan 2022 23:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jan 2022 23:25:59 +0000 Original-Received: from localhost ([127.0.0.1]:53766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCrfq-0007vb-Uw for submit@debbugs.gnu.org; Wed, 26 Jan 2022 18:25:59 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCrfp-0007vR-Ll for submit@debbugs.gnu.org; Wed, 26 Jan 2022 18:25:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCrfp-0005cV-18 for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 18:25:57 -0500 Original-Received: from smtp-1.orcon.net.nz ([60.234.4.34]:53155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCrfl-0007ei-9J for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 18:25:56 -0500 Original-Received: from [10.253.37.70] (port=37968 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1nCrfb-0002VM-HV for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2022 12:25:45 +1300 Original-Received: from ip-139-180-65-103.kinect.net.nz ([139.180.65.103]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Thu, 27 Jan 2022 12:25:43 +1300 X-Sender: psainty@orcon.net.nz X-GeoIP: -- Received-SPF: pass client-ip=60.234.4.34; envelope-from=psainty@orcon.net.nz; helo=smtp-1.orcon.net.nz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:225315 Archived-At: I've noticed that the docstrings for `load' and `load-suffixes' make no mention of native-compilation, and it feels to me like they should do. `load' says: > First try FILE with `.elc' appended, then try with `.el', then try > with a system-dependent suffix of dynamic modules (see `load-suffixes') `load-suffixes' says: > Its value is (".so" ".elc" ".el") > > List of suffixes for Emacs Lisp files and dynamic modules. > This list includes suffixes for both compiled and source Emacs Lisp > files. IIUC the switch to .eln happens only if the .elc file was selected, in which case the above is all true in a strict sense; but I feel that the .eln case warrants a mention in the text as something which further affects the outcome if Emacs was built --with-native-compilation. I think `load-no-native' should be referenced as part of that, too. (Attempting to find that variable name was the reason for this bug report, and apropos-documentation suggests that nothing mentions it.) -Phil In GNU Emacs 28.0.90 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.10, Xaw scroll bars) of 2021-12-03 built on phil-lp Repository revision: 292ae07e7150a9515b587bd98f9e93ab42c3fb29 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Ubuntu 18.04.6 LTS Configured using: 'configure --prefix=/home/phil/emacs/28.0/usr/local --with-x-toolkit=lucid --without-sound --with-native-compilation' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM LUCID ZLIB