This fixes a bug related to log-edit-generate-changelog-from-diff. When I tried to invoke this command in a commit buffer, the error signal: Unmatched bracket or quote was raised. The reason was that I added paredit-mode to emacs-lisp-mode-hook, that when invoked calls check-parens. This raises an error when the diff contains a partial s-expression, which is almost always the case. The least invasive approach I could come up with was to defer the mode hooks. Most hooks should not have any effect on what diff-add-log-current-defuns is doing, but I'm not sure if there are any exceptions that I didn't think of. -- Philip K.