From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Pixel-based display functions Date: Thu, 05 Feb 2015 18:09:54 +0200 Message-ID: <837fvwfigd.fsf@gnu.org> References: <877fw4zsdv.fsf@building.gnus.org> <831tmcn4k4.fsf@gnu.org> <87386szq1w.fsf@building.gnus.org> <83wq44ljm9.fsf@gnu.org> <87vbjowlqv.fsf@building.gnus.org> <83oapglbx6.fsf@gnu.org> <83lhkkl23i.fsf@gnu.org> <83bnlgkl1s.fsf@gnu.org> <837fw3l7uz.fsf@gnu.org> <54CD4B27.4080201@gmx.at> <874mr6qvi5.fsf@building.gnus.org> <87sieqpfxh.fsf@building.gnus.org> <54CDE908.7050908@gmx.at> <87ioflq0dz.fsf@building.gnus.org> <54CE2187.9070003@gmx.at> <54CE4D8A.5040201@gmx.at> <87zj8wy79g.fsf@building.gnus.org> <87k2zxynvk.fsf@building.gnus.org> <54D33A2C.1060603@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423152634 9704 80.91.229.3 (5 Feb 2015 16:10:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 16:10:34 +0000 (UTC) Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 05 17:10:29 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YJP0d-0007yA-Cb for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2015 17:10:27 +0100 Original-Received: from localhost ([::1]:42873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJP0b-0004Ll-EA for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2015 11:10:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJP0G-0004BR-Rl for emacs-devel@gnu.org; Thu, 05 Feb 2015 11:10:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJP0D-000410-9D for emacs-devel@gnu.org; Thu, 05 Feb 2015 11:10:04 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:56334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJP0D-00040B-19 for emacs-devel@gnu.org; Thu, 05 Feb 2015 11:10:01 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NJB00F003G78R00@mtaout26.012.net.il> for emacs-devel@gnu.org; Thu, 05 Feb 2015 18:10:04 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJB00AHN3KS2V50@mtaout26.012.net.il>; Thu, 05 Feb 2015 18:10:04 +0200 (IST) In-reply-to: <54D33A2C.1060603@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182455 Archived-At: > Date: Thu, 05 Feb 2015 10:38:52 +0100 > From: martin rudalics > CC: Eli Zaretskii , > Stefan Monnier , > emacs-devel@gnu.org > > > Evaling the following: > > > > (progn > > (switch-to-buffer "empty") > > (with-temp-buffer > > (dotimes (i 100) (insert "hello")) > > (window-text-pixel-size nil 1 100 nil nil nil (current-buffer)))) > > > > Gives me this backtrace: > > > > Debugger entered--Lisp error: (args-out-of-range 81) > > window-text-pixel-size(nil 1 100 nil nil nil #) > > Indeed. I was too optimistic. The window's buffer is apparently > hard-coded into the iterator in so many ways that this can't be fixed > reasonably. Just look for all the it->object = it->w->contents > assignments. It's sheer luck that this didn't crash more seriously. Perhaps you could use the technique similar to what vertical-motion does near its beginning.