diff options
| author | Karl Heuer | 1994-06-15 05:28:51 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-06-15 05:28:51 +0000 |
| commit | ac98827760f17ccb3497fcad97acac3947013531 (patch) | |
| tree | ebfdeab5587b103685774eb95992722bfd16f899 /src | |
| parent | 5d6be39f0ce2c38997c2dbb8561f894a2efa28b0 (diff) | |
| download | emacs-ac98827760f17ccb3497fcad97acac3947013531.tar.gz emacs-ac98827760f17ccb3497fcad97acac3947013531.zip | |
(init_editfns): Call init_system_name instead of get_system_name.
(get_system_name): New function, now just uses Vsystem_name.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/editfns.c b/src/editfns.c index 8a7becbcc33..3c1bb3fa3eb 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -55,15 +55,7 @@ init_editfns () | |||
| 55 | Lisp_Object tem; | 55 | Lisp_Object tem; |
| 56 | 56 | ||
| 57 | /* Set up system_name even when dumping. */ | 57 | /* Set up system_name even when dumping. */ |
| 58 | 58 | init_system_name (); | |
| 59 | Vsystem_name = build_string (get_system_name ()); | ||
| 60 | p = XSTRING (Vsystem_name)->data; | ||
| 61 | while (*p) | ||
| 62 | { | ||
| 63 | if (*p == ' ' || *p == '\t') | ||
| 64 | *p = '-'; | ||
| 65 | p++; | ||
| 66 | } | ||
| 67 | 59 | ||
| 68 | #ifndef CANNOT_DUMP | 60 | #ifndef CANNOT_DUMP |
| 69 | /* Don't bother with this on initial start when just dumping out */ | 61 | /* Don't bother with this on initial start when just dumping out */ |
| @@ -539,6 +531,13 @@ DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0, | |||
| 539 | return Vsystem_name; | 531 | return Vsystem_name; |
| 540 | } | 532 | } |
| 541 | 533 | ||
| 534 | /* For the benefit of callers who don't want to include lisp.h */ | ||
| 535 | char * | ||
| 536 | get_system_name () | ||
| 537 | { | ||
| 538 | return XSTRING (Vsystem_name)->data; | ||
| 539 | } | ||
| 540 | |||
| 542 | DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0, | 541 | DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0, |
| 543 | "Return the process ID of Emacs, as an integer.") | 542 | "Return the process ID of Emacs, as an integer.") |
| 544 | () | 543 | () |