diff options
author | Johnson Denen <johnson.denen@gmail.com> | 2017-05-18 13:31:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 13:31:01 -0400 |
commit | a9e595142eee69fe84f0ab06f7fde76cef27cdac (patch) | |
tree | 8cab32b1228283bdad86f426e346c5aa9ad41368 /lisp/mastodon-inspect.el | |
parent | 9ccc0e8cf74b938493753e2b64f95591f771de44 (diff) | |
parent | 8c841d2ad3d60997f7aea725da86b83ac80dcd61 (diff) |
Merge pull request #135 from jdenen/develop
Release 0.7.0
Diffstat (limited to 'lisp/mastodon-inspect.el')
-rw-r--r-- | lisp/mastodon-inspect.el | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lisp/mastodon-inspect.el b/lisp/mastodon-inspect.el index c12273e..29368a9 100644 --- a/lisp/mastodon-inspect.el +++ b/lisp/mastodon-inspect.el @@ -2,7 +2,7 @@ ;; Copyright (C) 2017 Johnson Denen ;; Author: Johnson Denen <johnson.denen@gmail.com> -;; Version: 0.6.3 +;; Version: 0.7.0 ;; Package-Requires: ((emacs "24.4")) ;; Homepage: https://github.com/jdenen/mastodon.el @@ -28,8 +28,12 @@ ;; Some tools to help inspect / debug mastodon.el ;;; Code: - -(require 'mastodon-tl nil t) +(autoload 'mastodon-http--api "mastodon-http") +(autoload 'mastodon-http--get-json "mastodon-http") +(autoload 'mastodon-media--inline-images "mastodon-media") +(autoload 'mastodon-mode "mastodon") +(autoload 'mastodon-tl--property "mastodon-tl") +(autoload 'mastodon-tl--toot "mastodon-tl") (defgroup mastodon-inspect nil "Tools to help inspect toots." @@ -67,8 +71,10 @@ (with-current-buffer buffer (let ((toot (mastodon-inspect--download-single-toot toot-id ))) (mastodon-tl--toot toot) - (replace-regexp "\n\n\n | " "\n | " nil (point-min) (point-max)) - (mastodon-media--inline-images))) + (goto-char (point-min)) + (while (search-forward "\n\n\n | " nil t) + (replace-match "\n | ")) + (mastodon-media--inline-images))) (switch-to-buffer-other-window buffer) (mastodon-mode))) |