all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Byte compiling and semi-free variables
@ 2008-12-28 15:39 Lennart Borgman
  2008-12-28 15:48 ` Juanma Barranquero
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lennart Borgman @ 2008-12-28 15:39 UTC (permalink / raw)
  To: Emacs Devel

If you order definitions top-down in your elisp source files, like this

  ;;;; Interactive defuns:

  (defun my-fun ()
    (interactive)
    (setq my-internal-var 1) )

  ;;;; Internal variables
  (defvar my-internal-var nil)

and byte-compile the files you get warnings like

  my-lib.el:118:14:Warning: reference to free variable `my-internal-var'

Is there any way to avoid that warning?




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

end of thread, other threads:[~2008-12-28 23:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-28 15:39 Byte compiling and semi-free variables Lennart Borgman
2008-12-28 15:48 ` Juanma Barranquero
2008-12-28 15:50   ` Lennart Borgman
2008-12-28 17:26 ` Stephen J. Turnbull
2008-12-28 22:21 ` Miles Bader
2008-12-28 23:19   ` Lennart Borgman

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.