]> code.delx.au - gnu-emacs/commit
Don't run view-mode-hook twice when calling view-mode (Bug#13315).
authorMartin Rudalics <rudalics@gmx.at>
Tue, 1 Jan 2013 11:02:14 +0000 (12:02 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 1 Jan 2013 11:02:14 +0000 (12:02 +0100)
commit0aac98ac25a96f19d007438a5037822b92702594
tree5905f82da83b41d3d01c0ff9ab79926c2b183ce6
parenta19e68ea91ef73423327fc8a1cbb32658b28d424
Don't run view-mode-hook twice when calling view-mode (Bug#13315).

* view.el (view-mode-enable): New argument run-view-mode-hook.
Run view-mode-hook only when it's non-nil (Bug#13315).
(view-mode-enter): Call view-mode-enable with run-view-mode-hook
argument t.
lisp/ChangeLog
lisp/view.el