From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Re: "reference to free variable" only during initialization Date: Sun, 19 Feb 2017 00:01:22 +0100 Message-ID: <87efyv9k8t.fsf@wavexx.thregr.org> References: <87ziiq4nll.fsf@wavexx.thregr.org> <877f5j3vto.fsf@wavexx.thregr.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487458899 32602 195.159.176.226 (18 Feb 2017 23:01:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2017 23:01:39 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50.6 Cc: Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 19 00:01:35 2017 Return-path: Envelope-to: ged-emacs-devel@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 1cfE0V-00085Q-7r for ged-emacs-devel@m.gmane.org; Sun, 19 Feb 2017 00:01:35 +0100 Original-Received: from localhost ([::1]:60070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfE0a-0002yg-VF for ged-emacs-devel@m.gmane.org; Sat, 18 Feb 2017 18:01:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfE0U-0002yP-Jn for emacs-devel@gnu.org; Sat, 18 Feb 2017 18:01:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfE0R-0002yx-Im for emacs-devel@gnu.org; Sat, 18 Feb 2017 18:01:34 -0500 Original-Received: from erc.thregr.org ([46.43.2.63]:51872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cfE0R-0002yb-D3 for emacs-devel@gnu.org; Sat, 18 Feb 2017 18:01:31 -0500 Original-Received: from to-18-69-53.service.infuturo.it ([151.18.69.53] helo=localhost) by erc.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1cfE0L-0007NM-VR (envelope-from ); Sun, 19 Feb 2017 00:01:26 +0100 In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 46.43.2.63 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:212455 Archived-At: On Wed, Jan 25 2017, Noam Postavsky wrote: > Hit send too early. > > On Wed, Jan 25, 2017 at 2:50 PM, Noam Postavsky > wrote: >> at the top of modeline-posn.el. I have init.el with contents > > (add-to-list 'load-path "~/.emacs.d/lisp") > (require 'modeline-posn) > > when I start emacs normally I see no warnings. Sorry for the late reply, but I could find some time just now. I tried to reproduce this on a fresh emacs (from the current master - 26+). This is the resulting minimal ~/.emacs.d/init.el: (package-initialize) (add-to-list 'load-path "~/.emacs.d/lisp") (require 'modeline-posn) ran with: emacs --no-site-file --no-site-lisp --no-splash --no-x-resources with ~/.emacs.d/lisp containing modeline-posn.el from melpa. There's no other file. I indeed had to add (package-initialize) to reproduce the issue, but I'm not sure why it has some influence. Maybe just some delay. Right off the bat, could you reproduce it with this? Evaling after-init-time makes no difference, and I also couldn't reproduce it with my own directions I gave beforehand.