diff options
| author | mousebot <mousebot@riseup.net> | 2022-03-25 17:39:19 +0100 | 
|---|---|---|
| committer | mousebot <mousebot@riseup.net> | 2022-03-25 17:39:19 +0100 | 
| commit | 6d4528ca05d946892e13cbc4657d0c379445b13d (patch) | |
| tree | 77d3b20b18b6befc5d453f2e6714f52923f81114 | |
| parent | cecd5de060a56f13f7f7eb4528b341027812faab (diff) | |
call lingva-translate with optional variable-pitch arg
| -rw-r--r-- | lisp/mastodon-toot.el | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 07ab400..52b061c 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -289,9 +289,12 @@ Makes a POST request to the server."  Uses `lingva.el'."      (interactive)      (if mastodon-tl--buffer-spec -        (let* ((toot (mastodon-tl--property 'toot-json))) +        (let ((toot (mastodon-tl--property 'toot-json)))            (if toot -              (lingva-translate nil (mastodon-tl--content toot)) +              (lingva-translate nil +                                (mastodon-tl--content toot) +                                (when mastodon-tl--enable-proportional-fonts +                                  t))              (message "No toot to translate?")))        (message "No mastodon buffer?"))) | 
