On 18/08/2024 11:15 AM, Eli Zaretskii wrote: [...]> I think you understood the issue, and just creating a new buffer if > the "normal" one is "taken" should be good enough. I don't expect > this situation to be a frequent one, so creating too many buffers > should not be a danger. Thanks! Please, find attached a revised V01 patch that implements your suggestion. I finally opted to keep only one function, because setting a few buffer-local variables on each call has not a significant impact on performance.