From db2d0aed887c072e1a100ee54205091e1f2d981c Mon Sep 17 00:00:00 2001 From: mousebot Date: Fri, 18 Mar 2022 10:05:56 +0100 Subject: remove require test for --translate-toot-text we already have the same test for declaring lingva-translate fun, so this shouldn't be needed and seems to prevent our fun from loading. --- lisp/mastodon-toot.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 76d7d41..780e726 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -283,7 +283,7 @@ Makes a POST request to the server." (kill-new (mastodon-tl--content toot)) (message "Toot content copied to the clipboard."))) -(when (require 'lingva nil :no-error) +;; (when (require 'lingva nil :no-error) (defun mastodon-toot--translate-toot-text () "Translate text of toot at point. Uses `lingva.el'." @@ -293,7 +293,7 @@ Uses `lingva.el'." (if toot (lingva-translate nil (mastodon-tl--content toot)) (message "No toot to translate?"))) - (message "No mastodon buffer?")))) + (message "No mastodon buffer?"))) (defun mastodon-toot--own-toot-p (toot) "Check if TOOT is user's own, e.g. for deleting it." -- cgit v1.2.3