[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Byte compiling and semi-free variables
From: |
Lennart Borgman |
Subject: |
Byte compiling and semi-free variables |
Date: |
Sun, 28 Dec 2008 16:39:33 +0100 |
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?
- Byte compiling and semi-free variables,
Lennart Borgman <=