# HG changeset patch # User Dan Nicolaescu # Date 1196541263 0 # Node ID 71145ecef766f8557745911b3eb0b5980fd6c6fd # Parent 6e9e38d61817be6ff23fbd5a3c20bbd7f77131fd * (log-edit-show-diff): Error out if the diff function is not set. diff -r 6e9e38d61817 -r 71145ecef766 lisp/log-edit.el --- a/lisp/log-edit.el Sat Dec 01 19:37:20 2007 +0000 +++ b/lisp/log-edit.el Sat Dec 01 20:34:23 2007 +0000 @@ -435,7 +435,9 @@ (defun log-edit-show-diff () "Show the diff for the files to be committed." (interactive) - (funcall log-edit-diff-function)) + (if (functionp log-edit-diff-function) + (funcall log-edit-diff-function) + (error "Diff functionality has not been setup"))) (defun log-edit-show-files () "Show the list of files to be committed."