From 74f53697495eeb2caaa73d100d19591c0ee7bfaf Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Sat, 25 Jun 2011 20:08:41 +0200 Subject: Simplify unloading functions after 2011-06-25T17:42:18Z!lekktu@gmail.com. * allout.el (allout-unload-function): Pass -1 to `allout-mode'. * proced.el (proced-unload-function): * progmodes/cperl-mode.el (cperl-mode-unload-function): Remove. * ses.el (ses-unload-function): * emacs-lisp/re-builder.el (re-builder-unload-function): Simplify. --- lisp/proced.el | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lisp/proced.el') diff --git a/lisp/proced.el b/lisp/proced.el index 4436129ce16..11598d7350f 100644 --- a/lisp/proced.el +++ b/lisp/proced.el @@ -1869,16 +1869,6 @@ buffer. You can use it to recover marks." (message "Change in Proced buffer undone. Killed processes cannot be recovered by Emacs.")) -(defun proced-unload-function () - "Unload the Proced library." - (save-current-buffer - (dolist (buf (buffer-list)) - (set-buffer buf) - (when (eq major-mode 'proced-mode) - (funcall (or (default-value 'major-mode) 'fundamental-mode))))) - ;; continue standard unloading - nil) - (provide 'proced) ;;; proced.el ends here -- cgit v1.2.1