diff options
| author | Dan Nicolaescu | 2007-12-01 20:34:23 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2007-12-01 20:34:23 +0000 |
| commit | 37b72bf5ea01a31945194e076260e932c44902c4 (patch) | |
| tree | 3452d5577e48e7816ed675475b3916d98944551a | |
| parent | 93a142e14fc190bdae9467d8f99367f9df1bda91 (diff) | |
| download | emacs-37b72bf5ea01a31945194e076260e932c44902c4.tar.gz emacs-37b72bf5ea01a31945194e076260e932c44902c4.zip | |
* (log-edit-show-diff): Error out if the diff function is not set.
| -rw-r--r-- | lisp/log-edit.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/log-edit.el b/lisp/log-edit.el index 46f1544d9eb..a2f749ad127 100644 --- a/lisp/log-edit.el +++ b/lisp/log-edit.el | |||
| @@ -435,7 +435,9 @@ If you want to abort the commit, simply delete the buffer." | |||
| 435 | (defun log-edit-show-diff () | 435 | (defun log-edit-show-diff () |
| 436 | "Show the diff for the files to be committed." | 436 | "Show the diff for the files to be committed." |
| 437 | (interactive) | 437 | (interactive) |
| 438 | (funcall log-edit-diff-function)) | 438 | (if (functionp log-edit-diff-function) |
| 439 | (funcall log-edit-diff-function) | ||
| 440 | (error "Diff functionality has not been setup"))) | ||
| 439 | 441 | ||
| 440 | (defun log-edit-show-files () | 442 | (defun log-edit-show-files () |
| 441 | "Show the list of files to be committed." | 443 | "Show the list of files to be committed." |