summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/re-builder.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2011-06-25 20:08:41 +0200
committerJuanma Barranquero <lekktu@gmail.com>2011-06-25 20:08:41 +0200
commit74f53697495eeb2caaa73d100d19591c0ee7bfaf (patch)
treee9efa4081f5ae85fa64216c056dcc9a3cbeaaaa5 /lisp/emacs-lisp/re-builder.el
parent18a4ce5ea1b06bd077e87fd1ac8966b19b10ee8c (diff)
downloademacs-74f53697495eeb2caaa73d100d19591c0ee7bfaf.tar.gz
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/emacs-lisp/re-builder.el')
-rw-r--r--lisp/emacs-lisp/re-builder.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el
index 5ce18d020c9..ebbd6ff1fdf 100644
--- a/lisp/emacs-lisp/re-builder.el
+++ b/lisp/emacs-lisp/re-builder.el
@@ -714,8 +714,7 @@ If SUBEXP is non-nil mark only the corresponding sub-expressions."
(remove-hook 'after-change-functions 'reb-auto-update t)
(remove-hook 'kill-buffer-hook 'reb-kill-buffer t)
(when (reb-mode-buffer-p)
- (reb-delete-overlays)
- (funcall (or (default-value 'major-mode) 'fundamental-mode)))))
+ (reb-delete-overlays))))
;; continue standard unloading
nil)