aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-05-02 03:47:14 +0000
committerDan Nicolaescu2008-05-02 03:47:14 +0000
commit80296236a06f41036b341622c5afe2cca4ec58b0 (patch)
tree1a0f95bfa05217f632dc88c2f295bf3657f12eeb
parenta094fe434f1322399cd9b9a9eeb3f2c67b226e28 (diff)
downloademacs-80296236a06f41036b341622c5afe2cca4ec58b0.tar.gz
emacs-80296236a06f41036b341622c5afe2cca4ec58b0.zip
(vc-register): Change argument order so that the prefix
argument is assigned correctly. (vc-next-action, vc-dir-register): Update for the above change.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/vc.el24
2 files changed, 19 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6bdf90308a5..8b7d111d1cf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc.el (vc-register): Change argument order so that the prefix
4 argument is assigned correctly.
5 (vc-next-action, vc-dir-register): Update for the above change.
6
12008-05-01 Juri Linkov <juri@jurta.org> 72008-05-01 Juri Linkov <juri@jurta.org>
2 8
3 * replace.el (occur-read-primary-args): Set default to the car of 9 * replace.el (occur-read-primary-args): Set default to the car of
@@ -25,8 +31,8 @@
25 * vc.el (vc-default-dired-state): Change needs-patch state to 31 * vc.el (vc-default-dired-state): Change needs-patch state to
26 needs-update, since the name now shows up in dir-status listings 32 needs-update, since the name now shows up in dir-status listings
27 and was somewhat misleading. 33 and was somewhat misleading.
28 * vc.el (vc-cvs-delete-file) Don't do a "cvs commit" immediately after 34 * vc-cvs.el (vc-cvs-delete-file) Don't do a "cvs commit"
29 removing the file. 35 immediately after removing the file.
30 * vc.el (vc-next-action): More informative message when a fileset 36 * vc.el (vc-next-action): More informative message when a fileset
31 is in a mixed state. 37 is in a mixed state.
32 38
diff --git a/lisp/vc.el b/lisp/vc.el
index 8e3521b9e45..82d59c0f84d 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -652,6 +652,10 @@
652;; - vc-dir-next-line should not print an "end of buffer" message when 652;; - vc-dir-next-line should not print an "end of buffer" message when
653;; invoked with the cursor on the last file. 653;; invoked with the cursor on the last file.
654;; 654;;
655;; - add commands to move to the prev/next directory in vc-dir.
656;;
657;; - document vc-dir in the manual.
658;;
655;; - vc-diff, vc-annotate, etc. need to deal better with unregistered 659;; - vc-diff, vc-annotate, etc. need to deal better with unregistered
656;; files. Now that unregistered and ignored files are shown in 660;; files. Now that unregistered and ignored files are shown in
657;; vc-dired/vc-dir, it is possible that these commands are called 661;; vc-dired/vc-dir, it is possible that these commands are called
@@ -670,9 +674,9 @@
670;; Those logs should likely use a local variable to hardware the VC they 674;; Those logs should likely use a local variable to hardware the VC they
671;; are supposed to work with. 675;; are supposed to work with.
672;; 676;;
673;; More issues here: 677;; - backends that care about vc-stay-local should try to take it into
674;; http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg00664.html 678;; account for vc-dir. Is this likely to be useful???
675 679;;
676;;; Code: 680;;; Code:
677 681
678(require 'vc-hooks) 682(require 'vc-hooks)
@@ -1652,7 +1656,7 @@ merge in the changes into your working copy."
1652 ;; Files aren't registered 1656 ;; Files aren't registered
1653 ((or (eq state 'unregistered) 1657 ((or (eq state 'unregistered)
1654 (eq state 'ignored)) 1658 (eq state 'ignored))
1655 (mapc 'vc-register files)) 1659 (mapc (lambda (arg) (vc-register nil arg)) files))
1656 ;; Files are up-to-date, or need a merge and user specified a revision 1660 ;; Files are up-to-date, or need a merge and user specified a revision
1657 ((or (eq state 'up-to-date) (and verbose (eq state 'needs-update))) 1661 ((or (eq state 'up-to-date) (and verbose (eq state 'needs-update)))
1658 (cond 1662 (cond
@@ -1795,7 +1799,7 @@ merge in the changes into your working copy."
1795 (vc-call-backend backend 'create-repo)) 1799 (vc-call-backend backend 'create-repo))
1796 1800
1797;;;###autoload 1801;;;###autoload
1798(defun vc-register (&optional fname set-revision comment) 1802(defun vc-register (&optional set-revision fname comment)
1799 "Register into a version control system. 1803 "Register into a version control system.
1800If FNAME is given register that file, otherwise register the current file. 1804If FNAME is given register that file, otherwise register the current file.
1801With prefix argument SET-REVISION, allow user to specify initial revision 1805With prefix argument SET-REVISION, allow user to specify initial revision
@@ -2971,9 +2975,6 @@ specific headers."
2971 (define-key map "=" 'vc-diff) ;; C-x v = 2975 (define-key map "=" 'vc-diff) ;; C-x v =
2972 (define-key map "a" 'vc-dir-register) 2976 (define-key map "a" 'vc-dir-register)
2973 (define-key map "+" 'vc-update) ;; C-x v + 2977 (define-key map "+" 'vc-update) ;; C-x v +
2974
2975 ;;XXX: Maybe use something else here, so we can use 'U' for unmark
2976 ;;all, similar to 'M'..
2977 (define-key map "R" 'vc-revert) ;; u is taken by unmark. 2978 (define-key map "R" 'vc-revert) ;; u is taken by unmark.
2978 2979
2979 ;; Can't be "g" (as in vc map), so "A" for "Annotate". 2980 ;; Can't be "g" (as in vc map), so "A" for "Annotate".
@@ -2986,9 +2987,6 @@ specific headers."
2986 (define-key map "x" 'vc-dir-hide-up-to-date) 2987 (define-key map "x" 'vc-dir-hide-up-to-date)
2987 (define-key map "q" 'quit-window) 2988 (define-key map "q" 'quit-window)
2988 (define-key map "g" 'vc-dir-refresh) 2989 (define-key map "g" 'vc-dir-refresh)
2989 ;; PCL-CVS binds "r" to the delete function, but dann objects to ANY binding
2990 ;; <http://thread.gmane.org/gmane.emacs.devel/96234>
2991 ;; (define-key map "D" 'vc-dir-delete-file)
2992 (define-key map "\C-c\C-c" 'vc-dir-kill-dir-status-process) 2990 (define-key map "\C-c\C-c" 'vc-dir-kill-dir-status-process)
2993 ;; Does not work unless mouse sets point. Functions like vc-dir-find-file 2991 ;; Does not work unless mouse sets point. Functions like vc-dir-find-file
2994 ;; need to find the file from the mouse position, not `point'. 2992 ;; need to find the file from the mouse position, not `point'.
@@ -3552,8 +3550,8 @@ that share the same state."
3552 "Register the marked files, or the current file if no marks." 3550 "Register the marked files, or the current file if no marks."
3553 (interactive) 3551 (interactive)
3554 ;; FIXME: Just pass the fileset to vc-register. 3552 ;; FIXME: Just pass the fileset to vc-register.
3555 (mapc 'vc-register (or (vc-dir-marked-files) 3553 (mapc (lambda (arg) (vc-register nil arg))
3556 (list (vc-dir-current-file))))) 3554 (or (vc-dir-marked-files) (list (vc-dir-current-file)))))
3557 3555
3558(defun vc-dir-delete-file () 3556(defun vc-dir-delete-file ()
3559 "Delete the marked files, or the current file if no marks." 3557 "Delete the marked files, or the current file if no marks."