aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-07-24 06:09:23 +0000
committerRichard M. Stallman <[email protected]>1997-07-24 06:09:23 +0000
commitb14dda8a3e4e49d439df9fb4c1f37625a9f39df9 (patch)
tree414cb323a6711475171119ebf8c8d44ae1d088e4
parent02e0989b51a4ff23de9d65fe0eb50874cca084f4 (diff)
(Fcurrent_message): New function.
(syms_of_editfns): defsubr it.
-rw-r--r--src/editfns.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index cdcf0165b8..fa4f486c69 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -2131,6 +2131,15 @@ minibuffer contents show.")
return Fmessage (nargs, args);
}
+DEFUN ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0,
+ "Return the string currently displayed in the echo area, or nil if none.")
+ ()
+{
+ return (echo_area_glyphs
+ ? make_string (echo_area_glyphs, echo_area_glyphs_length)
+ : Qnil);
+}
+
DEFUN ("format", Fformat, Sformat, 1, MANY, 0,
"Format a string out of a control-string and arguments.\n\
The first argument is a control string.\n\
@@ -2787,6 +2796,7 @@ functions if all the text being accessed has this property.");
defsubr (&Smessage);
defsubr (&Smessage_box);
defsubr (&Smessage_or_box);
+ defsubr (&Scurrent_message);
defsubr (&Sformat);
defsubr (&Sinsert_buffer_substring);