From 0ee5ab3c5267faeafe6f95271ad7d5c59e15c90f Mon Sep 17 00:00:00 2001 From: Svend Sorensen Date: Thu, 25 Apr 2019 19:38:46 -0700 Subject: emacs: Drop nil command arguments Drop nil arguments in `password-store--run` and `password-store--run-1`. This fixes an error running `password-store-generate`. --- contrib/emacs/password-store.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el index 27c168a..0ad21ff 100644 --- a/contrib/emacs/password-store.el +++ b/contrib/emacs/password-store.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2014-2018 Svend Sorensen ;; Author: Svend Sorensen -;; Version: 2.0.0 +;; Version: 2.0.1 ;; URL: https://www.passwordstore.org/ ;; Package-Requires: ((emacs "25") (f "0.11.0") (s "1.9.0") (with-editor "2.5.11")) ;; Keywords: tools pass password password-store @@ -67,7 +67,7 @@ or outputs error message on failure." (let ((output "")) (make-process :name "password-store-gpg" - :command (cons password-store-executable args) + :command (cons password-store-executable (delq nil args)) :connection-type 'pipe :noquery t :filter (lambda (process text) @@ -88,7 +88,7 @@ outputs error message on failure." (slept-for 0)) (apply #'password-store--run-1 (lambda (password) (setq output password)) - args) + (delq nil args)) (while (not output) (sleep-for .1)) output)) -- cgit v1.2.3