On 03/10/2016 07:33 AM, Kaushal Modi wrote:

    Shouldn't this be handled by `substitute-command-keys' already?
    The fix
    looks like a hack.


I don't think this has anything to do with substitute-command-keys. That function simply returns a string.

Right, 'message' and 'substitute-command-keys' both turn apostrophe into right single quote, so if you really want an apostrophe you need to escape it, as Kashal's patch does.

You need to escape the output of substitute-command-keys anyway, in case it returns a string containing '%', which 'message' would incorrectly interpret as a format specifier.

Reply via email to