On 28/04/2024 19:51, Juri Linkov wrote: >> On 26/04/2024 13:59, Dmitry Gutov wrote: >>> On 26/04/2024 09:09, Juri Linkov wrote: >>>>> This is based on Juri's patch in >>>>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63648#161, but the idea is >>>>> more focused: to switch the order of events, and first read the full key >>>>> sequence, and then prompt for the project and the command >>>>> arguments. Like >>>>> we also discussed in the past. >>>> >>>> I'm not a fan of reading the full key sequence bypassing the event loop. >>> That's what the current code does. While the patch tries to change that. >> >> Sorry, I forgot to attach the actual patch. > > Thanks. > >> +(defun other-project-prefix () > > Something is wrong here. I bound 'other-project-prefix' to 'C-x p P'. > Then typing 'C-x p P C-x d' asked a directory name, then later > after selecting a project asked for the directory name again. Looks like that has to do with the interactive spec. See the attached next revision, it seems to behave better. > Then some advice remains unremoved. Ok, will test more. I haven't noticed this particular problem, so please write down a repro if you find one.