From 8c4f18cca757f639aa9c19fc03a92b94c22b9d07 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Fri, 19 Jul 2024 09:59:49 +0200 Subject: toot--insert-emoji: defalis -> defun. the alias is only set on loading, when mastodon-use-emojify may not be set yet. so we defun it which means it'll check the var whenever it is run. --- lisp/mastodon-toot.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lisp/mastodon-toot.el') diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 4b1e225..f07e461 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -762,11 +762,12 @@ TEXT-ONLY means don't check for attachments or polls." ;;; EMOJIS -(defalias 'mastodon-toot--insert-emoji +(defun mastodon-toot--insert-emoji () + "Prompt to insert an emoji." + (interactive) (if mastodon-use-emojify - #'emojify-insert-emoji - #'emoji-search) - "Prompt to insert an emoji.") + (emojify-insert-emoji) + (emoji-search))) (defun mastodon-toot--emoji-dir () "Return the file path for the mastodon custom emojis directory." -- cgit v1.2.3