Mercurial > emacs
comparison src/editfns.c @ 1426:67fd35416ba3
* * editfns.c (Fmessage): With no arguments, clear any active
message; let the minibuffer contents show through.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 17 Oct 1992 22:11:56 +0000 |
parents | d50533e23dff |
children | d505599b0438 |
comparison
equal
deleted
inserted
replaced
1425:2c156e9908ad | 1426:67fd35416ba3 |
---|---|
1054 The first argument is a control string.\n\ | 1054 The first argument is a control string.\n\ |
1055 It may contain %s or %d or %c to print successive following arguments.\n\ | 1055 It may contain %s or %d or %c to print successive following arguments.\n\ |
1056 %s means print an argument as a string, %d means print as number in decimal,\n\ | 1056 %s means print an argument as a string, %d means print as number in decimal,\n\ |
1057 %c means print a number as a single character.\n\ | 1057 %c means print a number as a single character.\n\ |
1058 The argument used by %s must be a string or a symbol;\n\ | 1058 The argument used by %s must be a string or a symbol;\n\ |
1059 the argument used by %d or %c must be a number.") | 1059 the argument used by %d or %c must be a number.\n\ |
1060 If the first argument is nil, clear any existing message; let the\n\ | |
1061 minibuffer contents show.") | |
1060 (nargs, args) | 1062 (nargs, args) |
1061 int nargs; | 1063 int nargs; |
1062 Lisp_Object *args; | 1064 Lisp_Object *args; |
1063 { | 1065 { |
1064 register Lisp_Object val; | 1066 if (NILP (args[0])) |
1065 | 1067 message (0); |
1066 val = Fformat (nargs, args); | 1068 else |
1067 message ("%s", XSTRING (val)->data); | 1069 { |
1068 return val; | 1070 register Lisp_Object val; |
1071 val = Fformat (nargs, args); | |
1072 message ("%s", XSTRING (val)->data); | |
1073 return val; | |
1074 } | |
1069 } | 1075 } |
1070 | 1076 |
1071 DEFUN ("format", Fformat, Sformat, 1, MANY, 0, | 1077 DEFUN ("format", Fformat, Sformat, 1, MANY, 0, |
1072 "Format a string out of a control-string and arguments.\n\ | 1078 "Format a string out of a control-string and arguments.\n\ |
1073 The first argument is a control string.\n\ | 1079 The first argument is a control string.\n\ |