diff options
author | mousebot <mousebot@riseup.net> | 2021-10-04 13:10:18 +0200 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-10-04 13:10:18 +0200 |
commit | c7b33148b32c4036b88a6d7a9feabbdc8b4cde6a (patch) | |
tree | 35922154df0d165ebc0ff98f5d37f9fba0c2454e /lisp/mastodon-toot.el | |
parent | 5095797ef32b922d2a624fa6beb970b5e9cf5ca0 (diff) |
Fix: make after-change-functions buffer local.
See issue #218 — we mistakenly modified the global value and `mastodon-toot--update-status-fields` makes no sense outside the toot compose buffer.
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r-- | lisp/mastodon-toot.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 14264dc..e339c4d 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -401,6 +401,7 @@ If REPLY-TO-ID is provided, set the MASTODON-TOOT--REPLY-TO-ID var." (when (not buffer-exists) (mastodon-toot--display-docs-and-status-fields) (mastodon-toot--setup-as-reply reply-to-user reply-to-id)) + (make-local-variable 'after-change-functions) (push #'mastodon-toot--update-status-fields after-change-functions) (mastodon-toot--update-status-fields) (mastodon-toot-mode t))) |