+2007-10-29 Juanma Barranquero <lekktu@gmail.com>
+
+ * loadhist.el (unload-feature-special-hooks):
+ Add `delete-frame-functions'.
+
+ * server.el (server-unload-function): Rename from `server-unload-hook'
+ and adapt to new `unload-feature' functionality. Remove hook from
+ `kill-buffer-hook' buffer-locally.
+ (server-unload-hook): Remove.
+ (server-unload-function): New var; replaces `server-unload-hook'.
+
2007-10-27 Juanma Barranquero <lekktu@gmail.com>
* desktop.el (uniquify-managed): Pacify byte compiler.
(define-key ctl-x-map "#" 'server-edit)
-(defun server-unload-hook ()
+(defun server-unload-function ()
+ "Unload the server library."
(server-mode -1)
- (remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)
- (remove-hook 'kill-emacs-query-functions 'server-kill-emacs-query-function)
- (remove-hook 'kill-buffer-hook 'server-kill-buffer))
+ (save-current-buffer
+ (dolist (buffer (buffer-list))
+ (set-buffer buffer)
+ (remove-hook 'kill-buffer-hook 'server-kill-buffer t)))
+ ;; continue standard unloading
+ nil)
(add-hook 'kill-emacs-hook (lambda () (server-mode -1))) ;Cleanup upon exit.
-(add-hook 'server-unload-hook 'server-unload-hook)
+(defvar server-unload-function 'server-unload-function)
\f
(provide 'server)