title: elisp warning "reference to free variable"
body: <p>I am wandering how to get rid of the elisp warning.
  my setup is the following:</p>
  
  <p>I have init.el file which sets "emacs-root" variable:</p>
  
  <pre><code>;; root of all emacs-related stuff
  (defvar emacs-root
     (if (or (eq system-type 'cygwin)
        (eq system-type 'gnu/linux)
        (eq system-type 'linux)
        (eq system-type 'darwin))
          "~/.emacs.d/"    "z:/.emacs.d/"
       "Path to where EMACS configuration root is."))
  </code></pre>
  
  <p>then in my init.el I have </p>
  
  <pre><code>;; load plugins with el-get
  (require 'el-get-settings)
  </code></pre>
  
  <p>in el-get-settings.el I am loading packages with el-get and appending "el-get/el-get" folder to the load-path:</p>
  
  <pre><code> ;; add el-get to the load path, and install it if it doesn't exist
   (add-to-list 'load-path (concat emacs-root "el-get/el-get"))
  </code></pre>
  
  <p>the problem is that I have a lips warning on 'emacs-root' 
  in last expression for add-to-list : "reference to free variable 'emacs-root'"</p>
  
  <p>what am I doing wrong here and is there any way to make the compiler happy?</p>
  
  <p>this setup works ok btw - I don't have any issues during load time, just this annoying warning.</p>
  
  <p>Regards, Roman</p>