Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5259c737
Commit
5259c737
authored
Jan 13, 1995
by
Karl Heuer
Browse files
(printchar, strout): Call message_dolog.
parent
3d3938e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
src/print.c
src/print.c
+17
-1
No files found.
src/print.c
View file @
5259c737
...
...
@@ -65,10 +65,16 @@ int print_escape_newlines;
Lisp_Object
Qprint_escape_newlines
;
/* Nonzero means print newline before next minibuffer message.
/* Nonzero means print newline
to stdout
before next minibuffer message.
Defined in xdisp.c */
extern
int
noninteractive_need_newline
;
/* Nonzero means print newline to message log before next message.
Defined in xdisp.c */
extern
int
message_log_need_newline
;
#ifdef MAX_PRINT_CHARS
static
int
print_chars
;
static
int
max_print
;
...
...
@@ -206,12 +212,17 @@ printchar (ch, fun)
if
(
echo_area_glyphs
!=
FRAME_MESSAGE_BUF
(
mini_frame
)
||
!
message_buf_print
)
{
if
(
message_log_need_newline
)
message_dolog
(
""
,
0
,
1
);
message_log_need_newline
=
0
;
echo_area_glyphs
=
FRAME_MESSAGE_BUF
(
mini_frame
);
printbufidx
=
0
;
echo_area_glyphs_length
=
0
;
message_buf_print
=
1
;
}
message_dolog
(
&
ch
,
1
,
0
);
message_log_need_newline
=
1
;
if
(
printbufidx
<
FRAME_WIDTH
(
mini_frame
)
-
1
)
FRAME_MESSAGE_BUF
(
mini_frame
)[
printbufidx
++
]
=
ch
;
FRAME_MESSAGE_BUF
(
mini_frame
)[
printbufidx
]
=
0
;
...
...
@@ -263,12 +274,17 @@ strout (ptr, size, printcharfun)
if
(
echo_area_glyphs
!=
FRAME_MESSAGE_BUF
(
mini_frame
)
||
!
message_buf_print
)
{
if
(
message_log_need_newline
)
message_dolog
(
""
,
0
,
1
);
message_log_need_newline
=
0
;
echo_area_glyphs
=
FRAME_MESSAGE_BUF
(
mini_frame
);
printbufidx
=
0
;
echo_area_glyphs_length
=
0
;
message_buf_print
=
1
;
}
message_dolog
(
ptr
,
i
,
0
);
message_log_need_newline
=
1
;
if
(
i
>
FRAME_WIDTH
(
mini_frame
)
-
printbufidx
-
1
)
i
=
FRAME_WIDTH
(
mini_frame
)
-
printbufidx
-
1
;
bcopy
(
ptr
,
&
FRAME_MESSAGE_BUF
(
mini_frame
)
[
printbufidx
],
i
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment