emacs-devel
[Top][All Lists]
Advanced

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

Re: Pixel-based display functions


From: Eli Zaretskii
Subject: Re: Pixel-based display functions
Date: Thu, 05 Feb 2015 18:09:54 +0200

> Date: Thu, 05 Feb 2015 10:38:52 +0100
> From: martin rudalics <address@hidden>
> CC: Eli Zaretskii <address@hidden>, 
>  Stefan Monnier <address@hidden>,
>  address@hidden
> 
>  > 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.

Perhaps you could use the technique similar to what vertical-motion
does near its beginning.



reply via email to

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