summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1991-12-08 07:04:21 +0000
committerJim Blandy <jimb@redhat.com>1991-12-08 07:04:21 +0000
commitd940e0e442093af6b22d46b4db3675c73add7e11 (patch)
tree3f70505d586d141ec93f280d1475868597a60b57 /src/editfns.c
parentcfa191ff73a9cd107f32cef3f1396616faf48ccd (diff)
downloademacs-d940e0e442093af6b22d46b4db3675c73add7e11.tar.gz
emacs-d940e0e442093af6b22d46b4db3675c73add7e11.tar.bz2
emacs-d940e0e442093af6b22d46b4db3675c73add7e11.zip
*** empty log message ***
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c16
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);