From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72956 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: A little idea for shr and table Date: Mon, 11 Oct 2010 21:21:36 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87iq18czvi.fsf@randomsample.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286824924 3613 80.91.229.12 (11 Oct 2010 19:22:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Oct 2010 19:22:04 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21328@lists.math.uh.edu Mon Oct 11 21:22:02 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P5Nwe-0003yQ-Lh for ding-account@gmane.org; Mon, 11 Oct 2010 21:22:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P5Nwc-0004BT-4P; Mon, 11 Oct 2010 14:21:58 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P5Nwa-0004BI-TL for ding@lists.math.uh.edu; Mon, 11 Oct 2010 14:21:56 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P5NwW-0005OR-Ea for ding@lists.math.uh.edu; Mon, 11 Oct 2010 14:21:56 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P5NwV-0006LE-00 for ; Mon, 11 Oct 2010 21:21:51 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P5NwR-0003rQ-TH for ding@gnus.org; Mon, 11 Oct 2010 21:21:47 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Oct 2010 21:21:47 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Oct 2010 21:21:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXcy6O5oopQFRyQY1rs 4rD7+/r////9//1fH1JLAAACN0lEQVQ4jXXTUW+bMBAA4PNC6CsXr+u7/QdqvO2ZTIa+goTpa2jx 5XWVSvL3dzaka6rWShDyx93h0wEZIMC22t9uXE7vFkiU/LNGbuSvK6hd77xv/d776wjhb70H8N4P dAWopUUjrZW/ryGDCqttAUWVXwP/j/TJgs82E9iPS6Yrwt08O17+fD6nm9r73j8cX+BHCESh59O4 ulmyTDTQmKCvHxkHSnCksELr0tEu8BYx0x1dQ6DHuYPc03Z57h20foR8uAD9h953H+HYA+Kpd/v3 cPzOm4ggBu/eUs1OUDB8YsRCDP0C8cHCIQVb6tgMaFbAUpm6Q5qUsnwLomnfQFmQdFBKc7YCm799 gkJGKSMobqxhaBeAUmmlTxGUtqVppghV99Pd/+GtBfgRho4BNveVYNDDqBbBJaIdLYhyBS5dyTVi eLYmnXg4II9kfIE8pOKjKYB3ykuqBLGJI8+UMVYl0DHpCocCgEdxgSgMfYSpAGG4F6fnJZFS+dTH tk8Awn4BEIFWsBHEmkpbWa6gscyD6+BmmCrYaLSWnpbaZteEegXBARF0DLmXTXjoYLvUSBFcV2+U kc3kL2DQIEOphqCMbQJP4nZ5XYmQahCVpc6nCHQAQMONpCedQJX5FDgVTRFkTLVE2G/8Hb+kCO75 Tlvi/pcnMrDjiRwhozZzAgvUDMWOZwZgiLD1SNSJu4BO2LkeQhM/CIZ8FkR1l1WiyLK9GHh3BWop NK/0ej6/CldFOKYa+MX6B/8gGjMGn6lfAAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Section 25's _The Key of Dreams_: "Sutra" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:3EjnrcNZYSy0l9o5t2HNBM+/MaM= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72956 Archived-At: Lars Magne Ingebrigtsen 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