]> code.delx.au - gnu-emacs/commit
Fix quoting in ‘message_with_string’
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 26 Aug 2015 20:11:57 +0000 (13:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 26 Aug 2015 20:12:26 +0000 (13:12 -0700)
commit582222b557b271d3dc2f27138c39c3ae5d915030
treebf251f3f3d54a5b1db98b698d4e7b5788490aa43
parent84a978724217516694620bbc4ab6fb02075c137c
Fix quoting in ‘message_with_string’

* src/nsfont.m (nsfont_open): Use directed quotes in format; they
should work now.
* src/xdisp.c (message_to_stderr): New function, refactored from
part of ‘message3_nolog’.
(message3_nolog): Use it.
(message_with_string): Use it.  Don’t mishandle NUL bytes when
noninteractive.  Prefer AUTO_STRING when it’s most likely faster.
Use ‘format-message’, not ‘format’, so that quotes are translated.
src/nsfont.m
src/xdisp.c