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
937248bc
Commit
937248bc
authored
Sep 23, 1999
by
Gerd Moellmann
Browse files
(add_to_log): Moved from xfaces.c. Remove frame
parameter.
parent
86c8e823
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
src/xdisp.c
src/xdisp.c
+31
-0
No files found.
src/xdisp.c
View file @
937248bc
...
...
@@ -4585,6 +4585,37 @@ move_it_by_lines (it, dvpos, need_y_p)
***********************************************************************/
/* Add a message with format string FORMAT and arguments ARG1 and ARG2
to *Messages*. */
void
add_to_log (format, arg1, arg2)
char *format;
Lisp_Object arg1, arg2;
{
Lisp_Object args[3];
Lisp_Object msg, fmt;
char *buffer;
int len;
struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
fmt = msg = Qnil;
GCPRO4 (fmt, msg, arg1, arg2);
args[0] = fmt = build_string (format);
args[1] = arg1;
args[2] = arg2;
msg = Fformat (make_number (3), args);
len = STRING_BYTES (XSTRING (msg)) + 1;
buffer = (char *) alloca (len);
strcpy (buffer, XSTRING (msg)->data);
message_dolog (buffer, len, 1, 0);
UNGCPRO;
}
/* Output a newline in the *Messages* buffer if "needs" one. */
void
...
...
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