From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: unexpected byte-compiler behaviour Date: Thu, 9 Mar 2017 15:28:50 -0800 Message-ID: References: <20170309174614.GA3572@workstation> <20170309192503.GB2999@workstation> <20170309224944.GA3148@workstation> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1489102201 2244 195.159.176.226 (9 Mar 2017 23:30:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2017 23:30:01 +0000 (UTC) Cc: hector To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 10 00:29:50 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm7V9-0007Ah-8M for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 00:29:43 +0100 Original-Received: from localhost ([::1]:36665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm7VF-00012G-DY for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 18:29:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm7Uf-00010x-A3 for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 18:29:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cm7Ue-0000bh-9A for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 18:29:13 -0500 Original-Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:34704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cm7Ue-0000bP-4t for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 18:29:12 -0500 Original-Received: by mail-qk0-x229.google.com with SMTP id p64so145040930qke.1 for ; Thu, 09 Mar 2017 15:29:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gxoj0aEgWD5Ks6woJzQ8UbhK9OASwGkfyYGnCbtvW/I=; b=XAj70vI8yzBtnLYZ7OqAloGsR1/b3XVzuEGCLRBAAzfRG1ZaJN0YVqfDkutDZDl3JO a1Gd0uCFjdXJn7udSuB0HbqcUgua4XD7/tctklOpB/uGRtz6DOUKbhgXjfJh5WqHUzC2 hMdIPtqG0csW1LJMyKiAUZQ80R3QEA6BrKSxlSEqj1JWIzujYjCvzYaJ7NPLKrEwUeek crSIz59+3x8KbaiBnZMiEOP+X7Dv3RldlSaS/158vNpqxvXtAO70U8u1jTS/yNpPPQxe fXICBjAJzDmnKcwHZeMnnTVa7AJtHd/lvGfbENiWG2q221fYjMKS1xgoC2HIdz+8SFbb mHkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=gxoj0aEgWD5Ks6woJzQ8UbhK9OASwGkfyYGnCbtvW/I=; b=WVjnhYRqowV+FWAiIRQyUy0IdzTAYsLe4B6MXDISo3OFzFQHmiOdcyu7Er7hzeVjmD IrRp7eQcHSx4/zO+665cF+fnBLsQrhycYuknh/08ndWMqIg9bSzbC440tQeQ4eg2vSxY Th6z1G4i4sYjZEylBw+2DaRXVniJPJcZojYBy8z3NFeLEHBExoHKYWADf6I/6BNpWEnk 4Qeq9t14EIc7YRK9wMmu6etifv1sErUGDyEb5ADgwqofC5440y3FzqgdX3F3JMqwM+y6 Z5WeXzjqvP493wJw6LhgNLr3qhBHMLjXB55tKZvHQ3awI65wJ+zpahpDjkfQ2pguyEOK HpZw== X-Gm-Message-State: AMke39lvCdwOsQc3mj9BjwV4AjkWxFI+1u8XbOLg2NFZHHy9TyUehWS4VbVfciOFiBb+Er4ZJWUJhVJWYX0hVw== X-Received: by 10.55.197.82 with SMTP id p79mr15599901qki.24.1489102151475; Thu, 09 Mar 2017 15:29:11 -0800 (PST) Original-Received: by 10.237.49.162 with HTTP; Thu, 9 Mar 2017 15:28:50 -0800 (PST) In-Reply-To: <20170309224944.GA3148@workstation> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112503 Archived-At: hector wrote: > So basically linking is done, not at compilation like in C, but > dynamically at run time. I think I get it. Thanks a lot. Yeah, I think that's a fair description. > Could it be that my environment (loaded libraries) is affecting > compilation? Is it advisable to run Emacs with -Q? Emacs's state can definitely affect compilation, and when macros are involved it can get a little subtle/confusing. It's not necessary to use "emacs -Q" on a regular basis (I suspect most people only do that when debugging a specific problem in a minimal environment), but it can definitely be helpful to use it for compilation sometimes (especially after large changes, especially involving macros used in different files than where they were defined). To do that, you could either launch an "emacs -Q" and then use e.g. byte-recompile-directory, or install the async package and call async-byte-recompile-directory, which will launch an "emacs -Q" in the background. John