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 18:09:40 -0400 Message-ID: References: <87d1mzps99.fsf@web.de> 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 1467238287 25657 80.91.229.3 (29 Jun 2016 22:11:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 22:11:27 +0000 (UTC) Cc: emacs-devel To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 00:11:22 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 1bINhZ-0006it-84 for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2016 00:11:21 +0200 Original-Received: from localhost ([::1]:45986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bINhV-0003lv-4z for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2016 18:11:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bINgW-0001VG-QI for emacs-devel@gnu.org; Wed, 29 Jun 2016 18:10:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bINgR-0003Gy-OJ for emacs-devel@gnu.org; Wed, 29 Jun 2016 18:10:16 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bINgR-0003GH-LD for emacs-devel@gnu.org; Wed, 29 Jun 2016 18:10:11 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:36533) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bINgQ-0000RX-3a for emacs-devel@gnu.org; Wed, 29 Jun 2016 18:10:10 -0400 Original-Received: by mail-ob0-f169.google.com with SMTP id mu6so45879794obc.3 for ; Wed, 29 Jun 2016 15:10:10 -0700 (PDT) X-Gm-Message-State: ALyK8tItuvEtzyjKJ/el/P6riBw2AkPLxm/tcT4MJmanH9AHzH0rHUShpu6BYwBH+wZB2j55u1wTnKzWQrK7MA== X-Received: by 10.202.72.137 with SMTP id v131mr7255256oia.22.1467238209515; Wed, 29 Jun 2016 15:10:09 -0700 (PDT) Original-Received: by 10.202.212.143 with HTTP; Wed, 29 Jun 2016 15:09:40 -0700 (PDT) In-Reply-To: <87d1mzps99.fsf@web.de> 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:204961 Archived-At: On Wed, Jun 29, 2016 at 6:03 PM, Michael Heerdegen wrote: > Presumably `eval-and-compile', I think, since he also wants to call the > `require' statements when loading the file. Yes, that solved things nicely. On a related note, I like to define variables private to a library at the end of the library after all functions. But then the byte-compiler gives warnings that I am referencing free variables since it doesn't yet know about the definition. Is there a way to have it load the .el version of the file first and then byte-compile it if that is what I want? Thanks, Bob