From bcae92b442ab909e633a838d5f83bcf8185b2784 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 22 Jul 2020 07:17:09 -0700 Subject: don't call completing-read when there are no completions Signed-off-by: Sean Whitton --- mailscripts.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mailscripts.el') diff --git a/mailscripts.el b/mailscripts.el index d31223a..703f86e 100644 --- a/mailscripts.el +++ b/mailscripts.el @@ -213,9 +213,8 @@ git-format-patch(1)." (nil (user-error "Please customize variable `mailscripts-project-library'.")))) - (branch (completing-read - "Branch name (or leave blank to apply to current HEAD): " - nil))) + (branch (read-from-minibuffer + "Branch name (or leave blank to apply to current HEAD): "))) (apply f repo branch args))) (provide 'mailscripts) -- cgit v1.2.3