all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* "reference to free variable" only during initialization
@ 2017-01-16 23:00 Yuri D'Elia
  2017-01-16 23:47 ` Noam Postavsky
  0 siblings, 1 reply; 11+ messages in thread
From: Yuri D'Elia @ 2017-01-16 23:00 UTC (permalink / raw)
  To: emacs-devel

I have an oddball warning that I have an hard time debugging. I upgraded
to emacs 25.1.1 on a debian desktop recently, and started to get:

Warning (bytecomp): reference to free variable ‘isearchp-reg-beg’

during startup. The warning is generated by requiring
modeline-posn.el[1], which is using ``isearchp-reg-beg`` (actually
defvar-ed early on) inside a defadvice form.

Is this expected?

Warning aside, the intriguing part is that the warning /only/ occurs
when (require 'modeline-posn) is evaluated in my ~/.emacs, but is not
emitted instead when doing the "allegedly" equivalent:

  emacs -q -l ~/.emacs

even when ~/.emacs itself only contains:

  (add-to-list 'load-path "path-to-modeline.el")
  (require 'modeline-posn)

or when simply doing an eval in a fresh emacs -q session

The remaining difference is that emacs -q is skipping debian's system
startup. But I cannot think of something that could influence the
generation of a bytecomp warning.

Any pointer before going further?

[1] https://www.emacswiki.org/emacs/modeline-posn.el




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-02-19 15:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-16 23:00 "reference to free variable" only during initialization Yuri D'Elia
2017-01-16 23:47 ` Noam Postavsky
2017-01-25 17:15   ` Yuri D'Elia
2017-01-25 19:50     ` Noam Postavsky
2017-01-25 19:51       ` Noam Postavsky
2017-02-18 23:01         ` Yuri D'Elia
2017-02-19  4:18           ` Noam Postavsky
2017-02-19 12:32             ` Yuri D'Elia
2017-02-19 13:44               ` Noam Postavsky
2017-02-19 14:22                 ` Yuri D'Elia
2017-02-19 15:58                   ` Drew Adams

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.