diff options
| author | Richard M. Stallman | 1997-07-24 06:09:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-24 06:09:23 +0000 |
| commit | b14dda8a3e4e49d439df9fb4c1f37625a9f39df9 (patch) | |
| tree | 414cb323a6711475171119ebf8c8d44ae1d088e4 | |
| parent | 02e0989b51a4ff23de9d65fe0eb50874cca084f4 (diff) | |
| download | emacs-b14dda8a3e4e49d439df9fb4c1f37625a9f39df9.tar.gz emacs-b14dda8a3e4e49d439df9fb4c1f37625a9f39df9.zip | |
(Fcurrent_message): New function.
(syms_of_editfns): defsubr it.
| -rw-r--r-- | src/editfns.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c index cdcf0165b86..fa4f486c699 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2131,6 +2131,15 @@ minibuffer contents show.") | |||
| 2131 | return Fmessage (nargs, args); | 2131 | return Fmessage (nargs, args); |
| 2132 | } | 2132 | } |
| 2133 | 2133 | ||
| 2134 | DEFUN ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0, | ||
| 2135 | "Return the string currently displayed in the echo area, or nil if none.") | ||
| 2136 | () | ||
| 2137 | { | ||
| 2138 | return (echo_area_glyphs | ||
| 2139 | ? make_string (echo_area_glyphs, echo_area_glyphs_length) | ||
| 2140 | : Qnil); | ||
| 2141 | } | ||
| 2142 | |||
| 2134 | DEFUN ("format", Fformat, Sformat, 1, MANY, 0, | 2143 | DEFUN ("format", Fformat, Sformat, 1, MANY, 0, |
| 2135 | "Format a string out of a control-string and arguments.\n\ | 2144 | "Format a string out of a control-string and arguments.\n\ |
| 2136 | The first argument is a control string.\n\ | 2145 | The first argument is a control string.\n\ |
| @@ -2787,6 +2796,7 @@ functions if all the text being accessed has this property."); | |||
| 2787 | defsubr (&Smessage); | 2796 | defsubr (&Smessage); |
| 2788 | defsubr (&Smessage_box); | 2797 | defsubr (&Smessage_box); |
| 2789 | defsubr (&Smessage_or_box); | 2798 | defsubr (&Smessage_or_box); |
| 2799 | defsubr (&Scurrent_message); | ||
| 2790 | defsubr (&Sformat); | 2800 | defsubr (&Sformat); |
| 2791 | 2801 | ||
| 2792 | defsubr (&Sinsert_buffer_substring); | 2802 | defsubr (&Sinsert_buffer_substring); |