diff options
author | Jim Blandy <jimb@redhat.com> | 1991-12-08 07:04:21 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1991-12-08 07:04:21 +0000 |
commit | 85798d096ca75956574b5286c1f6393886059eb3 (patch) | |
tree | ff81fab216a35a5c564d22890623f3ce1d5ed25f /src/editfns.c | |
parent | 6505d4669dfac72a2f9301764f2f46781422af51 (diff) | |
download | emacs-85798d096ca75956574b5286c1f6393886059eb3.tar.gz |
*** empty log message ***
Diffstat (limited to 'src/editfns.c')
-rw-r--r-- | src/editfns.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/editfns.c b/src/editfns.c index 368727619c0..2ea8471fd50 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -503,6 +503,14 @@ DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0, return Vsystem_name; } +DEFUN ("current-time", Fcurrent_time, Scurrent_time, 0, 0, 0, + "Return the current time, as an integer.") + () +{ + return make_number (time(0)); +} + + DEFUN ("current-time-string", Fcurrent_time_string, Scurrent_time_string, 0, 0, 0, "Return the current time, as a human-readable string.\n\ Programs can use it too, since the number of columns in each field is fixed.\n\ @@ -998,13 +1006,6 @@ the argument used by %d or %c must be a number.") { register Lisp_Object val; -#ifdef MULTI_SCREEN - extern Lisp_Object Vglobal_minibuffer_screen; - - if (XTYPE (Vglobal_minibuffer_screen) == Lisp_Screen) - Fmake_screen_visible (Vglobal_minibuffer_screen); -#endif - val = Fformat (nargs, args); message ("%s", XSTRING (val)->data); return val; @@ -1258,6 +1259,7 @@ syms_of_editfns () defsubr (&Suser_uid); defsubr (&Suser_real_uid); defsubr (&Suser_full_name); + defsubr (&Scurrent_time); defsubr (&Scurrent_time_string); defsubr (&Ssystem_name); defsubr (&Sset_default_file_mode); |