From 03588ee710454d4a9da43efa0e8954f70b21327d Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 3 Apr 2010 12:22:14 -0700 Subject: [PATCH] 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). --- emacs/notmuch.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.26.2