Subject: Re: bug#36190: 27.0.50; `put-text-property' etc. with buffer argument calls current buffer's `after-change-functions'

From: Eli Zaretskii <[email-masked]>
Date: Sat, 15 Jun 2019 18:23:15 +0300

> From: Pip Cet <[email-masked]>
> Date: Sat, 15 Jun 2019 15:14:43 +0000
> Cc: [email-masked]
> 
> Except that calls set_buffer_internal twice for a single call to
> put-text-property. That's too slow, right?
> 
> How about simply emulating (with-current-buffer buffer
> (put-text-property ...)), as the attached patch does? That should fix
> the immediate problem.

Looks better to me, but I'd suggest a comment explaining why we do
such an unusual thing.