title: How to check if a variable is set to what in elisp/emacs?
body: <p>Let's say I have the following line in .emacs file.</p>
  
  <pre><code>(setq-default default-directory "~/Desktop/mag")
  </code></pre>
  
  <p>How can I check the value for `default-directory' in elisp?</p>
  
  <h2>Added</h2>
  
  <p>I asked this question as I need to check the value of default-directory based on <a href="https://stackoverflow.com/questions/3364221/change-the-default-directory-of-emacs-with-cocoa-emacs">this question</a>. </p>
  
  <p>The elisp code should change the default directory when I click C-x C-f, but I still get ~/, not ~/Desktop/mag. So, I need to check what value the default-directory has. </p>