From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: A little idea for shr and table
Date: Mon, 11 Oct 2010 21:21:36 +0200 [thread overview]
Message-ID: <m3fwwco7r3.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <m3k4loo88y.fsf@quimbies.gnus.org>
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>> Actually, it is possible by using sliced images (see
>> `insert-sliced-image').
>
> Oh, interesting.
I did the following:
diff --git a/lisp/shr.el b/lisp/shr.el
index 4031386..c308879 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -309,7 +309,10 @@ redirects somewhere else."
(let ((image (ignore-errors
(shr-rescale-image data))))
(when image
- (put-image image point alt)))))
+ (let ((size (image-size image t)))
+ (insert-sliced-image image alt nil
+ (/ (cdr size) (min (frame-char-height) 10))
+ 1))))))
(defun shr-rescale-image (data)
(if (or (not (fboundp 'imagemagick-types))
The result was an Emacs that was unbearably slow to use. Scrolling a
page took seconds.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
next prev parent reply other threads:[~2010-10-11 19:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-11 16:59 Julien Danjou
2010-10-11 18:39 ` Lars Magne Ingebrigtsen
2010-10-11 19:07 ` David Engster
2010-10-11 19:10 ` Lars Magne Ingebrigtsen
2010-10-11 19:18 ` David Engster
2010-10-11 19:21 ` Lars Magne Ingebrigtsen [this message]
2010-10-11 19:25 ` David Engster
2010-10-11 19:35 ` Julien Danjou
2010-10-11 19:38 ` Lars Magne Ingebrigtsen
2010-10-12 14:10 ` Ted Zlatanov
2010-10-12 14:27 ` Lars Magne Ingebrigtsen
2010-10-11 19:07 ` Ted Zlatanov
2010-10-12 12:48 ` Štěpán Němec
2010-10-12 20:44 ` James Cloos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3fwwco7r3.fsf@quimbies.gnus.org \
--to=larsi@gnus.org \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).