diff options
| author | Jim Blandy | 1992-10-17 22:11:56 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-10-17 22:11:56 +0000 |
| commit | ccdac5be86aeda3f78317dd0d824677d80f21496 (patch) | |
| tree | 7b1879dbcf43d035b25704b79497b79df7c3c9e3 /src | |
| parent | 7e6491d3b49989f1b2a35161978fa496f736d641 (diff) | |
| download | emacs-ccdac5be86aeda3f78317dd0d824677d80f21496.tar.gz emacs-ccdac5be86aeda3f78317dd0d824677d80f21496.zip | |
* * editfns.c (Fmessage): With no arguments, clear any active
message; let the minibuffer contents show through.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/editfns.c b/src/editfns.c index 7c2b562a137..35697519bdb 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1056,16 +1056,22 @@ 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, |