[PATCH 3/4] emacs: Fix `notmuch-user-other-email' when no other emails are configured

Subject: [PATCH 3/4] emacs: Fix `notmuch-user-other-email' when no other emails are configured

Date: Thu, 20 Feb 2014 14:16:36 -0500

To: notmuch@notmuchmail.org

Cc: bjonnh-nm@bjonnh.net

From: Austin Clements


Thanks to the previous patch, this no longer crashes in this
situation, but now would return ("").  Fix it to return () when no
emails are configured.
---
 emacs/notmuch-lib.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 09110b5..2fefdad 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -220,7 +220,7 @@ on the command line, and then retry your notmuch command")))
 
 (defun notmuch-user-other-email ()
   "Return the user.other_email value (as a list) from the notmuch configuration."
-  (split-string (notmuch-config-get "user.other_email") "\n"))
+  (split-string (notmuch-config-get "user.other_email") "\n" t))
 
 (defun notmuch-poll ()
   "Run \"notmuch new\" or an external script to import mail.
-- 
1.8.4.rc3


Thread: