From: Carl Worth Date: Sat, 3 Apr 2010 19:22:14 +0000 (-0700) Subject: emacs: Fix "free variable" warning for notmuch-folder-show-empty. X-Git-Tag: 0.1~11 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=03588ee710454d4a9da43efa0e8954f70b21327d 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). --- diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 050aacb9..f887916c 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -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"