emacs: fix custom queries section customization widget in notmuch-hello

The customization widget referred to a non-existing function
`notmuch-hello-insert-query-list'.  The patch changes it to the
correct one - `notmuch-hello-insert-searches'.  The relevant test is
fixed now.
This commit is contained in:
Dmitry Kurochkin 2012-05-05 18:39:47 +04:00 committed by David Bremner
parent 512df7ec47
commit 4997ec9571
2 changed files with 1 additions and 2 deletions

View file

@ -187,7 +187,7 @@ This should only be set by `notmuch-hello-insert-search'.")
:tag "Customized queries section (see docstring for details)" :tag "Customized queries section (see docstring for details)"
:type :type
`(list :tag "" `(list :tag ""
(const :tag "" notmuch-hello-insert-query-list) (const :tag "" notmuch-hello-insert-searches)
(string :tag "Title for this section") (string :tag "Title for this section")
(repeat :tag "Queries" (repeat :tag "Queries"
(cons (string :tag "Name") (string :tag "Query"))) (cons (string :tag "Name") (string :tag "Query")))

View file

@ -52,7 +52,6 @@ test_emacs "(let* ((widget (widget-create 'notmuch-hello-tags-section))
test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-empty-custom-tags-section test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-empty-custom-tags-section
test_begin_subtest "Empty custom queries section" test_begin_subtest "Empty custom queries section"
test_subtest_known_broken
test_emacs "(let* ((widget (widget-create 'notmuch-hello-query-section)) test_emacs "(let* ((widget (widget-create 'notmuch-hello-query-section))
(notmuch-hello-sections (list (widget-value widget)))) (notmuch-hello-sections (list (widget-value widget))))
(notmuch-hello) (notmuch-hello)