Hi, Eli Zaretskii writes: >> Cc: philipk@posteo.net, mail@titusmueller.de, me@eshelyaron.com, >> 68762@debbugs.gnu.org >> Date: Mon, 29 Jan 2024 14:41:02 +0200 >> From: Eli Zaretskii >> >> > From: Robert Pluim >> > Cc: Eli Zaretskii , mail@titusmueller.de, >> > philipk@posteo.net, 68762@debbugs.gnu.org >> > Date: Mon, 29 Jan 2024 10:05:17 +0100 >> > >> > >>>>> On Sun, 28 Jan 2024 08:47:49 +0100, Eshel Yaron said: >> > >> > >> Robert, any comments? >> > >> > Not really. It would be nice if the test suite could be extended to >> > catch this. >> >> Agreed. > > Eshel, would you like to add some tests for this? Sure, I'm attaching below a patch with a slightly cleaner implementation and a couple of tests. Note that this is a complete rewrite of a function that mostly haven't changed since 1997, so please give it a close look before installing, in case there's some use case that didn't occur to me and isn't covered by the existing tests. Best, Eshel