Re: Warning: reference to free variable `begin'

Ralf Angeli <[email protected]> Fri, 18 Mar 2005 19:13:24 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* David Kastrup (2005-03-18) writes:

> Me neither.  Outside of advice, I think this might be supposed to
> work.  Not too sure about that, though.

No, it won't.  Try `M-x compile-defun RET' on the following function:

(defun foo ()
  (and (boundp 'begin) begin))

However, it will work if you replace `and' by `if'.  A while back
there was a discussion on emacs-devel to teach the byte compiler other
variants like `and' or `when' as well.  Obviously this hasn't made its
way into Emacs yet.

-- 
Ralf