diff options
| author | clarkenciel <clarkenciel@gmail.com> | 2017-04-27 20:30:22 -0700 | 
|---|---|---|
| committer | Johnson Denen <johnson.denen@gmail.com> | 2017-04-28 14:48:54 -0400 | 
| commit | 84b825296d731f631c3a64feb55ee8511326fa25 (patch) | |
| tree | 6d0666b30be7397c2389af4f33aff928beb63bcc /lisp | |
| parent | 995e97a91da18ae77de78a9b16bc54cc4f481a54 (diff) | |
changing creation of toot buffer so that we don't duplicate docs
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mastodon-toot.el | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index af86b5f..5131191 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -186,10 +186,12 @@ If REPLY-TO-ID is provided, set the MASTODON-TOOT--REPLY-TO-ID var."    "Create a new buffer to capture text for a new toot.  If REPLY-TO-USER is provided, inject their handle into the message.  If REPLY-TO-ID is provided, set the MASTODON-TOOT--REPLY-TO-ID var." -  (let ((buffer (get-buffer-create "*new toot*"))) +  (let* ((buffer-exists (get-buffer "*new toot*")) +	 (buffer (or buffer-exists (get-buffer-create "*new toot*"))))      (switch-to-buffer-other-window buffer) -    (mastodon-toot--display-docs) -    (mastodon-toot--setup-as-reply reply-to-user reply-to-id) +    (when (not buffer-exists) +      (mastodon-toot--display-docs) +      (mastodon-toot--setup-as-reply reply-to-user reply-to-id))      (mastodon-toot-mode t)))  (defvar mastodon-toot-mode-map | 
