aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2007-11-11 14:55:56 +0000
committerDan Nicolaescu2007-11-11 14:55:56 +0000
commitc27f56ee33bed045d5171d2d273329d65068ec5f (patch)
treea10446d42bd7fd017121d6fb56f304c5037502d2
parent3bcc60cfaf19840ad12a496a60aea6f0408c366e (diff)
downloademacs-c27f56ee33bed045d5171d2d273329d65068ec5f.tar.gz
emacs-c27f56ee33bed045d5171d2d273329d65068ec5f.zip
(vc-start-entry): Fix setting the in the case the function
is called from vc-dired. Use when instead of if where appropriate.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/vc.el24
2 files changed, 20 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d1f4f81e835..65962613866 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc.el (vc-start-entry): Fix setting the in the case the function
4 is called from vc-dired. Use when instead of if where
5 appropriate.
6
12007-11-11 Vinicius Jose Latorre <viniciusjl@ig.com.br> 72007-11-11 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2 8
3 * ps-print.el (ps-do-despool): Do not force ps-lpr-switches to be a 9 * ps-print.el (ps-do-despool): Do not force ps-lpr-switches to be a
diff --git a/lisp/vc.el b/lisp/vc.el
index 5811b2f7d63..3661d6b8609 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1637,14 +1637,18 @@ empty comment. Remember the file's buffer in `vc-parent-buffer'
1637\(current one if no file). AFTER-HOOK specifies the local value 1637\(current one if no file). AFTER-HOOK specifies the local value
1638for vc-log-operation-hook." 1638for vc-log-operation-hook."
1639 (let ((parent 1639 (let ((parent
1640 (if (and files (equal (length files) 1)) 1640 (if (eq major-mode 'vc-dired-mode)
1641 (get-file-buffer (car files)) 1641 ;; If we are called from VC dired, the parent buffer is
1642 (current-buffer)))) 1642 ;; the current buffer.
1643 (if vc-before-checkin-hook 1643 (current-buffer)
1644 (if files 1644 (if (and files (equal (length files) 1))
1645 (with-current-buffer parent 1645 (get-file-buffer (car files))
1646 (run-hooks 'vc-before-checkin-hook)) 1646 (current-buffer)))))
1647 (run-hooks 'vc-before-checkin-hook))) 1647 (when vc-before-checkin-hook
1648 (if files
1649 (with-current-buffer parent
1650 (run-hooks 'vc-before-checkin-hook))
1651 (run-hooks 'vc-before-checkin-hook)))
1648 (if (and comment (not initial-contents)) 1652 (if (and comment (not initial-contents))
1649 (set-buffer (get-buffer-create "*VC-log*")) 1653 (set-buffer (get-buffer-create "*VC-log*"))
1650 (pop-to-buffer (get-buffer-create "*VC-log*"))) 1654 (pop-to-buffer (get-buffer-create "*VC-log*")))
@@ -1654,8 +1658,8 @@ for vc-log-operation-hook."
1654 ;;(if file (vc-mode-line file)) 1658 ;;(if file (vc-mode-line file))
1655 (vc-log-edit files) 1659 (vc-log-edit files)
1656 (make-local-variable 'vc-log-after-operation-hook) 1660 (make-local-variable 'vc-log-after-operation-hook)
1657 (if after-hook 1661 (when after-hook
1658 (setq vc-log-after-operation-hook after-hook)) 1662 (setq vc-log-after-operation-hook after-hook))
1659 (setq vc-log-operation action) 1663 (setq vc-log-operation action)
1660 (setq vc-log-revision rev) 1664 (setq vc-log-revision rev)
1661 (when comment 1665 (when comment