The main issue with this patch is that it drops the syntax highlighting in the *string edit* buffer, but we could fix that in a second patch by adding support to specify a major mode to inherit from when editing a string.