aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2007-09-04 15:44:11 +0000
committerDan Nicolaescu2007-09-04 15:44:11 +0000
commit92cd6a7c40a7db9ae2b8855ab41bf3b5e6b9133c (patch)
treeea0c5c8cf7a344348b064e2e24b6bf49ee54bb97
parent84a7b24341fc3a5bf5ffb12224bcaee928fc03f1 (diff)
downloademacs-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.
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/server.el4
-rw-r--r--lisp/xt-mouse.el4
-rw-r--r--src/ChangeLog8
-rw-r--r--src/term.c28
6 files changed, 39 insertions, 18 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 175a908a9db..e6961286fa5 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -236,6 +236,11 @@ session, and `make-frame-on-tty' works during a graphical session.
236`terminal-parameter', `set-terminal-parameter', 236`terminal-parameter', `set-terminal-parameter',
237`modify-terminal-parameters'. 237`modify-terminal-parameters'.
238 238
239*** New hooks: `suspend-tty-hook' and `resume-tty-hook'
240are called after a tty frame has been suspended or resumed,
241respectively. The hooks are called with the terminal id of the frame
242being suspended/resumed as a parameter.
243
239*** New functions: `environment', `let-environment'. 244*** New functions: `environment', `let-environment'.
240 245
241*** New variables: `local-key-translation-map', `local-function-key-map'. 246*** New variables: `local-key-translation-map', `local-function-key-map'.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4326ba221e0..6be6537c067 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * server.el (server-start, server-unload-hook):
4 suspend-tty-functions has been renamed to suspend-tty-hook.
5
6 * xt-mouse.el: Likewise. resume-tty-functions has been renamed to
7 resume-tty-hook.
8
12007-09-03 Emanuele Giaquinta <e.giaquinta@glauco.it> (tiny change) 92007-09-03 Emanuele Giaquinta <e.giaquinta@glauco.it> (tiny change)
2 10
3 * loadup.el: Fix merge problem, only load "button" once. 11 * loadup.el: Fix merge problem, only load "button" once.
diff --git a/lisp/server.el b/lisp/server.el
index be271051095..44dbb8484a9 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -485,7 +485,7 @@ kill any existing server communications subprocess."
485 (when server-process 485 (when server-process
486 (server-log (message "Restarting server"))) 486 (server-log (message "Restarting server")))
487 (letf (((default-file-modes) ?\700)) 487 (letf (((default-file-modes) ?\700))
488 (add-hook 'suspend-tty-functions 'server-handle-suspend-tty) 488 (add-hook 'suspend-tty-hook 'server-handle-suspend-tty)
489 (add-hook 'delete-frame-functions 'server-handle-delete-frame) 489 (add-hook 'delete-frame-functions 'server-handle-delete-frame)
490 (add-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function) 490 (add-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)
491 (add-hook 'kill-emacs-query-functions 'server-kill-emacs-query-function) 491 (add-hook 'kill-emacs-query-functions 'server-kill-emacs-query-function)
@@ -1225,7 +1225,7 @@ only these files will be asked to be saved."
1225(defun server-unload-hook () 1225(defun server-unload-hook ()
1226 "Unload the server library." 1226 "Unload the server library."
1227 (server-mode -1) 1227 (server-mode -1)
1228 (remove-hook 'suspend-tty-functions 'server-handle-suspend-tty) 1228 (remove-hook 'suspend-tty-hook 'server-handle-suspend-tty)
1229 (remove-hook 'delete-frame-functions 'server-handle-delete-frame) 1229 (remove-hook 'delete-frame-functions 'server-handle-delete-frame)
1230 (remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function) 1230 (remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)
1231 (remove-hook 'kill-emacs-query-functions 'server-kill-emacs-query-function) 1231 (remove-hook 'kill-emacs-query-functions 'server-kill-emacs-query-function)
diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el
index af7a3789df0..9a2603d57c8 100644
--- a/lisp/xt-mouse.el
+++ b/lisp/xt-mouse.el
@@ -251,8 +251,8 @@ down the SHIFT key while pressing the mouse button."
251(add-hook 'delete-frame-functions 'xterm-mouse-handle-delete-frame) 251(add-hook 'delete-frame-functions 'xterm-mouse-handle-delete-frame)
252 252
253;; Restore normal mouse behaviour outside Emacs. 253;; Restore normal mouse behaviour outside Emacs.
254(add-hook 'suspend-tty-functions 'turn-off-xterm-mouse-tracking-on-terminal) 254(add-hook 'suspend-tty-hook 'turn-off-xterm-mouse-tracking-on-terminal)
255(add-hook 'resume-tty-functions 'turn-on-xterm-mouse-tracking-on-terminal) 255(add-hook 'resume-tty-hook 'turn-on-xterm-mouse-tracking-on-terminal)
256(add-hook 'suspend-hook 'turn-off-xterm-mouse-tracking) 256(add-hook 'suspend-hook 'turn-off-xterm-mouse-tracking)
257(add-hook 'suspend-resume-hook 'turn-on-xterm-mouse-tracking) 257(add-hook 'suspend-resume-hook 'turn-on-xterm-mouse-tracking)
258(add-hook 'kill-emacs-hook 'turn-off-xterm-mouse-tracking) 258(add-hook 'kill-emacs-hook 'turn-off-xterm-mouse-tracking)
diff --git a/src/ChangeLog b/src/ChangeLog
index 959a1bdbfca..4c72b1d6c7e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12007-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
12007-09-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 92007-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;
124extern Lisp_Object Qspace, QCalign_to, QCwidth; 124extern Lisp_Object Qspace, QCalign_to, QCwidth;
125 125
126/* Functions to call after suspending a tty. */ 126/* Functions to call after suspending a tty. */
127Lisp_Object Vsuspend_tty_functions; 127Lisp_Object Vsuspend_tty_hook;
128 128
129/* Functions to call after resuming a tty. */ 129/* Functions to call after resuming a tty. */
130Lisp_Object Vresume_tty_functions; 130Lisp_Object Vresume_tty_hook;
131 131
132/* Chain of all tty device parameters. */ 132/* Chain of all tty device parameters. */
133struct tty_display_info *tty_list; 133struct tty_display_info *tty_list;
@@ -2229,7 +2229,7 @@ not updated.
2229TTY may be a terminal id, a frame, or nil for the terminal device of 2229TTY may be a terminal id, a frame, or nil for the terminal device of
2230the currently selected frame. 2230the currently selected frame.
2231 2231
2232This function runs `suspend-tty-functions' after suspending the 2232This function runs `suspend-tty-hook' after suspending the
2233device. The functions are run with one arg, the id of the suspended 2233device. The functions are run with one arg, the id of the suspended
2234terminal device. 2234terminal 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.
2288It is an error to resume a terminal while another terminal is active 2288It is an error to resume a terminal while another terminal is active
2289on the same device. 2289on the same device.
2290 2290
2291This function runs `resume-tty-functions' after resuming the terminal. 2291This function runs `resume-tty-hook' after resuming the terminal.
2292The functions are run with one arg, the id of the resumed terminal 2292The functions are run with one arg, the id of the resumed terminal
2293device. 2293device.
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.
3876The functions are run with one argument, the terminal id to be suspended. 3876The functions are run with one argument, the terminal id to be suspended.
3877See `suspend-tty'. */); 3877See `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.
3883The functions are run with one argument, the terminal id that was revived. 3883The functions are run with one argument, the terminal id that was revived.
3884See `resume-tty'. */); 3884See `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.