diff options
Diffstat (limited to 'lisp/vc')
| -rw-r--r-- | lisp/vc/cvs-status.el | 2 | ||||
| -rw-r--r-- | lisp/vc/diff-mode.el | 10 | ||||
| -rw-r--r-- | lisp/vc/ediff-help.el | 10 | ||||
| -rw-r--r-- | lisp/vc/ediff-util.el | 6 | ||||
| -rw-r--r-- | lisp/vc/pcvs-defs.el | 3 | ||||
| -rw-r--r-- | lisp/vc/vc-bzr.el | 3 | ||||
| -rw-r--r-- | lisp/vc/vc-cvs.el | 3 | ||||
| -rw-r--r-- | lisp/vc/vc-mtn.el | 5 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 2 |
9 files changed, 25 insertions, 19 deletions
diff --git a/lisp/vc/cvs-status.el b/lisp/vc/cvs-status.el index 063eb414579..3444b230e8d 100644 --- a/lisp/vc/cvs-status.el +++ b/lisp/vc/cvs-status.el | |||
| @@ -257,7 +257,7 @@ The tree will be printed no closer than column COLUMN." | |||
| 257 | 257 | ||
| 258 | (defun cvs-tree-merge (tree1 tree2) | 258 | (defun cvs-tree-merge (tree1 tree2) |
| 259 | "Merge tags trees TREE1 and TREE2 into one. | 259 | "Merge tags trees TREE1 and TREE2 into one. |
| 260 | BEWARE: because of stability issues, this is not a symetric operation." | 260 | BEWARE: because of stability issues, this is not a symmetric operation." |
| 261 | (assert (and (listp tree1) (listp tree2))) | 261 | (assert (and (listp tree1) (listp tree2))) |
| 262 | (cond | 262 | (cond |
| 263 | ((null tree1) tree2) | 263 | ((null tree1) tree2) |
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 9f0fa584b0d..8f4b59f9e53 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el | |||
| @@ -146,7 +146,7 @@ when editing big diffs)." | |||
| 146 | ;; but not all since they may hide useful M-<foo> global | 146 | ;; but not all since they may hide useful M-<foo> global |
| 147 | ;; bindings when editing. | 147 | ;; bindings when editing. |
| 148 | (set-keymap-parent map diff-mode-shared-map) | 148 | (set-keymap-parent map diff-mode-shared-map) |
| 149 | (dolist (key '("A" "r" "R" "g" "q" "W")) | 149 | (dolist (key '("A" "r" "R" "g" "q" "W" "z")) |
| 150 | (define-key map key nil)) | 150 | (define-key map key nil)) |
| 151 | map)) | 151 | map)) |
| 152 | ;; From compilation-minor-mode. | 152 | ;; From compilation-minor-mode. |
| @@ -815,9 +815,11 @@ PREFIX is only used internally: don't use it." | |||
| 815 | (diff-find-file-name old noprompt (match-string 1))) | 815 | (diff-find-file-name old noprompt (match-string 1))) |
| 816 | ;; if all else fails, ask the user | 816 | ;; if all else fails, ask the user |
| 817 | (unless noprompt | 817 | (unless noprompt |
| 818 | (let ((file (read-file-name (format "Use file %s: " | 818 | (let ((file (expand-file-name (or (first fs) "")))) |
| 819 | (or (first fs) "")) | 819 | (setq file |
| 820 | nil (first fs) t (first fs)))) | 820 | (read-file-name (format "Use file %s: " file) |
| 821 | (file-name-directory file) file t | ||
| 822 | (file-name-nondirectory file))) | ||
| 821 | (set (make-local-variable 'diff-remembered-files-alist) | 823 | (set (make-local-variable 'diff-remembered-files-alist) |
| 822 | (cons (cons fs file) diff-remembered-files-alist)) | 824 | (cons (cons fs file) diff-remembered-files-alist)) |
| 823 | file)))))) | 825 | file)))))) |
diff --git a/lisp/vc/ediff-help.el b/lisp/vc/ediff-help.el index ddd9371b060..ee7837b29a3 100644 --- a/lisp/vc/ediff-help.el +++ b/lisp/vc/ediff-help.el | |||
| @@ -50,7 +50,7 @@ For help on a specific command: Click Button 2 over it; or | |||
| 50 | (defconst ediff-long-help-message-compare3 | 50 | (defconst ediff-long-help-message-compare3 |
| 51 | " | 51 | " |
| 52 | p,DEL -previous diff | | -vert/horiz split | xy -copy buf X's region to Y | 52 | p,DEL -previous diff | | -vert/horiz split | xy -copy buf X's region to Y |
| 53 | n,SPC -next diff | h -hilighting | rx -restore buf X's old diff | 53 | n,SPC -next diff | h -highlighting | rx -restore buf X's old diff |
| 54 | j -jump to diff | @ -auto-refinement | * -refine current region | 54 | j -jump to diff | @ -auto-refinement | * -refine current region |
| 55 | gx -goto X's point| ## -ignore whitespace | ! -update diff regions | 55 | gx -goto X's point| ## -ignore whitespace | ! -update diff regions |
| 56 | C-l -recenter | #c -ignore case | | 56 | C-l -recenter | #c -ignore case | |
| @@ -64,7 +64,7 @@ Normally, not a user option. See `ediff-help-message' for details.") | |||
| 64 | (defconst ediff-long-help-message-compare2 | 64 | (defconst ediff-long-help-message-compare2 |
| 65 | " | 65 | " |
| 66 | p,DEL -previous diff | | -vert/horiz split |a/b -copy A/B's region to B/A | 66 | p,DEL -previous diff | | -vert/horiz split |a/b -copy A/B's region to B/A |
| 67 | n,SPC -next diff | h -hilighting | rx -restore buf X's old diff | 67 | n,SPC -next diff | h -highlighting | rx -restore buf X's old diff |
| 68 | j -jump to diff | @ -auto-refinement | * -refine current region | 68 | j -jump to diff | @ -auto-refinement | * -refine current region |
| 69 | gx -goto X's point| ## -ignore whitespace | ! -update diff regions | 69 | gx -goto X's point| ## -ignore whitespace | ! -update diff regions |
| 70 | C-l -recenter | #c -ignore case | | 70 | C-l -recenter | #c -ignore case | |
| @@ -78,7 +78,7 @@ Normally, not a user option. See `ediff-help-message' for details.") | |||
| 78 | (defconst ediff-long-help-message-narrow2 | 78 | (defconst ediff-long-help-message-narrow2 |
| 79 | " | 79 | " |
| 80 | p,DEL -previous diff | | -vert/horiz split |a/b -copy A/B's region to B/A | 80 | p,DEL -previous diff | | -vert/horiz split |a/b -copy A/B's region to B/A |
| 81 | n,SPC -next diff | h -hilighting | rx -restore buf X's old diff | 81 | n,SPC -next diff | h -highlighting | rx -restore buf X's old diff |
| 82 | j -jump to diff | @ -auto-refinement | * -refine current region | 82 | j -jump to diff | @ -auto-refinement | * -refine current region |
| 83 | gx -goto X's point| ## -ignore whitespace | ! -update diff regions | 83 | gx -goto X's point| ## -ignore whitespace | ! -update diff regions |
| 84 | C-l -recenter | #c -ignore case | % -narrow/widen buffs | 84 | C-l -recenter | #c -ignore case | % -narrow/widen buffs |
| @@ -92,7 +92,7 @@ Normally, not a user option. See `ediff-help-message' for details.") | |||
| 92 | (defconst ediff-long-help-message-word-mode | 92 | (defconst ediff-long-help-message-word-mode |
| 93 | " | 93 | " |
| 94 | p,DEL -previous diff | | -vert/horiz split | xy -copy buf X's region to Y | 94 | p,DEL -previous diff | | -vert/horiz split | xy -copy buf X's region to Y |
| 95 | n,SPC -next diff | h -hilighting | rx -restore buf X's old diff | 95 | n,SPC -next diff | h -highlighting | rx -restore buf X's old diff |
| 96 | j -jump to diff | | | 96 | j -jump to diff | | |
| 97 | gx -goto X's point| % -narrow/widen buffs | ! -recompute diffs | 97 | gx -goto X's point| % -narrow/widen buffs | ! -recompute diffs |
| 98 | C-l -recenter | #c -ignore case | | 98 | C-l -recenter | #c -ignore case | |
| @@ -106,7 +106,7 @@ Normally, not a user option. See `ediff-help-message' for details.") | |||
| 106 | (defconst ediff-long-help-message-merge | 106 | (defconst ediff-long-help-message-merge |
| 107 | " | 107 | " |
| 108 | p,DEL -previous diff | | -vert/horiz split | x -copy buf X's region to C | 108 | p,DEL -previous diff | | -vert/horiz split | x -copy buf X's region to C |
| 109 | n,SPC -next diff | h -hilighting | r -restore buf C's old diff | 109 | n,SPC -next diff | h -highlighting | r -restore buf C's old diff |
| 110 | j -jump to diff | @ -auto-refinement | * -refine current region | 110 | j -jump to diff | @ -auto-refinement | * -refine current region |
| 111 | gx -goto X's point| ## -ignore whitespace | ! -update diff regions | 111 | gx -goto X's point| ## -ignore whitespace | ! -update diff regions |
| 112 | C-l -recenter | #f/#h -focus/hide regions | + -combine diff regions | 112 | C-l -recenter | #f/#h -focus/hide regions | + -combine diff regions |
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el index 5d7d2451422..b1c6e367ef7 100644 --- a/lisp/vc/ediff-util.el +++ b/lisp/vc/ediff-util.el | |||
| @@ -2635,7 +2635,7 @@ delete this buffer in another session as well." | |||
| 2635 | )) | 2635 | )) |
| 2636 | 2636 | ||
| 2637 | ;; Kill the variant buffer, according to user directives (ask, kill | 2637 | ;; Kill the variant buffer, according to user directives (ask, kill |
| 2638 | ;; unconditionaly, keep) | 2638 | ;; unconditionally, keep) |
| 2639 | ;; BUFF is the buffer, BUFF-TYPE is either 'A, or 'B, 'C, 'Ancestor | 2639 | ;; BUFF is the buffer, BUFF-TYPE is either 'A, or 'B, 'C, 'Ancestor |
| 2640 | (defun ediff-dispose-of-variant-according-to-user (buff bufftype ask keep-variants) | 2640 | (defun ediff-dispose-of-variant-according-to-user (buff bufftype ask keep-variants) |
| 2641 | ;; if this is indirect buffer, kill it and substitute with direct buf | 2641 | ;; if this is indirect buffer, kill it and substitute with direct buf |
| @@ -3811,7 +3811,7 @@ Ediff Control Panel to restore highlighting." | |||
| 3811 | ;; later, and nconc above will break it. Either this or use slow | 3811 | ;; later, and nconc above will break it. Either this or use slow |
| 3812 | ;; append instead of nconc | 3812 | ;; append instead of nconc |
| 3813 | (selected-buffers (ediff-get-selected-buffers)) | 3813 | (selected-buffers (ediff-get-selected-buffers)) |
| 3814 | (prefered-buffer (car all-buffers)) | 3814 | (preferred-buffer (car all-buffers)) |
| 3815 | visible-dired-buffers | 3815 | visible-dired-buffers |
| 3816 | (excl-buff-name-list | 3816 | (excl-buff-name-list |
| 3817 | (mapcar | 3817 | (mapcar |
| @@ -3841,7 +3841,7 @@ Ediff Control Panel to restore highlighting." | |||
| 3841 | (cond ((member (buffer-name x) excl-buff-name-list) nil) | 3841 | (cond ((member (buffer-name x) excl-buff-name-list) nil) |
| 3842 | ((memq x selected-buffers) x) | 3842 | ((memq x selected-buffers) x) |
| 3843 | ((not (ediff-get-visible-buffer-window x)) nil) | 3843 | ((not (ediff-get-visible-buffer-window x)) nil) |
| 3844 | ((eq x prefered-buffer) x) | 3844 | ((eq x preferred-buffer) x) |
| 3845 | ;; if prev selected buffer is dired, look only at | 3845 | ;; if prev selected buffer is dired, look only at |
| 3846 | ;; dired. | 3846 | ;; dired. |
| 3847 | ((eq use-dired-major-mode 'yes) | 3847 | ((eq use-dired-major-mode 'yes) |
diff --git a/lisp/vc/pcvs-defs.el b/lisp/vc/pcvs-defs.el index f6340392dc2..477cd472289 100644 --- a/lisp/vc/pcvs-defs.el +++ b/lisp/vc/pcvs-defs.el | |||
| @@ -493,7 +493,8 @@ It is expected to call the function.") | |||
| 493 | (define-key m [examine] | 493 | (define-key m [examine] |
| 494 | `(menu-item ,(purecopy "Examine Directory") cvs-examine | 494 | `(menu-item ,(purecopy "Examine Directory") cvs-examine |
| 495 | :help ,(purecopy "Examine the current state of a workarea"))) | 495 | :help ,(purecopy "Examine the current state of a workarea"))) |
| 496 | (fset 'cvs-global-menu m))) | 496 | (fset 'cvs-global-menu m)) |
| 497 | "Global menu used by PCL-CVS.") | ||
| 497 | 498 | ||
| 498 | 499 | ||
| 499 | ;; cvs-1.10 and above can take file arguments in other directories | 500 | ;; cvs-1.10 and above can take file arguments in other directories |
diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el index f6b6a56f31c..c5c0ce73b3a 100644 --- a/lisp/vc/vc-bzr.el +++ b/lisp/vc/vc-bzr.el | |||
| @@ -124,7 +124,8 @@ Use the current Bzr root directory as the ROOT argument to | |||
| 124 | ;; Used in the autoloaded vc-bzr-registered; see below. | 124 | ;; Used in the autoloaded vc-bzr-registered; see below. |
| 125 | ;;;###autoload | 125 | ;;;###autoload |
| 126 | (defconst vc-bzr-admin-checkout-format-file | 126 | (defconst vc-bzr-admin-checkout-format-file |
| 127 | (concat vc-bzr-admin-dirname "/checkout/format")) | 127 | (concat vc-bzr-admin-dirname "/checkout/format") |
| 128 | "Name of the format file in a .bzr directory.") | ||
| 128 | (defconst vc-bzr-admin-dirstate | 129 | (defconst vc-bzr-admin-dirstate |
| 129 | (concat vc-bzr-admin-dirname "/checkout/dirstate")) | 130 | (concat vc-bzr-admin-dirname "/checkout/dirstate")) |
| 130 | (defconst vc-bzr-admin-branch-format-file | 131 | (defconst vc-bzr-admin-branch-format-file |
diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el index 6a76359b5f7..7d6c3caf7ff 100644 --- a/lisp/vc/vc-cvs.el +++ b/lisp/vc/vc-cvs.el | |||
| @@ -189,7 +189,8 @@ See also variable `vc-cvs-sticky-date-format-string'." | |||
| 189 | ;;; State-querying functions | 189 | ;;; State-querying functions |
| 190 | ;;; | 190 | ;;; |
| 191 | 191 | ||
| 192 | ;;;###autoload (defun vc-cvs-registered (f) | 192 | ;;;###autoload(defun vc-cvs-registered (f) |
| 193 | ;;;###autoload "Return non-nil if file F is registered with CVS." | ||
| 193 | ;;;###autoload (when (file-readable-p (expand-file-name | 194 | ;;;###autoload (when (file-readable-p (expand-file-name |
| 194 | ;;;###autoload "CVS/Entries" (file-name-directory f))) | 195 | ;;;###autoload "CVS/Entries" (file-name-directory f))) |
| 195 | ;;;###autoload (load "vc-cvs") | 196 | ;;;###autoload (load "vc-cvs") |
diff --git a/lisp/vc/vc-mtn.el b/lisp/vc/vc-mtn.el index 0fc7ba96fb7..f49ad09b5d7 100644 --- a/lisp/vc/vc-mtn.el +++ b/lisp/vc/vc-mtn.el | |||
| @@ -59,9 +59,10 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 59 | (setq vc-handled-backends (delq 'Mtn vc-handled-backends))) | 59 | (setq vc-handled-backends (delq 'Mtn vc-handled-backends))) |
| 60 | 60 | ||
| 61 | ;;;###autoload | 61 | ;;;###autoload |
| 62 | (defconst vc-mtn-admin-dir "_MTN") | 62 | (defconst vc-mtn-admin-dir "_MTN" "Name of the monotone directory.") |
| 63 | ;;;###autoload | 63 | ;;;###autoload |
| 64 | (defconst vc-mtn-admin-format (concat vc-mtn-admin-dir "/format")) | 64 | (defconst vc-mtn-admin-format (concat vc-mtn-admin-dir "/format") |
| 65 | "Name of the monotone directory's format file.") | ||
| 65 | 66 | ||
| 66 | ;;;###autoload (defun vc-mtn-registered (file) | 67 | ;;;###autoload (defun vc-mtn-registered (file) |
| 67 | ;;;###autoload (if (vc-find-root file vc-mtn-admin-format) | 68 | ;;;###autoload (if (vc-find-root file vc-mtn-admin-format) |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index ed2bac17217..eea1a992094 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -181,7 +181,7 @@ | |||
| 181 | ;; * working-revision (file) | 181 | ;; * working-revision (file) |
| 182 | ;; | 182 | ;; |
| 183 | ;; Return the working revision of FILE. This is the revision fetched | 183 | ;; Return the working revision of FILE. This is the revision fetched |
| 184 | ;; by the last checkout or upate, not necessarily the same thing as the | 184 | ;; by the last checkout or update, not necessarily the same thing as the |
| 185 | ;; head or tip revision. Should return "0" for a file added but not yet | 185 | ;; head or tip revision. Should return "0" for a file added but not yet |
| 186 | ;; committed. | 186 | ;; committed. |
| 187 | ;; | 187 | ;; |