Mercurial > emacs
comparison src/editfns.c @ 18937:ddb91108a9d2
(Fcurrent_message): New function.
(syms_of_editfns): defsubr it.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 24 Jul 1997 06:09:23 +0000 |
parents | 751f531e5a20 |
children | 84ae0a03a643 |
comparison
equal
deleted
inserted
replaced
18936:5aa5fcdc25c1 | 18937:ddb91108a9d2 |
---|---|
2127 #ifdef HAVE_MENUS | 2127 #ifdef HAVE_MENUS |
2128 if (NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) | 2128 if (NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) |
2129 return Fmessage_box (nargs, args); | 2129 return Fmessage_box (nargs, args); |
2130 #endif | 2130 #endif |
2131 return Fmessage (nargs, args); | 2131 return Fmessage (nargs, args); |
2132 } | |
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); | |
2132 } | 2141 } |
2133 | 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\ |
2785 defsubr (&Sset_time_zone_rule); | 2794 defsubr (&Sset_time_zone_rule); |
2786 defsubr (&Ssystem_name); | 2795 defsubr (&Ssystem_name); |
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); |
2793 defsubr (&Scompare_buffer_substrings); | 2803 defsubr (&Scompare_buffer_substrings); |
2794 defsubr (&Ssubst_char_in_region); | 2804 defsubr (&Ssubst_char_in_region); |