diff options
| author | Karoly Lorentey | 2005-07-10 22:25:28 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-07-10 22:25:28 +0000 |
| commit | a4c6993d4a0ac128dcee76fe1e87f6cade1be410 (patch) | |
| tree | bb505fff620e9a5fd1532be4b064cd3c4f7be13b /src | |
| parent | 3e6f836c7ba151a59a336e1bfa328d122c69c686 (diff) | |
| download | emacs-a4c6993d4a0ac128dcee76fe1e87f6cade1be410.tar.gz emacs-a4c6993d4a0ac128dcee76fe1e87f6cade1be410.zip | |
Rename term_init to init_tty.
* src/term.c (term_init): Rename to init_tty.
* src/dispextern.h (term_init): Rename to init_tty.
* src/dispnew.c (init_display): Update.
* src/frame.c (Fmake_terminal_frame): Update.
* src/term.c (tty_setup_colors): Update comment.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-381
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispextern.h | 2 | ||||
| -rw-r--r-- | src/dispnew.c | 2 | ||||
| -rw-r--r-- | src/frame.c | 2 | ||||
| -rw-r--r-- | src/term.c | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 9a1d4840641..a6960c03540 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -2933,7 +2933,7 @@ extern struct display *get_display P_ ((Lisp_Object display, int)); | |||
| 2933 | extern struct display *get_named_tty_display P_ ((char *)); | 2933 | extern struct display *get_named_tty_display P_ ((char *)); |
| 2934 | EXFUN (Fdisplay_tty_type, 1); | 2934 | EXFUN (Fdisplay_tty_type, 1); |
| 2935 | extern struct display *init_initial_display P_ ((void)); | 2935 | extern struct display *init_initial_display P_ ((void)); |
| 2936 | extern struct display *term_init P_ ((char *, char *, int)); | 2936 | extern struct display *init_tty P_ ((char *, char *, int)); |
| 2937 | extern void delete_tty P_ ((struct display *)); | 2937 | extern void delete_tty P_ ((struct display *)); |
| 2938 | extern void fatal P_ ((/* char *, ... */)); | 2938 | extern void fatal P_ ((/* char *, ... */)); |
| 2939 | extern void cursor_to P_ ((struct frame *, int, int)); | 2939 | extern void cursor_to P_ ((struct frame *, int, int)); |
diff --git a/src/dispnew.c b/src/dispnew.c index 4bae5a231ae..1a71498bf3b 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -6727,7 +6727,7 @@ For types not defined in VMS, use define emacs_term \"TYPE\".\n\ | |||
| 6727 | struct frame *f = XFRAME (selected_frame); | 6727 | struct frame *f = XFRAME (selected_frame); |
| 6728 | 6728 | ||
| 6729 | /* Open a display on the controlling tty. */ | 6729 | /* Open a display on the controlling tty. */ |
| 6730 | d = term_init (0, terminal_type, 1); /* Errors are fatal. */ | 6730 | d = init_tty (0, terminal_type, 1); /* Errors are fatal. */ |
| 6731 | 6731 | ||
| 6732 | /* Convert the initial frame to use the new display. */ | 6732 | /* Convert the initial frame to use the new display. */ |
| 6733 | if (f->output_method != output_initial) | 6733 | if (f->output_method != output_initial) |
diff --git a/src/frame.c b/src/frame.c index 8ebcbc90b15..9f138390aca 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -736,7 +736,7 @@ affects all frames on the same terminal device. */) | |||
| 736 | type[SBYTES (tty_type)] = 0; | 736 | type[SBYTES (tty_type)] = 0; |
| 737 | } | 737 | } |
| 738 | 738 | ||
| 739 | d = term_init (name, type, 0); /* Errors are not fatal. */ | 739 | d = init_tty (name, type, 0); /* Errors are not fatal. */ |
| 740 | } | 740 | } |
| 741 | 741 | ||
| 742 | f = make_terminal_frame (d); | 742 | f = make_terminal_frame (d); |
diff --git a/src/term.c b/src/term.c index 2fae139e7f5..94b848b520a 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -2023,7 +2023,7 @@ tty_default_color_capabilities (struct tty_display_info *tty, int save) | |||
| 2023 | /* Setup one of the standard tty color schemes according to MODE. | 2023 | /* Setup one of the standard tty color schemes according to MODE. |
| 2024 | MODE's value is generally the number of colors which we want to | 2024 | MODE's value is generally the number of colors which we want to |
| 2025 | support; zero means set up for the default capabilities, the ones | 2025 | support; zero means set up for the default capabilities, the ones |
| 2026 | we saw at term_init time; -1 means turn off color support. */ | 2026 | we saw at init_tty time; -1 means turn off color support. */ |
| 2027 | void | 2027 | void |
| 2028 | tty_setup_colors (struct tty_display_info *tty, int mode) | 2028 | tty_setup_colors (struct tty_display_info *tty, int mode) |
| 2029 | { | 2029 | { |
| @@ -2358,7 +2358,7 @@ static void maybe_fatal(); | |||
| 2358 | If MUST_SUCCEED is true, then all errors are fatal. */ | 2358 | If MUST_SUCCEED is true, then all errors are fatal. */ |
| 2359 | 2359 | ||
| 2360 | struct display * | 2360 | struct display * |
| 2361 | term_init (char *name, char *terminal_type, int must_succeed) | 2361 | init_tty (char *name, char *terminal_type, int must_succeed) |
| 2362 | { | 2362 | { |
| 2363 | char *area; | 2363 | char *area; |
| 2364 | char **address = &area; | 2364 | char **address = &area; |
| @@ -2376,7 +2376,7 @@ term_init (char *name, char *terminal_type, int must_succeed) | |||
| 2376 | 2376 | ||
| 2377 | /* If we already have an active display on the given device, use that. | 2377 | /* If we already have an active display on the given device, use that. |
| 2378 | If all displays are suspended, create a new one instead. */ | 2378 | If all displays are suspended, create a new one instead. */ |
| 2379 | /* XXX Perhaps this should be made explicit by having term_init | 2379 | /* XXX Perhaps this should be made explicit by having init_tty |
| 2380 | always create a new display and separating display and frame | 2380 | always create a new display and separating display and frame |
| 2381 | creation on Lisp level. */ | 2381 | creation on Lisp level. */ |
| 2382 | display = get_named_tty_display (name); | 2382 | display = get_named_tty_display (name); |
| @@ -2931,7 +2931,7 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", | |||
| 2931 | #endif /* not WINDOWSNT */ | 2931 | #endif /* not WINDOWSNT */ |
| 2932 | } | 2932 | } |
| 2933 | 2933 | ||
| 2934 | /* Auxiliary error-handling function for term_init. | 2934 | /* Auxiliary error-handling function for init_tty. |
| 2935 | Free BUFFER and delete DISPLAY, then call error or fatal | 2935 | Free BUFFER and delete DISPLAY, then call error or fatal |
| 2936 | with str1 or str2, respectively, according to MUST_SUCCEED. */ | 2936 | with str1 or str2, respectively, according to MUST_SUCCEED. */ |
| 2937 | 2937 | ||