>>>>> "Lars" == Lars Magne Ingebrigtsen writes: Lars> Looks good. Can you provide a ChangeLog entry, too, and I'll Lars> apply it? I've cleaned things up a bit to work better with the gnus-completing-read changes that Julien has implemented. Below is a new patch and a Changelog. >> + (format "%s \"%s\"" criteria (nnir-imap-quote-specials expr))) Lars> The "%S" format spec does this: Lars> (insert (format "%S" "foo\\ bar\" zot")) -> "foo\\ bar\" zot" I have no idea why the original code didn't use %S, so I've changed it and eliminated the need for imap-quote-specials. Regards, Andy