branch: elpa/mastodon
commit 4c72994a488ea37af44135ddc73e91247d9c0b34
Author: marty hiatt <martianhia...@disroot.org>
Commit: marty hiatt <martianhia...@disroot.org>

    add mastodon-forget-all-logins
    
    message on delete logins
---
 lisp/mastodon.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index c092f43850..e02c1ba646 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -195,6 +195,13 @@ and X others...\"."
   (interactive)
   (quit-window 'kill))
 
+(defun mastodon-forget-all-logins ()
+  "Delete `mastodon-client--token-file'."
+  (interactive)
+  (when (y-or-n-p "Remove all saved login data?")
+    (delete-file mastodon-client--token-file)
+    (message "File %s deleted." mastodon-client--token-file)))
+
 (defvar mastodon-mode-map
   (let ((map (make-sparse-keymap)))
     ;; navigation inside a timeline

Reply via email to