aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-03-29 00:17:54 +0000
committerDan Nicolaescu2008-03-29 00:17:54 +0000
commit20f95df2107fde0ff7252c9c44d4c50cde324ad7 (patch)
treeff0357baa6c7c8a0bba963e80a4e97cade6f601f
parent51fac78c03ce33c455e6d5cd77c7950364b88dc0 (diff)
downloademacs-20f95df2107fde0ff7252c9c44d4c50cde324ad7.tar.gz
emacs-20f95df2107fde0ff7252c9c44d4c50cde324ad7.zip
(vc-update): Check if the buffer is unsaved only if it
actually exists. (vc-status-mode-map, vc-status-menu-map): Bind vc-update.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/vc.el9
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 16c8cb6bc57..2b44763bea3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-03-29 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc.el (vc-update): Check if the buffer is unsaved only if it
4 actually exists.
5 (vc-status-mode-map, vc-status-menu-map): Bind vc-update.
6
12008-03-28 Magnus Henoch <mange@freemail.hu> 72008-03-28 Magnus Henoch <mange@freemail.hu>
2 8
3 * net/dns.el (dns-write): Use set-buffer-multibyte. 9 * net/dns.el (dns-write): Use set-buffer-multibyte.
diff --git a/lisp/vc.el b/lisp/vc.el
index c252a905a3d..8a707464a03 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -2750,6 +2750,9 @@ With prefix arg READ-SWITCHES, specify a value to override
2750 (define-key map [register] 2750 (define-key map [register]
2751 '(menu-item "Register" vc-status-register 2751 '(menu-item "Register" vc-status-register
2752 :help "Register file set into the version control system")) 2752 :help "Register file set into the version control system"))
2753 (define-key map [update]
2754 '(menu-item "Update" vc-update
2755 :help "Update the current fileset's files to their tip revisions"))
2753 ;; vc-print-log uses the current buffer, not a file. 2756 ;; vc-print-log uses the current buffer, not a file.
2754 ;; (define-key map [log] 2757 ;; (define-key map [log]
2755 ;; '(menu-item "Show history" vc-status-print-log 2758 ;; '(menu-item "Show history" vc-status-print-log
@@ -2815,6 +2818,7 @@ With prefix arg READ-SWITCHES, specify a value to override
2815 ;; VC commands. 2818 ;; VC commands.
2816 (define-key map "=" 'vc-diff) 2819 (define-key map "=" 'vc-diff)
2817 (define-key map "a" 'vc-status-register) 2820 (define-key map "a" 'vc-status-register)
2821 (define-key map "+" 'vc-update)
2818 ;; Can't be "g" (as in vc map), so "A" for "Annotate". 2822 ;; Can't be "g" (as in vc map), so "A" for "Annotate".
2819 (define-key map "A" 'vc-annotate) 2823 (define-key map "A" 'vc-annotate)
2820 ;; vc-print-log uses the current buffer, not a file. 2824 ;; vc-print-log uses the current buffer, not a file.
@@ -3364,8 +3368,9 @@ contains changes, and the backend supports merging news, then any recent
3364changes from the current branch are merged into the working file." 3368changes from the current branch are merged into the working file."
3365 (interactive) 3369 (interactive)
3366 (dolist (file (vc-deduce-fileset)) 3370 (dolist (file (vc-deduce-fileset))
3367 (if (buffer-modified-p (get-file-buffer file)) 3371 (when (let ((buf (get-file-buffer file)))
3368 (error "Please kill or save all modified buffers before updating.")) 3372 (and buf (buffer-modified-p buf)))
3373 (error "Please kill or save all modified buffers before updating."))
3369 (if (vc-up-to-date-p file) 3374 (if (vc-up-to-date-p file)
3370 (vc-checkout file nil t) 3375 (vc-checkout file nil t)
3371 (if (eq (vc-checkout-model file) 'locking) 3376 (if (eq (vc-checkout-model file) 'locking)