aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-05-04 20:15:36 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-05-04 20:15:36 +0200
commit067270e5a9630817335dbdb28760324953597d1d (patch)
treed4e28e4d6203161b624831714bf4aa3397b1891a /lisp/mastodon-toot.el
parent9e1120be537fe7c7083aa2a386fe5feee5420432 (diff)
pushnew not push in compose-buffer
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 0f25db4..22f001d 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -1739,13 +1739,13 @@ EDIT means we are editing an existing toot, not composing a new one."
(company-mode-on)))
;; after-change:
(make-local-variable 'after-change-functions)
- (push #'mastodon-toot--update-status-fields after-change-functions)
+ (cl-pushnew #'mastodon-toot--update-status-fields after-change-functions)
(mastodon-toot--refresh-attachments-display)
(mastodon-toot--update-status-fields)
;; draft toot text saving:
(setq mastodon-toot-current-toot-text nil)
- (push #'mastodon-toot--save-toot-text after-change-functions)
- (push #'mastodon-toot--propertize-tags-and-handles after-change-functions)
+ (cl-pushnew #'mastodon-toot--save-toot-text after-change-functions)
+ (cl-pushnew #'mastodon-toot--propertize-tags-and-handles after-change-functions)
;; if we set this before changing modes, it gets nuked:
(setq mastodon-toot-previous-window-config previous-window-config)
(when initial-text