From b61d1bfc9a87a809e5adfb705e8cacc1965d9c93 Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 26 Mar 2012 21:18:26 +0300 Subject: [PATCH] * mu4e.el: clearer error when mu4e-mu-binary is not found --- emacs/mu4e.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs/mu4e.el b/emacs/mu4e.el index 99f94db8..2faeeea0 100644 --- a/emacs/mu4e.el +++ b/emacs/mu4e.el @@ -1,6 +1,6 @@ ;;; mu4e.el -- part of mu4e, the mu mail user agent ;; -;; Copyright (C) 2011 Dirk-Jan C. Binnema +;; Copyright (C) 2011-2012 Dirk-Jan C. Binnema ;; Author: Dirk-Jan C. Binnema ;; Maintainer: Dirk-Jan C. Binnema @@ -420,6 +420,9 @@ dir already existed, or has been created, nil otherwise." (defun mu4e-check-requirements () "Check for the settings required for running mu4e." + (unless (and mu4e-mu-binary (file-executable-p mu4e-mu-binary)) + (error "Please set `mu4e-mu-binary' to the full path to the mu + binary.")) (unless mu4e-maildir (error "Please set `mu4e-maildir' to the full path to your Maildir directory."))