emacs: Fix "free variable" warning for notmuch-folder-show-empty.

Emacs really wants us to defvar each variable before assigning to it,
(which gives us a place to document the variable as well).
This commit is contained in:
Carl Worth 2010-04-03 12:22:14 -07:00
parent e33b73819a
commit 03588ee710

View file

@ -1733,7 +1733,8 @@ Currently available key bindings:
(defun notmuch-folder-count (search)
(car (process-lines notmuch-command "count" search)))
(setq notmuch-folder-show-empty t)
(defvar notmuch-folder-show-empty t
"Whether `notmuch-folder-mode' should display empty folders.")
(defun notmuch-folder-show-empty-toggle ()
"Toggle the listing of empty folders"