Subject: bug#60464: 29.0.60; Regression - pcomplete-arg fails with argument 'last

From: Stefan Monnier <[email-masked]>
Date: Sun, 01 Jan 2023 13:02:37 -0500

>> I believe you that doing this correctly is non trivial. But this doesn't
>> justify going with your hack.
> It's extracting the correct part of the command line string that is hacky,
> too hacky to my taste.

I wouldn't be surprised if it's difficult/impossible, indeed.
But the question is: when/where does it matter whether we really return
the "correct" part?

In my experience, there are some fundamental mismatches in the Pcomplete
API which we can't fix without a serious redesign, so until we do that
we have to live with "best effort" :-(

        Stefan