]> git.notmuchmail.org Git - notmuch/commit
emacs: hello: bugfix for saved searches defcustom
authorMark Walters <markwalters1009@gmail.com>
Wed, 16 Apr 2014 21:21:53 +0000 (22:21 +0100)
committerDavid Bremner <david@tethera.net>
Mon, 21 Apr 2014 12:48:41 +0000 (21:48 +0900)
commitae2888015e41174aa34203f397ffa034b56cfc61
treeb69e9f11670855bb2e3f5eca032b78bbf0624774
parentc3d54c4b54959633f2aee5e57ae21db71af15dbd
emacs: hello: bugfix for saved searches defcustom

The recent changes for saved searches introduced a bug when notmuch
was loaded after the saved search was defined. This was caused by a
utility function not being defined when the defcustom was loaded.

Fix this by moving some code around: the defcustom is moved into
notmuch-hello (which is a more natural place anyway), and the utility
functions are moved before the defcustom in notmuch-hello. We are
rather constrained as the defcustom for saved searches is the first
variable in the notmuch-hello customize window; to avoid moving this
customize the defcustom needs to be the first defcustom in
notmuch-hello, and the utility functions come before that.

This patch also renames one of the utility functions from
notmuch--saved-searches-to-plist to
notmuch-hello--saved-searches-to-plist (as it is purely local to
notmuch-hello) and corrects a couple of typo/spelling mistakes pointed
out by Tomi.
emacs/notmuch-hello.el
emacs/notmuch-lib.el