changeset 86909:71145ecef766

* (log-edit-show-diff): Error out if the diff function is not set.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sat, 01 Dec 2007 20:34:23 +0000
parents 6e9e38d61817
children bfd85061bc03
files lisp/log-edit.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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."