diff options
| author | Dan Nicolaescu | 2007-09-04 15:44:11 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2007-09-04 15:44:11 +0000 |
| commit | 92cd6a7c40a7db9ae2b8855ab41bf3b5e6b9133c (patch) | |
| tree | ea0c5c8cf7a344348b064e2e24b6bf49ee54bb97 /src | |
| parent | 84a7b24341fc3a5bf5ffb12224bcaee928fc03f1 (diff) | |
| download | emacs-92cd6a7c40a7db9ae2b8855ab41bf3b5e6b9133c.tar.gz emacs-92cd6a7c40a7db9ae2b8855ab41bf3b5e6b9133c.zip | |
* 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/term.c | 28 |
2 files changed, 22 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 959a1bdbfca..4c72b1d6c7e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions. | ||
| 4 | (Vresume_tty_hook): Rename from Vresume_tty_functions. | ||
| 5 | (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook | ||
| 6 | and resume-tty-function to resume-tty-hook. | ||
| 7 | (Fsuspend_tty, Fresume_tty): Use new names. | ||
| 8 | |||
| 1 | 2007-09-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 9 | 2007-09-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 10 | ||
| 3 | * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon | 11 | * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon |
diff --git a/src/term.c b/src/term.c index 3a81643ab1b..f7b8eb50ac7 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -124,10 +124,10 @@ static int visible_cursor; | |||
| 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; |
| @@ -2229,7 +2229,7 @@ not updated. | |||
| 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 | ||
| @@ -2264,11 +2264,11 @@ A suspended tty may be resumed by calling `resume-tty' on it. */) | |||
| 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 | } |
| @@ -2288,7 +2288,7 @@ suspended terminal are revived. | |||
| 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 | ||
| @@ -2329,11 +2329,11 @@ the currently selected frame. */) | |||
| 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 | } |
| @@ -3871,18 +3871,18 @@ This variable can be used by terminal emulator packages. */); | |||
| 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. |