Mercurial > emacs
comparison src/term.c @ 83875:fbb5919e6afb
* server.el (server-start, server-unload-hook):
suspend-tty-functions has been renamed to suspend-tty-hook.
* xt-mouse.el: Likewise. resume-tty-functions has been renamed to
resume-tty-hook.
* term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
(Vresume_tty_hook): Rename from Vresume_tty_functions.
(syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
and resume-tty-function to resume-tty-hook.
(Fsuspend_tty, Fresume_tty): Use new names.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Tue, 04 Sep 2007 15:44:11 +0000 |
parents | ffb5395e8445 |
children | cbc88cef4fca |
comparison
equal
deleted
inserted
replaced
83874:97ee6d41604e | 83875:fbb5919e6afb |
---|---|
122 /* Display space properties */ | 122 /* Display space properties */ |
123 | 123 |
124 extern Lisp_Object Qspace, QCalign_to, QCwidth; | 124 extern Lisp_Object Qspace, QCalign_to, QCwidth; |
125 | 125 |
126 /* Functions to call after suspending a tty. */ | 126 /* Functions to call after suspending a tty. */ |
127 Lisp_Object Vsuspend_tty_functions; | 127 Lisp_Object Vsuspend_tty_hook; |
128 | 128 |
129 /* Functions to call after resuming a tty. */ | 129 /* Functions to call after resuming a tty. */ |
130 Lisp_Object Vresume_tty_functions; | 130 Lisp_Object Vresume_tty_hook; |
131 | 131 |
132 /* Chain of all tty device parameters. */ | 132 /* Chain of all tty device parameters. */ |
133 struct tty_display_info *tty_list; | 133 struct tty_display_info *tty_list; |
134 | 134 |
135 /* Nonzero means no need to redraw the entire frame on resuming a | 135 /* Nonzero means no need to redraw the entire frame on resuming a |
2227 not updated. | 2227 not updated. |
2228 | 2228 |
2229 TTY may be a terminal id, a frame, or nil for the terminal device of | 2229 TTY may be a terminal id, a frame, or nil for the terminal device of |
2230 the currently selected frame. | 2230 the currently selected frame. |
2231 | 2231 |
2232 This function runs `suspend-tty-functions' after suspending the | 2232 This function runs `suspend-tty-hook' after suspending the |
2233 device. The functions are run with one arg, the id of the suspended | 2233 device. The functions are run with one arg, the id of the suspended |
2234 terminal device. | 2234 terminal device. |
2235 | 2235 |
2236 `suspend-tty' does nothing if it is called on a device that is already | 2236 `suspend-tty' does nothing if it is called on a device that is already |
2237 suspended. | 2237 suspended. |
2262 t->display_info.tty->output = 0; | 2262 t->display_info.tty->output = 0; |
2263 | 2263 |
2264 if (FRAMEP (t->display_info.tty->top_frame)) | 2264 if (FRAMEP (t->display_info.tty->top_frame)) |
2265 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 0); | 2265 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 0); |
2266 | 2266 |
2267 /* Run `suspend-tty-functions'. */ | 2267 /* Run `suspend-tty-hook'. */ |
2268 if (!NILP (Vrun_hooks)) | 2268 if (!NILP (Vrun_hooks)) |
2269 { | 2269 { |
2270 Lisp_Object args[2]; | 2270 Lisp_Object args[2]; |
2271 args[0] = intern ("suspend-tty-functions"); | 2271 args[0] = intern ("suspend-tty-hook"); |
2272 args[1] = make_number (t->id); | 2272 args[1] = make_number (t->id); |
2273 Frun_hook_with_args (2, args); | 2273 Frun_hook_with_args (2, args); |
2274 } | 2274 } |
2275 } | 2275 } |
2276 | 2276 |
2286 suspended terminal are revived. | 2286 suspended terminal are revived. |
2287 | 2287 |
2288 It is an error to resume a terminal while another terminal is active | 2288 It is an error to resume a terminal while another terminal is active |
2289 on the same device. | 2289 on the same device. |
2290 | 2290 |
2291 This function runs `resume-tty-functions' after resuming the terminal. | 2291 This function runs `resume-tty-hook' after resuming the terminal. |
2292 The functions are run with one arg, the id of the resumed terminal | 2292 The functions are run with one arg, the id of the resumed terminal |
2293 device. | 2293 device. |
2294 | 2294 |
2295 `resume-tty' does nothing if it is called on a device that is not | 2295 `resume-tty' does nothing if it is called on a device that is not |
2296 suspended. | 2296 suspended. |
2327 if (FRAMEP (t->display_info.tty->top_frame)) | 2327 if (FRAMEP (t->display_info.tty->top_frame)) |
2328 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 1); | 2328 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 1); |
2329 | 2329 |
2330 init_sys_modes (t->display_info.tty); | 2330 init_sys_modes (t->display_info.tty); |
2331 | 2331 |
2332 /* Run `suspend-tty-functions'. */ | 2332 /* Run `resume-tty-hook'. */ |
2333 if (!NILP (Vrun_hooks)) | 2333 if (!NILP (Vrun_hooks)) |
2334 { | 2334 { |
2335 Lisp_Object args[2]; | 2335 Lisp_Object args[2]; |
2336 args[0] = intern ("resume-tty-functions"); | 2336 args[0] = intern ("resume-tty-hook"); |
2337 args[1] = make_number (t->id); | 2337 args[1] = make_number (t->id); |
2338 Frun_hook_with_args (2, args); | 2338 Frun_hook_with_args (2, args); |
2339 } | 2339 } |
2340 } | 2340 } |
2341 | 2341 |
3869 system_uses_terminfo = 1; | 3869 system_uses_terminfo = 1; |
3870 #else | 3870 #else |
3871 system_uses_terminfo = 0; | 3871 system_uses_terminfo = 0; |
3872 #endif | 3872 #endif |
3873 | 3873 |
3874 DEFVAR_LISP ("suspend-tty-functions", &Vsuspend_tty_functions, | 3874 DEFVAR_LISP ("suspend-tty-hook", &Vsuspend_tty_hook, |
3875 doc: /* Functions to be run after suspending a tty. | 3875 doc: /* Hook to be run after suspending a tty. |
3876 The functions are run with one argument, the terminal id to be suspended. | 3876 The functions are run with one argument, the terminal id to be suspended. |
3877 See `suspend-tty'. */); | 3877 See `suspend-tty'. */); |
3878 Vsuspend_tty_functions = Qnil; | 3878 Vsuspend_tty_hook = Qnil; |
3879 | 3879 |
3880 | 3880 |
3881 DEFVAR_LISP ("resume-tty-functions", &Vresume_tty_functions, | 3881 DEFVAR_LISP ("resume-tty-hook", &Vresume_tty_hook, |
3882 doc: /* Functions to be run after resuming a tty. | 3882 doc: /* Hook to be run after resuming a tty. |
3883 The functions are run with one argument, the terminal id that was revived. | 3883 The functions are run with one argument, the terminal id that was revived. |
3884 See `resume-tty'. */); | 3884 See `resume-tty'. */); |
3885 Vresume_tty_functions = Qnil; | 3885 Vresume_tty_hook = Qnil; |
3886 | 3886 |
3887 DEFVAR_BOOL ("visible-cursor", &visible_cursor, | 3887 DEFVAR_BOOL ("visible-cursor", &visible_cursor, |
3888 doc: /* Non-nil means to make the cursor very visible. | 3888 doc: /* Non-nil means to make the cursor very visible. |
3889 This only has an effect when running in a text terminal. | 3889 This only has an effect when running in a text terminal. |
3890 What means \"very visible\" is up to your terminal. It may make the cursor | 3890 What means \"very visible\" is up to your terminal. It may make the cursor |