all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Weiner <rsw@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: Michael Heerdegen <michael_heerdegen@web.de>,
	emacs-devel <emacs-devel@gnu.org>
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	[thread overview]
Message-ID: <CA+OMD9hB-a+cUssVHjuckECHVpeu=fRvmyi2YMUACBC9omqw7A@mail.gmail.com> (raw)
In-Reply-To: <75d35e8c-dfbf-4fe8-8850-2507369c9916@default>

On Wed, Jun 29, 2016 at 6:42 PM, Drew Adams <drew.adams@oracle.com> 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



  reply	other threads:[~2016-06-29 23:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-29 14:55 Emacs 25.0.94: Is require failing to define macros and functions at compile time? Robert Weiner
2016-06-29 15:14 ` Clément Pit--Claudel
2016-06-29 15:44   ` Robert Weiner
2016-06-29 19:06     ` Davis Herring
2016-06-29 19:59       ` Drew Adams
2016-06-29 20:34         ` Robert Weiner
2016-06-29 20:59           ` Drew Adams
2016-06-29 21:04           ` John Mastro
2016-06-30  0:09           ` Herring, Davis
2016-06-30  5:56             ` Robert Weiner
2016-06-29 15:16 ` Drew Adams
2016-06-29 22:03   ` Michael Heerdegen
2016-06-29 22:09     ` Robert Weiner
2016-06-29 22:27       ` Michael Heerdegen
2016-06-29 22:42         ` Drew Adams
2016-06-29 23:14           ` Robert Weiner [this message]
2016-06-29 22:07 ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+OMD9hB-a+cUssVHjuckECHVpeu=fRvmyi2YMUACBC9omqw7A@mail.gmail.com' \
    --to=rsw@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=michael_heerdegen@web.de \
    --cc=rswgnu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.