[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTML-Info design
From: |
Eli Zaretskii |
Subject: |
Re: HTML-Info design |
Date: |
Wed, 28 Jan 2015 17:26:09 +0200 |
> From: Lars Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Wed, 28 Jan 2015 13:27:32 +1100
>
> Eli Zaretskii <address@hidden> writes:
>
> >> Debugger entered--Lisp error: (error "Specified window is not displaying
> >> the current buffer")
> >
> > Yes, you need to arrange for the buffer to be current and displayed in
> > the window you pass to the function. See the function's doc string.
> >
> >> shr uses temporary buffers to format various bits, so this doesn't seem
> >> to be a practical approach when determining the pixel widths of text.
> >
> > You can invoke font-at on a string instead of buffer.
>
> Thanks. Does that make sense, though? I'm guessing that using
> `font-at' on a string, it implicitly uses the current window for
> something. `font-at' on a buffer could use the same logic, couldn't it?
No, it couldn't use the same logic. But it could use something
similar, if Someone(TM) cared to write code to do that.
As things stand, the function uses existing infrastructure, which
imposes this limitation.
- Re: HTML-Info design, Lars Ingebrigtsen, 2015/01/24
- Re: HTML-Info design, Eli Zaretskii, 2015/01/25
- Re: HTML-Info design, Lars Ingebrigtsen, 2015/01/25
- Re: HTML-Info design, Eli Zaretskii, 2015/01/26
- Re: HTML-Info design, Lars Ingebrigtsen, 2015/01/26
- Re: HTML-Info design, Lars Ingebrigtsen, 2015/01/26
- Re: HTML-Info design, Eli Zaretskii, 2015/01/27
- Re: HTML-Info design, Lars Ingebrigtsen, 2015/01/27
- Re: HTML-Info design,
Eli Zaretskii <=
- Pixel-based display functions (was: HTML-Info design), Lars Ingebrigtsen, 2015/01/27
- Re: Pixel-based display functions, Thien-Thi Nguyen, 2015/01/28
- Re: Pixel-based display functions, Eli Zaretskii, 2015/01/28
- Re: Pixel-based display functions, Ivan Shmakov, 2015/01/28
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/01/28
- Re: Pixel-based display functions, Stefan Monnier, 2015/01/28
- Re: Pixel-based display functions, Eli Zaretskii, 2015/01/28
- Re: Pixel-based display functions, Stefan Monnier, 2015/01/28
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/01/28
- Re: Pixel-based display functions, Stefan Monnier, 2015/01/28