commit 0ee5ab3c5267faeafe6f95271ad7d5c59e15c90f
parent 5c9f614cc43c963a49b695abef8cb9be3f146e85
Author: Svend Sorensen <svend@svends.net>
Date: Thu, 25 Apr 2019 19:38:46 -0700
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`.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2014-2018 Svend Sorensen <svend@svends.net>
;; Author: Svend Sorensen <svend@svends.net>
-;; 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))