From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: Emacs 25.0.94: Is require failing to define macros and functions at compile time? Date: Wed, 29 Jun 2016 19:14:38 -0400 Message-ID: References: <87d1mzps99.fsf@web.de> <87wpl7ockh.fsf@web.de> <75d35e8c-dfbf-4fe8-8850-2507369c9916@default> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1467242133 25141 80.91.229.3 (29 Jun 2016 23:15:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 23:15:33 +0000 (UTC) Cc: Michael Heerdegen , emacs-devel To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 01:15:28 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bIOhb-0002fh-PS for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2016 01:15:27 +0200 Original-Received: from localhost ([::1]:46121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIOhX-0008Mg-Ah for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2016 19:15:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIOhP-0008GF-HC for emacs-devel@gnu.org; Wed, 29 Jun 2016 19:15:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIOhK-0000Wk-C9 for emacs-devel@gnu.org; Wed, 29 Jun 2016 19:15:15 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIOhK-0000W6-8w for emacs-devel@gnu.org; Wed, 29 Jun 2016 19:15:10 -0400 Original-Received: from mail-ob0-f171.google.com ([209.85.214.171]:35833) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bIOhI-0000Xk-J5 for emacs-devel@gnu.org; Wed, 29 Jun 2016 19:15:08 -0400 Original-Received: by mail-ob0-f171.google.com with SMTP id o10so34938639obp.2 for ; Wed, 29 Jun 2016 16:15:08 -0700 (PDT) X-Gm-Message-State: ALyK8tKFD0XOBv065xPsf3g5nUkQvI4c5osriu6MzY53osX7oRjLMgSlJ0eG9Ep7GCMs5dQxTdOkF3hrqVh0Uw== X-Received: by 10.202.245.133 with SMTP id t127mr7597960oih.192.1467242107893; Wed, 29 Jun 2016 16:15:07 -0700 (PDT) Original-Received: by 10.202.212.143 with HTTP; Wed, 29 Jun 2016 16:14:38 -0700 (PDT) In-Reply-To: <75d35e8c-dfbf-4fe8-8850-2507369c9916@default> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204965 Archived-At: On Wed, Jun 29, 2016 at 6:42 PM, Drew Adams wrote: > (provide 'my-feature) ; Ignored by byte compiler, > ; evaluated by 'load'. > (require 'my-feature) ; Evaluated by byte compiler. > > The compiler ignores the 'provide', then processes the 'require' by > loading the file in question. Loading the file does execute the > 'provide' call, so the subsequent 'require' call does nothing when the > file is loaded. Thank you for the pointer. I would, however, rather have a byte-compiler option that can be set once per package that produces this behavior so I don't have to do this on a per-file basis or even look at any code for it each time I read the source, just like the byte-compile-warnings variable lets me do away with warnings I don't need in one central location. Bob