commit 7c1b7e5fea36e656a95267fe3e256573504f3ada
parent cd1c0754ae01b923be193b00a0318fffcc524947
Author: Tino Calancha <tino.calancha@gmail.com>
Date: Mon, 26 Aug 2019 07:42:32 +0200
Re add password-store-timeout for backward compatibility
Some libraries rely on this function, e.g. password-store-otp library.
* contrib/emacs/password-store.el (password-store-timeout):
Re include this function; now it just returns
password-store-time-before-clipboard-restore.
Diffstat:
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/contrib/emacs/CHANGELOG.md b/contrib/emacs/CHANGELOG.md
@@ -1,3 +1,8 @@
+# 2.0.4
+
+* Re add password-store-timeout function to preserve backward
+ compatibility with other libraries relying on it.
+
# 2.0.3
* (feature) Update password-store-password-length default value to 25
diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el
@@ -4,7 +4,7 @@
;; Author: Svend Sorensen <svend@svends.net>
;; Maintainer: Tino Calancha <tino.calancha@gmail.com>
-;; Version: 2.0.3
+;; Version: 2.0.4
;; 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
@@ -62,6 +62,13 @@
(defvar password-store-timeout-timer nil
"Timer for clearing clipboard.")
+(defun password-store-timeout ()
+ "Number of seconds to wait before clearing the password.
+
+This function just returns `password-store-time-before-clipboard-restore'.
+Kept for backward compatibility with other libraries."
+ password-store-time-before-clipboard-restore)
+
(defun password-store--run-1 (callback &rest args)
"Run pass with ARGS.