diff lisp/server.el @ 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 368f142b4073
children dab32bc3edc8
line wrap: on
line diff
--- a/lisp/server.el	Tue Sep 04 06:47:41 2007 +0000
+++ b/lisp/server.el	Tue Sep 04 15:44:11 2007 +0000
@@ -485,7 +485,7 @@
 	(when server-process
 	  (server-log (message "Restarting server")))
 	(letf (((default-file-modes) ?\700))
-	  (add-hook 'suspend-tty-functions 'server-handle-suspend-tty)
+	  (add-hook 'suspend-tty-hook 'server-handle-suspend-tty)
 	  (add-hook 'delete-frame-functions 'server-handle-delete-frame)
 	  (add-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)
 	  (add-hook 'kill-emacs-query-functions 'server-kill-emacs-query-function)
@@ -1225,7 +1225,7 @@
 (defun server-unload-hook ()
   "Unload the server library."
   (server-mode -1)
-  (remove-hook 'suspend-tty-functions 'server-handle-suspend-tty)
+  (remove-hook 'suspend-tty-hook 'server-handle-suspend-tty)
   (remove-hook 'delete-frame-functions 'server-handle-delete-frame)
   (remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)
   (remove-hook 'kill-emacs-query-functions 'server-kill-emacs-query-function)