[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Render a buffer or string to a simpler string?
From: |
Dmitry Gutov |
Subject: |
Re: Render a buffer or string to a simpler string? |
Date: |
Mon, 27 May 2013 06:48:54 +0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) |
esabof@gmail.com writes:
>> Obviously, some ERT tests could use such a feature, but things like
>>
>> htmlfontify could probably also make use of it.
>
> Another primitive which I think doesn't exist, is given a position,
> return it's pixel coordinates. From this one could construct things
> like region-pixel-width and region-pixel-height.
See `posn-at-point'.
> It might also be useful to be able to store frame renderings as images
> and compare them. This would also allow a somewhat grotesque way to do
> transparency. (Save the image (which I think is already possible),
> overlay the buffer with a SVG, include the rendering in the SVG and
> render whatever necessary ontop of it).
The main problem as I see it, is how to output the difference
information in case of mismatch. Saying "these pics are different, go
look at them yourself" isn't very helpful for test-driven development.
This would extend to arrays of glyphs, too, maybe even to a larger
degree (haven't thought of that before).
- Re: Render a buffer or string to a simpler string?, (continued)
- Message not available
- Re: Render a buffer or string to a simpler string?, esabof, 2013/05/26
- Re: Render a buffer or string to a simpler string?, Dmitry Gutov, 2013/05/26
- Re: Render a buffer or string to a simpler string?, Stefan Monnier, 2013/05/26
- Re: Render a buffer or string to a simpler string?, Dmitry Gutov, 2013/05/26
- Message not available
- Re: Render a buffer or string to a simpler string?, esabof, 2013/05/26
- Re: Render a buffer or string to a simpler string?, Eli Zaretskii, 2013/05/26
- Re: Render a buffer or string to a simpler string?,
Dmitry Gutov <=
- Message not available
- Re: Render a buffer or string to a simpler string?, esabof, 2013/05/27
- Message not available
- Re: Render a buffer or string to a simpler string?, esabof, 2013/05/27
Re: Render a buffer or string to a simpler string?, Barry Margolin, 2013/05/25