mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-26 08:10:47 -07:00
* lisp/vc/log-edit.el (log-edit-diff-function): Give non-nil default
(log-edit-show-diff): Simplify accordingly.
This commit is contained in:
parent
4315a0bb26
commit
28a5932e74
1 changed files with 3 additions and 4 deletions
|
|
@ -191,7 +191,8 @@ when this variable is set to nil.")
|
|||
(defconst log-edit-files-buf "*log-edit-files*")
|
||||
(defvar log-edit-initial-files nil)
|
||||
(defvar log-edit-callback nil)
|
||||
(defvar log-edit-diff-function nil)
|
||||
(defvar log-edit-diff-function
|
||||
(lambda () (error "Diff functionality has not been setup")))
|
||||
(defvar log-edit-listfun nil)
|
||||
|
||||
(defvar log-edit-parent-buffer nil)
|
||||
|
|
@ -659,9 +660,7 @@ Also saves its contents in the comment history and hides
|
|||
(defun log-edit-show-diff ()
|
||||
"Show the diff for the files to be committed."
|
||||
(interactive)
|
||||
(if (functionp log-edit-diff-function)
|
||||
(funcall log-edit-diff-function)
|
||||
(error "Diff functionality has not been setup")))
|
||||
(funcall log-edit-diff-function))
|
||||
|
||||
(defun log-edit-show-files ()
|
||||
"Show the list of files to be committed."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue