aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index e555168ecfd..8983aa4aea4 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -527,6 +527,13 @@ DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0,
527 return Vsystem_name; 527 return Vsystem_name;
528} 528}
529 529
530DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0,
531 "Return the process ID of Emacs, as an integer.")
532 ()
533{
534 return make_number (getpid ());
535}
536
530DEFUN ("current-time", Fcurrent_time, Scurrent_time, 0, 0, 0, 537DEFUN ("current-time", Fcurrent_time, Scurrent_time, 0, 0, 0,
531 "Return the current time, as the number of seconds since 12:00 AM January 1970.\n\ 538 "Return the current time, as the number of seconds since 12:00 AM January 1970.\n\
532The time is returned as a list of three integers. The first has the\n\ 539The time is returned as a list of three integers. The first has the\n\
@@ -1628,6 +1635,7 @@ syms_of_editfns ()
1628 defsubr (&Suser_uid); 1635 defsubr (&Suser_uid);
1629 defsubr (&Suser_real_uid); 1636 defsubr (&Suser_real_uid);
1630 defsubr (&Suser_full_name); 1637 defsubr (&Suser_full_name);
1638 defsubr (&Semacs_pid);
1631 defsubr (&Scurrent_time); 1639 defsubr (&Scurrent_time);
1632 defsubr (&Scurrent_time_string); 1640 defsubr (&Scurrent_time_string);
1633 defsubr (&Scurrent_time_zone); 1641 defsubr (&Scurrent_time_zone);