On Mon, May 15, 2017 at 09:39:13PM +0100, Gavin Smith wrote: > You are right. The message locale is irrelevant here. The problem is > that the string "M-x next-index-match" is being substituted in place > of "\[next-index-match]", (as "," is not available, being bound to > something else), and it is one byte too long.
I found I could get similar errors in the help window, for example by binding 'H' to something else in .infokey and running "M-x get-help-window". The replace_in_documentation didn't check for buffer overflow everywhere it should have. (It did in one place, but it wasn't enough.) I've made changes to keep track of the size of the buffer size properly.
