* arc-mode.el (archive-mode):

* emacs-lisp/re-builder.el (re-builder-unload-function):
  Protect against the default value of `major-mode' being nil.
This commit is contained in:
Juanma Barranquero 2009-08-28 18:35:25 +00:00
parent dd4fbf5672
commit 1e8eecea4b
3 changed files with 8 additions and 2 deletions

View file

@ -720,7 +720,7 @@ If SUBEXP is non-nil mark only the corresponding sub-expressions."
(remove-hook 'kill-buffer-hook 'reb-kill-buffer t)
(when (reb-mode-buffer-p)
(reb-delete-overlays)
(funcall (default-value 'major-mode)))))
(funcall (or (default-value 'major-mode) 'fundamental-mode)))))
;; continue standard unloading
nil)