From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14567: Scrolling of large images Date: Sat, 15 Jun 2013 12:39:11 +0300 Message-ID: <83d2rnvhkw.fsf@gnu.org> References: <83ppvzur6i.fsf@gnu.org> <83obbjuov4.fsf@gnu.org> <83vc5osn0r.fsf@gnu.org> <83obbgsg33.fsf@gnu.org> <83k3m4sar0.fsf@gnu.org> <83ehccromw.fsf@gnu.org> <87bo7cpfpk.fsf@engster.org> <83li6bvl2i.fsf@gnu.org> <87bo77d9vt.fsf@engster.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1371289215 7985 80.91.229.3 (15 Jun 2013 09:40:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Jun 2013 09:40:15 +0000 (UTC) Cc: thomas.wiecki@gmail.com, 14567@debbugs.gnu.org To: David Engster Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 15 11:40:15 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Unmxv-0000Qt-AN for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jun 2013 11:40:11 +0200 Original-Received: from localhost ([::1]:48323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Unmxu-0003Po-OV for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jun 2013 05:40:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Unmxp-0003J5-HF for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 05:40:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Unmxn-0001T4-Hf for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 05:40:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Unmxn-0001Rp-C0 for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 05:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Unmxm-0001rz-GQ for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 05:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jun 2013 09:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14567 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14567-submit@debbugs.gnu.org id=B14567.13712891466881 (code B ref 14567); Sat, 15 Jun 2013 09:40:02 +0000 Original-Received: (at 14567) by debbugs.gnu.org; 15 Jun 2013 09:39:06 +0000 Original-Received: from localhost ([127.0.0.1]:45671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Unmws-0001mv-Ce for submit@debbugs.gnu.org; Sat, 15 Jun 2013 05:39:06 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:64533) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Unmwp-0001m1-LZ for 14567@debbugs.gnu.org; Sat, 15 Jun 2013 05:39:04 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MOF00L00HCUPN00@a-mtaout20.012.net.il> for 14567@debbugs.gnu.org; Sat, 15 Jun 2013 12:38:57 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOF00LAKHGW0PG0@a-mtaout20.012.net.il>; Sat, 15 Jun 2013 12:38:57 +0300 (IDT) In-reply-to: <87bo77d9vt.fsf@engster.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75149 Archived-At: > From: David Engster > Cc: thomas.wiecki@gmail.com, 14567@debbugs.gnu.org > Date: Sat, 15 Jun 2013 11:02:46 +0200 > > > Thanks. Unfortunately, using Emacs with Imagemagick support is a > > no-starter for me. > > It's only needed for scaling, though. If you have at least libjpeg, then > just download those two images > > http://randomsample.de/bigimage.jpg > http://randomsample.de/smallimage.jpg > > and use > > (with-current-buffer (get-buffer-create "test") > (erase-buffer) > (let ((imagelarge (create-image "~/bigimage.jpg")) > (imagesmall (create-image "~/smallimage.jpg"))) > (dotimes (i 20) > (insert "\n*** " (number-to-string i)" ***\nThis is a line of text.\nAnd here's a large image:\n") > (insert-image imagelarge) > (insert "\nAnd a small image:\n") > (insert-image imagesmall)) > (goto-char (point-min)))) > > >However, I tried to cover every possibility of using non-numeric values > >in numeric context. Please try the patch below (it's relative to the > >current trunk, not to the previous patch), and see if it gives good > >results. If you still get errors, please manually load simple.el (not > >simple.elc) into your Emacs, run your test snippet, and see if the > >backtrace can pinpoint the place where I missed something. > > It fails in line 4789 because 'py' is nil. I attached the backtrace. Thanks. I fixed that and committed the result as trunk revision 112998. I am not closing the bug yet because it still jumps sometimes, although the context of point is now preserved, unlike before the changes. I will see if I can prevent those jumps.