On 22/08/2024 12:59 PM, Eli Zaretskii wrote: >> Date: Thu, 22 Aug 2024 11:48:48 +0200 >> Cc: 72689@debbugs.gnu.org >> From: David Ponce >> >>> Thanks, LGTM. >>> >>>> Should I prepare a patch of subr-x.el to include both the proposed >>>> `work-buffer' API, and an implementation of `string-pixel-width' using >>>> it? >>> >>> Yes, please. And the macro itself needs a NEWS entry, I think. >> >> Thanks. I will prepare a patch and a NEWS entry for the new >> `with-work-buffer' macro ASAP. >> >> Could you please review this last version of the work-buffer API, >> which introduce the variable `work-buffer-limit' to limit the number >> of work buffers? > > LGTM, thanks. Thanks. Please find attached 2 patches: 1. with-work-buffer.patch to introduce the new macro with-work-buffer. 2. string-pixel-width.patch to improve `string-pixel-width'.