[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon 0aa39f5f14 11/22: mastodon-toot--enable-custom-em
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon 0aa39f5f14 11/22: mastodon-toot--enable-custom-emoji: performance improvement. |
Date: |
Thu, 5 Oct 2023 07:00:54 -0400 (EDT) |
branch: elpa/mastodon
commit 0aa39f5f1451b7eb58954516a9b2a8b9be6dc16a
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>
mastodon-toot--enable-custom-emoji: performance improvement.
---
lisp/mastodon-toot.el | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index a8c85d8033..f7d4f1802c 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -758,12 +758,17 @@ to `emojify-user-emojis', and the emoji data is updated."
(when (y-or-n-p "Looks like you haven't downloaded your
instance's custom emoji yet. Download now? ")
(mastodon-toot--download-custom-emoji)))
- (setq emojify-user-emojis
- (append (mastodon-toot--collect-custom-emoji)
- emojify-user-emojis))
- ;; if already loaded, reload
- (when (featurep 'emojify)
- (emojify-set-emoji-data)))
+ ;; FIXME this test is awful, only works if we were last to mod the list:
+ (unless (equal (car (mastodon-toot--collect-custom-emoji))
+ (car emojify-user-emojis))
+ (setq emojify-user-emojis
+ (append (mastodon-toot--collect-custom-emoji)
+ emojify-user-emojis))
+ ;; if already loaded, reload
+ (when (featurep 'emojify)
+ ;; we now only do this within the unless test above, as it is extremely
+ ;; slow and runs in `mastodon-mode-hook'.
+ (emojify-set-emoji-data))))
(defun mastodon-toot--remove-docs ()
"Get the body of a toot from the current compose buffer."
- [nongnu] elpa/mastodon 1964ee8ad6 13/22: bump version, (continued)
- [nongnu] elpa/mastodon 1964ee8ad6 13/22: bump version, ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon 5d46e17c0b 20/22: indent -toot.el, ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon d39903ddcc 17/22: bump version, ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon e8f10073a6 18/22: bump version, ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon bf656bd333 19/22: rear-nonsticky only for \n at end of compose header., ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon 083222c20c 21/22: bump, ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon b8c5e9d50d 22/22: Merge branch 'develop', ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon 3cd233610a 09/22: comment CI badge (defunct), ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon 98333a0f21 12/22: remove lambda from masto-toot hook, ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon 2d3b3f00a3 05/22: refactor misskey instance desc. if masto inst err, try misskey, ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon 0aa39f5f14 11/22: mastodon-toot--enable-custom-emoji: performance improvement.,
ELPA Syncer <=
- [nongnu] elpa/mastodon b8517fa6d6 14/22: Merge branch 'develop', ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon 04978295f6 15/22: enable-custom-emoji: cl-find predicate for unless, ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon ce6739f747 04/22: instance-response-fun: misskey arg optional, ELPA Syncer, 2023/10/05
- [nongnu] elpa/mastodon 926bffff9d 16/22: enable-custom-emoji: cl-find predicate for unless, ELPA Syncer, 2023/10/05