Environment: Debian Squeeze testing, emacs 23.1+1-6, log4j-mode 1.3
When trying to apply a filter to a non-file buffer in log4j-mode an error happens ("let: Symbol's value as variable is void: auto-revert-verbose").
The reason is that by default this variable (like every other auto-revert related stuff) is not defined.
A way to fix this problem is to explicitly switch off auto-reverting (and switch it on if it's needed) since that assigns values to all the variables, that's what the patch below does.
---------------8<------------
--- log4j-mode.el 2008-03-03 10:36:40.000000000 +0100
+++ log4j-mode.el.fixed 2010-03-24 01:10:18.000000000 +0100
@@ -793,6 +793,7 @@
(setq log4j-last-highlight-pos (point-max))
;; Turn on Auto Revert mode if buffer is visiting a file
+ (auto-revert-mode 0)
(when (buffer-file-name)
(if log4j-auto-revert-flag
(auto-revert-mode 1))