bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#34765: 26.1; with-temp-buffer should not run buffer-list-update-hook


From: Basil L. Contovounesios
Subject: bug#34765: 26.1; with-temp-buffer should not run buffer-list-update-hook
Date: Fri, 18 Dec 2020 18:49:52 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> You lost the `(with-current-buffer ,temp-buffer` around `write-region`
> so your new code will break if `body` doesn't preserve current-buffer.

Ugh, I thought the caller couldn't kill the buffer because it's later
written, but I didn't think of excursions.  I've now attached an updated
patch.

Thanks,

-- 
Basil

Attachment: 0001-Inhibit-buffer-hooks-in-temporary-buffers.patch
Description: Text Data


reply via email to

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