aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-09-13 20:14:28 +0200
committermousebot <mousebot@riseup.net>2021-09-13 21:33:16 +0200
commit14842fce7caa96c0f6234308c85a82a8e556f18f (patch)
treecdea0397fd69028a6e099f8438f76985b86048df /lisp/mastodon-tl.el
parent99a69f0cb267dcc22e3e1476f0e9f8d6dc46faa7 (diff)
use inbuilt image scaling if emacs version => 27.1
and put point at point-min on profile load
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index d34371a..a6f3f9a 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -83,7 +83,9 @@ width fonts when rendering HTML text"))
(make-variable-buffer-local 'mastodon-tl--buffer-spec)
(defvar mastodon-tl--show-avatars-p
- (image-type-available-p 'imagemagick)
+ (if (version< emacs-version "27.1")
+ (image-type-available-p 'imagemagick)
+ (image-transforms-p))
"A boolean value stating whether to show avatars in timelines.")
(defvar mastodon-tl--update-point nil