From 7c1b7e5fea36e656a95267fe3e256573504f3ada Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Mon, 26 Aug 2019 07:42:32 +0200 Subject: 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. --- contrib/emacs/CHANGELOG.md | 5 +++++ contrib/emacs/password-store.el | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'contrib/emacs') 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 ;; Maintainer: Tino Calancha -;; 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. -- cgit v1.2.3