diff options
author | marty hiatt <martianhiatus@disroot.org> | 2024-10-23 21:29:41 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@disroot.org> | 2024-10-23 21:29:41 +0200 |
commit | 7c9e5577f77da54d10bc0ed1426f0eff3570e3de (patch) | |
tree | 2e1c6cc8826097c7a941e4b3dbd6ed16b0b78c38 /lisp/mastodon-transient.el | |
parent | 263d486c3bb83bc7cbfb9bb5196f25f1253c02a5 (diff) |
boolean defcustom for transient poll
Diffstat (limited to 'lisp/mastodon-transient.el')
-rw-r--r-- | lisp/mastodon-transient.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mastodon-transient.el b/lisp/mastodon-transient.el index 1a9442e..fbdfcb0 100644 --- a/lisp/mastodon-transient.el +++ b/lisp/mastodon-transient.el @@ -217,7 +217,7 @@ the format fields.X.keyname." (let ((instance (mastodon-instance-data))) (mastodon-toot--fetch-max-poll-option-chars instance))) -(transient-define-prefix mastodon-toot--create-poll () +(transient-define-prefix mastodon-create-poll () "A transient for creating a poll." ;; FIXME: handle existing polls when editing a toot ;; FIXME: handle editing poll in same toot! @@ -245,12 +245,12 @@ the format fields.X.keyname." (interactive) (if (not mastodon-active-user) (user-error "User not set") - (transient-setup 'mastodon-toot--create-poll))) + (transient-setup 'mastodon-create-poll))) (transient-define-suffix mastodon-create-poll-done (args) "Update current user profile fields." :transient 'transient--do-exit - (interactive (list (transient-args 'mastodon-toot--create-poll))) + (interactive (list (transient-args 'mastodon-create-poll))) ;; (message "Done!\n%s" args) ;; this is a mess, but we are just plugging our transient data into the ;; existing variable, as we already have code to post that. we don't |