From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams 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 08:16:10 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467213742 5177 80.91.229.3 (29 Jun 2016 15:22:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 15:22:22 +0000 (UTC) To: rswgnu@gmail.com, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 29 17:22:10 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 1bIHJX-0007j9-0P for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2016 17:22:07 +0200 Original-Received: from localhost ([::1]:44411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIHJW-0000kb-BF for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2016 11:22:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIHDx-0002rH-66 for emacs-devel@gnu.org; Wed, 29 Jun 2016 11:16:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIHDs-0004MZ-3K for emacs-devel@gnu.org; Wed, 29 Jun 2016 11:16:21 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:29365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIHDr-0004MF-Qm for emacs-devel@gnu.org; Wed, 29 Jun 2016 11:16:16 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5TFGDOh021526 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 29 Jun 2016 15:16:13 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u5TFGCP5012916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 29 Jun 2016 15:16:12 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u5TFGBRJ009305; Wed, 29 Jun 2016 15:16:12 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:204933 Archived-At: > At the top of hact.el is: > (mapc 'require '(hhist set)) I think that's your problem. The byte-compiler is probably looking for a literal (require 'hhist) and (require 'set). The Elisp manual, node `Named Features', says this: When =E2=80=98require=E2=80=99 is used at top level in a file, it takes = effect when you byte-compile that file (*note Byte Compilation::) as well as when you load it. This is in case the required package contains macros that the byte compiler must know about. It also avoids byte compiler warnings for functions and variables defined in the file loaded with =E2=80=98require=E2=80=99. You might be able to get away with wrapping that `mapc' in an `eval-when-compile'. But why bother with the `mapc' at all? Just a guess - someone else will correct me if wrong.