Mercurial > emacs
changeset 2526:bcba821c17bc
(message, message1): If noninteractive and
cursor_in_echo_area, don't print a newline at end of message.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 13 Apr 1993 05:54:19 +0000 |
parents | 6cf2344e6e7e |
children | 93015b63b041 |
files | src/xdisp.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Tue Apr 13 05:54:00 1993 +0000 +++ b/src/xdisp.c Tue Apr 13 05:54:19 1993 +0000 @@ -187,7 +187,10 @@ if (noninteractive_need_newline) putc ('\n', stderr); noninteractive_need_newline = 0; - fprintf (stderr, "%s\n", m); + if (cursor_in_echo_area != 0) + fprintf (stderr, "%s", m); + else + fprintf (stderr, "%s\n", m); fflush (stderr); } /* A null message buffer means that the frame hasn't really been @@ -237,7 +240,8 @@ putc ('\n', stderr); noninteractive_need_newline = 0; fprintf (stderr, m, a1, a2, a3); - fprintf (stderr, "\n"); + if (cursor_in_echo_area == 0) + fprintf (stderr, "\n"); fflush (stderr); } }