emacs-devel
[Top][All Lists]
Advanced

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

Re: master c22b735: (string-pixel-width): Rewrite to avoid side effects


From: Eli Zaretskii
Subject: Re: master c22b735: (string-pixel-width): Rewrite to avoid side effects
Date: Thu, 28 Oct 2021 16:51:46 +0300

>     * src/xdisp.c (Fwindow_text_pixel_size): Allow `window` to be a buffer.
>     * lisp/emacs-lisp/subr-x.el (string-pixel-width): Simplify accordingly.

Bother: this doesn't make sure w->contents is the current buffer,
which I think many display routines assume without checking (or barf
if it isn't true).  So I think this is unsafe.



reply via email to

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