From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Try and detect common problems in lexical code Date: Wed, 18 Mar 2020 21:54:28 -0400 Message-ID: References: Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="107193"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 19 02:54:58 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jEkOg-000Rnc-PE for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Mar 2020 02:54:58 +0100 Original-Received: from localhost ([::1]:60570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEkOf-00043K-Qw for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Mar 2020 21:54:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34615) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEkOE-0003cW-1B for emacs-devel@gnu.org; Wed, 18 Mar 2020 21:54:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jEkOD-0005da-Lu; Wed, 18 Mar 2020 21:54:29 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jEkOC-000856-6d; Wed, 18 Mar 2020 21:54:28 -0400 In-Reply-To: (message from Stefan Monnier on Wed, 18 Mar 2020 16:30:28 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245577 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > because the file that defines `byte-compile-dest-file-function` might be > loaded after the let binding is created (i.e. in response to the call > to `byte-compile`). ISTR that in lexically-scoped languages you usually have to load an interface spec for a program before you can call it. Maybe that is the right direction to go, for this. Maybe it is possible to have a function 'lexical-require' which is like 'require' except that, instead of _loading_ the file require, it only prepares to call things in that file. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)