emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pixel-based display functions


From: martin rudalics
Subject: Re: Pixel-based display functions
Date: Thu, 05 Feb 2015 10:38:52 +0100

> 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 #<buffer  *temp*>)

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.

I have to back out my change, sorry.  And if you want to
use `window-text-pixel-size' you'll have to do the saving stuff I
proposed earlier.

Thanks for catching this, martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]