]> git.eshelyaron.com Git - emacs.git/commitdiff
* (log-edit-show-diff): Error out if the diff function is not set.
authorDan Nicolaescu <dann@ics.uci.edu>
Sat, 1 Dec 2007 20:34:23 +0000 (20:34 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Sat, 1 Dec 2007 20:34:23 +0000 (20:34 +0000)
lisp/log-edit.el

index 46f1544d9ebb6086fc0e90a2e97c65bc542445d9..a2f749ad127b6c10a011f1ac5ee77909517a2f7d 100644 (file)
@@ -435,7 +435,9 @@ If you want to abort the commit, simply delete the buffer."
 (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."