[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
- Re: Pixel-based display functions, (continued)
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/02/17
- Re: Pixel-based display functions, Eli Zaretskii, 2015/02/17
- Re: Pixel-based display functions, Stefan Monnier, 2015/02/18
- Re: Pixel-based display functions, Eli Zaretskii, 2015/02/18
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/02/19
- Re: Pixel-based display functions, Stefan Monnier, 2015/02/06
- Re: Pixel-based display functions, Eli Zaretskii, 2015/02/06
- Re: Pixel-based display functions, martin rudalics, 2015/02/01
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/02/02
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/02/04
- Re: Pixel-based display functions,
martin rudalics <=
- Re: Pixel-based display functions, Eli Zaretskii, 2015/02/05
- Re: Pixel-based display functions, martin rudalics, 2015/02/06
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/02/06
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/02/06
- Re: Pixel-based display functions, Eli Zaretskii, 2015/02/06
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/02/06
- Re: Pixel-based display functions, Matthew Carter, 2015/02/06
- Rebinding local keys, Alan Schmitt, 2015/02/12
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/02/13
- Re: Pixel-based display functions, Stephen J. Turnbull, 2015/02/01