emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/mastodon 8c4f18cca7 32/63: toot--insert-emoji: defalis ->


From: ELPA Syncer
Subject: [nongnu] elpa/mastodon 8c4f18cca7 32/63: toot--insert-emoji: defalis -> defun.
Date: Sun, 4 Aug 2024 04:00:33 -0400 (EDT)

branch: elpa/mastodon
commit 8c4f18cca757f639aa9c19fc03a92b94c22b9d07
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>

    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(-)

diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 4b1e22574b..f07e461eb6 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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]