Mercurial > emacs
diff lisp/textmodes/reftex-toc.el @ 104768:17d2ae0948e2
Remove unnecessary bindings of default-major-mode (all are followed by
major-mode check and possible mode switch).
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 01 Sep 2009 03:02:25 +0000 |
parents | da8b3e61b182 |
children | f8ba8d6fd250 |
line wrap: on
line diff
--- a/lisp/textmodes/reftex-toc.el Tue Sep 01 02:54:49 2009 +0000 +++ b/lisp/textmodes/reftex-toc.el Tue Sep 01 03:02:25 2009 +0000 @@ -170,8 +170,7 @@ (floor (* (window-height) reftex-toc-split-windows-fraction))))) - (let ((default-major-mode 'reftex-toc-mode)) - (switch-to-buffer "*toc*"))) + (switch-to-buffer "*toc*")) (or (eq major-mode 'reftex-toc-mode) (reftex-toc-mode)) (set (make-local-variable 'reftex-docstruct-symbol) docstruct-symbol)