diff options
author | Tino Calancha <tino.calancha@gmail.com> | 2019-08-26 07:42:32 +0200 |
---|---|---|
committer | Tino Calancha <tino.calancha@gmail.com> | 2019-08-26 07:42:32 +0200 |
commit | 7c1b7e5fea36e656a95267fe3e256573504f3ada (patch) | |
tree | 336dfccc717890887d2cdc91a8b19c9c77786e08 /contrib/emacs | |
parent | cd1c0754ae01b923be193b00a0318fffcc524947 (diff) |
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 (limited to 'contrib/emacs')
-rw-r--r-- | contrib/emacs/CHANGELOG.md | 5 | ||||
-rw-r--r-- | contrib/emacs/password-store.el | 9 |
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. |