From c7b33148b32c4036b88a6d7a9feabbdc8b4cde6a Mon Sep 17 00:00:00 2001 From: mousebot Date: Mon, 4 Oct 2021 13:10:18 +0200 Subject: Fix: make after-change-functions buffer local. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See issue #218 — we mistakenly modified the global value and `mastodon-toot--update-status-fields` makes no sense outside the toot compose buffer. --- lisp/mastodon-toot.el | 1 + 1 file changed, 1 insertion(+) 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))) -- cgit v1.2.3