aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnson Denen <johnson.denen@gmail.com>2017-04-14 13:54:59 -0400
committerJohnson Denen <johnson.denen@gmail.com>2017-04-14 13:54:59 -0400
commitda84326539ef2e880ade0ab8dc033102d90c048e (patch)
treea52216bbd18aea1051e9446098238073e3f70f20
parent626c6f8607655c17906dadc418b0b47b2f774a78 (diff)
Do some cleanup
- Rename toot--send and toot--cancel functions - Add FIXME reminder
-rw-r--r--lisp/mastodon-toot.el8
-rw-r--r--lisp/mastodon.el1
2 files changed, 5 insertions, 4 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 71df449..481a187 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -42,7 +42,7 @@ STATUS is passed by `url-retrieve'."
(mastodon--http-response-triage status
(lambda () (switch-to-buffer (current-buffer))))) ;; FIXME
-(defun mastodon-toot--send ()
+(defun mastodon-toot-send ()
"Kill new-toot buffer/window and POST contents to the Mastodon instance."
(interactive)
(let ((toot (buffer-string))
@@ -56,15 +56,15 @@ STATUS is passed by `url-retrieve'."
"Bearer "
(mastodon--access-token))))))))
-(defun mastodon-toot--cancel ()
+(defun mastodon-toot-cancel ()
"Kill new-toot buffer/window. Does not POST content to Mastodon."
(interactive)
(kill-buffer-and-window))
(defvar mastodon-toot-mode-map
(let ((map (make-sparse-keymap)))
- (define-key map (kbd "C-c C-c") #'mastodon-toot--send)
- (define-key map (kbd "C-c C-k") #'mastodon-toot--cancel)
+ (define-key map (kbd "C-c C-c") #'mastodon-toot-send)
+ (define-key map (kbd "C-c C-k") #'mastodon-toot-cancel)
map)
"Keymap for `mastodon-toot-mode'.")
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index eb5718c..1bd1a66 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -49,6 +49,7 @@
(defvar mastodon--api-version "v1")
+;; FIXME #25
(defun mastodon-version ()
"Message package version."
(interactive)