emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

boundp vs "reference to free variable" warning


From: Dan Nicolaescu
Subject: boundp vs "reference to free variable" warning
Date: Mon, 29 Oct 2007 01:48:38 -0700

The second of these 2 functions:

(defun foo-no-warning ()
  (if (boundp 'erc-fill-column)
      erc-fill-column))

(defun foo-warning ()
  (if (and (boundp 'erc-fill-column) t)
      erc-fill-column))

gets a byte compile warning:

In foo-warning:
t.el:7:7:Warning: reference to free variable `erc-fill-column'


It would be nice if this warning would not be emitted.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]