[PATCH] emacs: Make parameter optional in password-store-clear

Sergey Trofimov sarg at sarg.org.ru
Mon Sep 16 21:54:52 CEST 2019


---
field parameter could be made optional preserving backward
compatibility with previous version of function.

 contrib/emacs/password-store.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el
index 44c52b4..8469b19 100644
--- a/contrib/emacs/password-store.el
+++ b/contrib/emacs/password-store.el
@@ -254,7 +254,7 @@ If FIELD equals to symbol secret, then this function reduces to `password-store-
 
 
 ;;;###autoload
-(defun password-store-clear (field)
+(defun password-store-clear (&optional field)
   "Clear FIELD in kill ring."
   (interactive "i")
   (unless field (setq field 'secret))
-- 
2.23.0



More information about the Password-Store mailing list