aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJuanma Barranquero2011-06-25 20:08:41 +0200
committerJuanma Barranquero2011-06-25 20:08:41 +0200
commit74f53697495eeb2caaa73d100d19591c0ee7bfaf (patch)
treee9efa4081f5ae85fa64216c056dcc9a3cbeaaaa5 /lisp/progmodes
parent18a4ce5ea1b06bd077e87fd1ac8966b19b10ee8c (diff)
downloademacs-74f53697495eeb2caaa73d100d19591c0ee7bfaf.tar.gz
emacs-74f53697495eeb2caaa73d100d19591c0ee7bfaf.zip
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.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cperl-mode.el12
1 files changed, 0 insertions, 12 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 2cce5e13fb0..8eb2d01c097 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -8971,18 +8971,6 @@ do extra unwind via `cperl-unwind-to-safe'."
8971 (substring v (match-beginning 1) (match-end 1))) 8971 (substring v (match-beginning 1) (match-end 1)))
8972 "Version of IZ-supported CPerl package this file is based on.") 8972 "Version of IZ-supported CPerl package this file is based on.")
8973 8973
8974(defun cperl-mode-unload-function ()
8975 "Unload the Cperl mode library."
8976 (let ((new-mode (if (eq (symbol-function 'perl-mode) 'cperl-mode)
8977 'fundamental-mode
8978 'perl-mode)))
8979 (dolist (buf (buffer-list))
8980 (with-current-buffer buf
8981 (when (eq major-mode 'cperl-mode)
8982 (funcall new-mode)))))
8983 ;; continue standard unloading
8984 nil)
8985
8986(provide 'cperl-mode) 8974(provide 'cperl-mode)
8987 8975
8988;;; cperl-mode.el ends here 8976;;; cperl-mode.el ends here