From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 26 18:25:59 2022 Received: (at submit) by debbugs.gnu.org; 26 Jan 2022 23:25:59 +0000 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 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 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 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 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 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 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 27 Jan 2022 12:25:43 +1300 From: Phil Sainty To: bug-gnu-emacs@gnu.org Subject: 28.0.90; Documentation of `load' and .eln files with native-compilation Message-ID: <9676e13f03287c3890d77117a7823246@webmail.orcon.net.nz> X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail 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-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: submit 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.6 (--) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 27 01:23:42 2022 Received: (at 53562) by debbugs.gnu.org; 27 Jan 2022 06:23:43 +0000 Received: from localhost ([127.0.0.1]:54099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCyC6-000446-Kv for submit@debbugs.gnu.org; Thu, 27 Jan 2022 01:23:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCyC3-00043t-GH for 53562@debbugs.gnu.org; Thu, 27 Jan 2022 01:23:41 -0500 Received: from [2001:470:142:3::e] (port=49906 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCyBx-0003x3-AR; Thu, 27 Jan 2022 01:23:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SK2Rz1YLmGEsVM+IYY45Itd1KKseGgw5wtWs4LKN2wU=; b=gREEgDMm+oX3 pwymWCPNeX/LHS7rcgAj2U9bLVJCTEA0nOkz71yNSGXhF1vveHumvknjou4MSIYTCcF/6ebjx9RH/ cXBLFpt9Sw9MinDY2edDLylGh/zcTohr71llezFjADO6AU1SA+6lXioeIduDGDhoKOD0+XeYL0w/g DBJgl2ZlC5W0EpeouH4chiJIHJX8r1k8R58TFbVZKRzNZ0wInWP502/McCvYa/jA0geDtkgGlI6/D g3q00bh36cYdMH60qDl0+fxUeQ7pB/AwWnsjO17W+U4ujBHEJWUHtJejx2WEgrrKrbZTlt9dKa/Vv +HK38lWzwyDCXH+XQJIbWA==; Received: from [87.69.77.57] (port=3733 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCyBn-0006Um-Ia; Thu, 27 Jan 2022 01:23:31 -0500 Date: Thu, 27 Jan 2022 08:23:18 +0200 Message-Id: <83lez1g0ix.fsf@gnu.org> From: Eli Zaretskii To: Phil Sainty In-Reply-To: <9676e13f03287c3890d77117a7823246@webmail.orcon.net.nz> (message from Phil Sainty on Thu, 27 Jan 2022 12:25:43 +1300) Subject: Re: bug#53562: 28.0.90; Documentation of `load' and .eln files with native-compilation References: <9676e13f03287c3890d77117a7823246@webmail.orcon.net.nz> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53562 Cc: 53562@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 (---) > Date: Thu, 27 Jan 2022 12:25:43 +1300 > From: Phil Sainty > > 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.) Feel free to suggest changes to the documentation, and thanks.