diff options
| author | Glenn Morris | 2010-03-23 20:38:17 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-03-23 20:38:17 -0700 |
| commit | 5ac92c5f31c0d010a30c2e1ea205f17ea9e295fe (patch) | |
| tree | 191568988dbf255dc97cbb708f2c1d125af673f6 | |
| parent | ebbe23ddbb3a2516a6c9d325f9c8f74bafb237c4 (diff) | |
| download | emacs-5ac92c5f31c0d010a30c2e1ea205f17ea9e295fe.tar.gz emacs-5ac92c5f31c0d010a30c2e1ea205f17ea9e295fe.zip | |
* vc.el (vc-modify-change-comment): Pass MODE to vc-start-logentry.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/vc.el | 25 |
2 files changed, 17 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 12de6f8876d..8cca842ee60 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | 2010-03-24 Glenn Morris <rgm@gnu.org> | 1 | 2010-03-24 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * vc-bzr.el, vc-hg.el (log-edit-mode): Declare. | 3 | * vc.el (vc-modify-change-comment): Pass MODE to vc-start-logentry. |
| 4 | |||
| 5 | * vc.el, vc-bzr.el, vc-hg.el (log-edit-mode): Declare. | ||
| 4 | 6 | ||
| 5 | * vc-dispatcher.el (vc-start-logentry): Doc fix. | 7 | * vc-dispatcher.el (vc-start-logentry): Doc fix. |
| 6 | (log-view-process-buffer, log-edit-extra-flags): Declare. | 8 | (log-view-process-buffer, log-edit-extra-flags): Declare. |
diff --git a/lisp/vc.el b/lisp/vc.el index dee4ce9c841..6a48b626136 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1744,17 +1744,18 @@ The headers are reset to their non-expanded form." | |||
| 1744 | 1744 | ||
| 1745 | (defun vc-modify-change-comment (files rev oldcomment) | 1745 | (defun vc-modify-change-comment (files rev oldcomment) |
| 1746 | "Edit the comment associated with the given files and revision." | 1746 | "Edit the comment associated with the given files and revision." |
| 1747 | (vc-start-logentry | 1747 | ;; Less of a kluge than it looks like; log-view mode only passes |
| 1748 | files rev oldcomment t | 1748 | ;; this function a singleton list. Arguments left in this form in |
| 1749 | "Enter a replacement change comment." | 1749 | ;; case the more general operation ever becomes meaningful. |
| 1750 | "*VC-log*" | 1750 | (let ((backend (vc-responsible-backend (car files)))) |
| 1751 | (lambda (files rev comment ignored) | 1751 | (vc-start-logentry |
| 1752 | (vc-call-backend | 1752 | files rev oldcomment t |
| 1753 | ;; Less of a kluge than it looks like; log-view mode only passes | 1753 | "Enter a replacement change comment." |
| 1754 | ;; this function a singleton list. Arguments left in this form in | 1754 | "*VC-log*" |
| 1755 | ;; case the more general operation ever becomes meaningful. | 1755 | (lambda () (vc-call-backend backend 'log-edit-mode)) |
| 1756 | (vc-responsible-backend (car files)) | 1756 | (lambda (files rev comment ignored) |
| 1757 | 'modify-change-comment files rev comment)))) | 1757 | (vc-call-backend backend |
| 1758 | 'modify-change-comment files rev comment))))) | ||
| 1758 | 1759 | ||
| 1759 | ;;;###autoload | 1760 | ;;;###autoload |
| 1760 | (defun vc-merge () | 1761 | (defun vc-merge () |
| @@ -2433,6 +2434,8 @@ to provide the `find-revision' operation instead." | |||
| 2433 | 2434 | ||
| 2434 | (defalias 'vc-default-check-headers 'ignore) | 2435 | (defalias 'vc-default-check-headers 'ignore) |
| 2435 | 2436 | ||
| 2437 | (declare-function log-edit-mode "log-edit" ()) | ||
| 2438 | |||
| 2436 | (defun vc-default-log-edit-mode (backend) (log-edit-mode)) | 2439 | (defun vc-default-log-edit-mode (backend) (log-edit-mode)) |
| 2437 | 2440 | ||
| 2438 | (defun vc-default-log-view-mode (backend) (log-view-mode)) | 2441 | (defun vc-default-log-view-mode (backend) (log-view-mode)) |