m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/contrib/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/emacs')
-rw-r--r--contrib/emacs/CHANGELOG.md5
-rw-r--r--contrib/emacs/password-store.el9
2 files changed, 13 insertions, 1 deletions
diff --git a/contrib/emacs/CHANGELOG.md b/contrib/emacs/CHANGELOG.md
index 0be54ab..a22659c 100644
--- 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
index 9234553..7b20462 100644
--- 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.