diff options
| author | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
| commit | f0f8d7b82492e741950c363a03b886965c91b1b0 (patch) | |
| tree | 19b716830b1ebabc0d7d75949c4e6800c0f104ad /lisp/vc | |
| parent | 9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff) | |
| parent | c818c29771d3cb51875643b2f6c894073e429dd2 (diff) | |
| download | emacs-feature/native-comp-macos-fixes.tar.gz emacs-feature/native-comp-macos-fixes.zip | |
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'lisp/vc')
| -rw-r--r-- | lisp/vc/diff-mode.el | 2 | ||||
| -rw-r--r-- | lisp/vc/ediff-init.el | 5 | ||||
| -rw-r--r-- | lisp/vc/ediff-util.el | 22 | ||||
| -rw-r--r-- | lisp/vc/vc-git.el | 18 | ||||
| -rw-r--r-- | lisp/vc/vc-hooks.el | 8 | ||||
| -rw-r--r-- | lisp/vc/vc-mtn.el | 1 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 3 |
7 files changed, 27 insertions, 32 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index d194d6c0a0e..bd5ac9b9a62 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el | |||
| @@ -2518,7 +2518,7 @@ fixed, visit it in a buffer." | |||
| 2518 | '((?+ . (left-fringe diff-fringe-add diff-indicator-added)) | 2518 | '((?+ . (left-fringe diff-fringe-add diff-indicator-added)) |
| 2519 | (?- . (left-fringe diff-fringe-del diff-indicator-removed)) | 2519 | (?- . (left-fringe diff-fringe-del diff-indicator-removed)) |
| 2520 | (?! . (left-fringe diff-fringe-rep diff-indicator-changed)) | 2520 | (?! . (left-fringe diff-fringe-rep diff-indicator-changed)) |
| 2521 | (?\s . (left-fringe diff-fringe-nul)))))) | 2521 | (?\s . (left-fringe diff-fringe-nul fringe)))))) |
| 2522 | (put-text-property (match-beginning 0) (match-end 0) 'display spec)))) | 2522 | (put-text-property (match-beginning 0) (match-end 0) 'display spec)))) |
| 2523 | ;; Mimicks the output of Magit's diff. | 2523 | ;; Mimicks the output of Magit's diff. |
| 2524 | ;; FIXME: This has only been tested with Git's diff output. | 2524 | ;; FIXME: This has only been tested with Git's diff output. |
diff --git a/lisp/vc/ediff-init.el b/lisp/vc/ediff-init.el index f5177bca112..04926af16ef 100644 --- a/lisp/vc/ediff-init.el +++ b/lisp/vc/ediff-init.el | |||
| @@ -1573,9 +1573,8 @@ This default should work without changes." | |||
| 1573 | 1573 | ||
| 1574 | 1574 | ||
| 1575 | (defun ediff-convert-standard-filename (fname) | 1575 | (defun ediff-convert-standard-filename (fname) |
| 1576 | (if (fboundp 'convert-standard-filename) | 1576 | (declare (obsolete convert-standard-filename "28.1")) |
| 1577 | (convert-standard-filename fname) | 1577 | (convert-standard-filename fname)) |
| 1578 | fname)) | ||
| 1579 | 1578 | ||
| 1580 | (define-obsolete-function-alias 'ediff-with-syntax-table | 1579 | (define-obsolete-function-alias 'ediff-with-syntax-table |
| 1581 | #'with-syntax-table "27.1") | 1580 | #'with-syntax-table "27.1") |
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el index 4a84c1ecd9c..f56d31c7136 100644 --- a/lisp/vc/ediff-util.el +++ b/lisp/vc/ediff-util.el | |||
| @@ -240,18 +240,16 @@ to invocation.") | |||
| 240 | startup-hooks setup-parameters | 240 | startup-hooks setup-parameters |
| 241 | &optional merge-buffer-file) | 241 | &optional merge-buffer-file) |
| 242 | (run-hooks 'ediff-before-setup-hook) | 242 | (run-hooks 'ediff-before-setup-hook) |
| 243 | ;; ediff-convert-standard-filename puts file names in the form appropriate | 243 | ;; convert-standard-filename puts file names in the form appropriate |
| 244 | ;; for the OS at hand. | 244 | ;; for the OS at hand. |
| 245 | (setq file-A (ediff-convert-standard-filename (expand-file-name file-A))) | 245 | (setq file-A (convert-standard-filename (expand-file-name file-A))) |
| 246 | (setq file-B (ediff-convert-standard-filename (expand-file-name file-B))) | 246 | (setq file-B (convert-standard-filename (expand-file-name file-B))) |
| 247 | (if (stringp file-C) | 247 | (if (stringp file-C) |
| 248 | (setq file-C | 248 | (setq file-C (convert-standard-filename (expand-file-name file-C)))) |
| 249 | (ediff-convert-standard-filename (expand-file-name file-C)))) | ||
| 250 | (if (stringp merge-buffer-file) | 249 | (if (stringp merge-buffer-file) |
| 251 | (progn | 250 | (progn |
| 252 | (setq merge-buffer-file | 251 | (setq merge-buffer-file |
| 253 | (ediff-convert-standard-filename | 252 | (convert-standard-filename (expand-file-name merge-buffer-file))) |
| 254 | (expand-file-name merge-buffer-file))) | ||
| 255 | ;; check the directory exists | 253 | ;; check the directory exists |
| 256 | (or (file-exists-p (file-name-directory merge-buffer-file)) | 254 | (or (file-exists-p (file-name-directory merge-buffer-file)) |
| 257 | (error "Directory %s given as place to save the merge doesn't exist" | 255 | (error "Directory %s given as place to save the merge doesn't exist" |
| @@ -3069,10 +3067,8 @@ Hit \\[ediff-recenter] to reset the windows afterward." | |||
| 3069 | 3067 | ||
| 3070 | 3068 | ||
| 3071 | ;; for compatibility | 3069 | ;; for compatibility |
| 3072 | (defmacro ediff-minibuffer-with-setup-hook (fun &rest body) | 3070 | (define-obsolete-function-alias 'ediff-minibuffer-with-setup-hook |
| 3073 | `(if (fboundp 'minibuffer-with-setup-hook) | 3071 | #'minibuffer-with-setup-hook "28.1") |
| 3074 | (minibuffer-with-setup-hook ,fun ,@body) | ||
| 3075 | ,@body)) | ||
| 3076 | 3072 | ||
| 3077 | ;; This is adapted from a similar function in `emerge.el'. | 3073 | ;; This is adapted from a similar function in `emerge.el'. |
| 3078 | ;; PROMPT should not have a trailing ': ', so that it can be modified | 3074 | ;; PROMPT should not have a trailing ': ', so that it can be modified |
| @@ -3101,7 +3097,7 @@ Hit \\[ediff-recenter] to reset the windows afterward." | |||
| 3101 | (and default-file (list default-file)) | 3097 | (and default-file (list default-file)) |
| 3102 | default-dir))) | 3098 | default-dir))) |
| 3103 | f) | 3099 | f) |
| 3104 | (setq f (ediff-minibuffer-with-setup-hook | 3100 | (setq f (minibuffer-with-setup-hook |
| 3105 | (lambda () (when defaults | 3101 | (lambda () (when defaults |
| 3106 | (setq minibuffer-default defaults))) | 3102 | (setq minibuffer-default defaults))) |
| 3107 | (read-file-name | 3103 | (read-file-name |
| @@ -3134,7 +3130,7 @@ Hit \\[ediff-recenter] to reset the windows afterward." | |||
| 3134 | ;; Also, save buffer from START to END in the file. | 3130 | ;; Also, save buffer from START to END in the file. |
| 3135 | ;; START defaults to (point-min), END to (point-max) | 3131 | ;; START defaults to (point-min), END to (point-max) |
| 3136 | (defun ediff-make-temp-file (buff &optional prefix given-file start end) | 3132 | (defun ediff-make-temp-file (buff &optional prefix given-file start end) |
| 3137 | (let* ((p (ediff-convert-standard-filename (or prefix "ediff"))) | 3133 | (let* ((p (convert-standard-filename (or prefix "ediff"))) |
| 3138 | (short-p p) | 3134 | (short-p p) |
| 3139 | (coding-system-for-write ediff-coding-system-for-write) | 3135 | (coding-system-for-write ediff-coding-system-for-write) |
| 3140 | f short-f) | 3136 | f short-f) |
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 78a2fa08795..84aeb0a1105 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el | |||
| @@ -210,6 +210,16 @@ toggle display of the entire list." | |||
| 210 | widget)))) | 210 | widget)))) |
| 211 | :version "27.1") | 211 | :version "27.1") |
| 212 | 212 | ||
| 213 | (defcustom vc-git-revision-complete-only-branches nil | ||
| 214 | "Control whether tags are returned by revision completion for Git. | ||
| 215 | |||
| 216 | When non-nil, only branches and remotes will be returned by | ||
| 217 | `vc-git-revision-completion-table'. This is used by various VC | ||
| 218 | commands when completing branch names. When nil, tags are also | ||
| 219 | included in the completions." | ||
| 220 | :type 'boolean | ||
| 221 | :version "28.1") | ||
| 222 | |||
| 213 | ;; History of Git commands. | 223 | ;; History of Git commands. |
| 214 | (defvar vc-git-history nil) | 224 | (defvar vc-git-history nil) |
| 215 | 225 | ||
| @@ -1415,9 +1425,11 @@ This requires git 1.8.4 or later, for the \"-L\" option of \"git log\"." | |||
| 1415 | (with-temp-buffer | 1425 | (with-temp-buffer |
| 1416 | (vc-git-command t nil nil "for-each-ref" "--format=%(refname)") | 1426 | (vc-git-command t nil nil "for-each-ref" "--format=%(refname)") |
| 1417 | (goto-char (point-min)) | 1427 | (goto-char (point-min)) |
| 1418 | (while (re-search-forward "^refs/\\(heads\\|tags\\|remotes\\)/\\(.*\\)$" | 1428 | (let ((regexp (if vc-git-revision-complete-only-branches |
| 1419 | nil t) | 1429 | "^refs/\\(heads\\|remotes\\)/\\(.*\\)$" |
| 1420 | (push (match-string 2) table))) | 1430 | "^refs/\\(heads\\|tags\\|remotes\\)/\\(.*\\)$"))) |
| 1431 | (while (re-search-forward regexp nil t) | ||
| 1432 | (push (match-string 2) table)))) | ||
| 1421 | table)) | 1433 | table)) |
| 1422 | 1434 | ||
| 1423 | (defun vc-git-revision-completion-table (files) | 1435 | (defun vc-git-revision-completion-table (files) |
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el index ce72a49b955..f09ceddcb37 100644 --- a/lisp/vc/vc-hooks.el +++ b/lisp/vc/vc-hooks.el | |||
| @@ -505,14 +505,6 @@ If FILE is not registered, this function always returns nil." | |||
| 505 | (vc-call-backend | 505 | (vc-call-backend |
| 506 | backend 'working-revision file)))))) | 506 | backend 'working-revision file)))))) |
| 507 | 507 | ||
| 508 | ;; Backward compatibility. | ||
| 509 | (define-obsolete-function-alias | ||
| 510 | 'vc-workfile-version 'vc-working-revision "23.1") | ||
| 511 | (defun vc-default-working-revision (backend file) | ||
| 512 | (message | ||
| 513 | "`working-revision' not found: using the old `workfile-version' instead") | ||
| 514 | (vc-call-backend backend 'workfile-version file)) | ||
| 515 | |||
| 516 | (defun vc-default-registered (backend file) | 508 | (defun vc-default-registered (backend file) |
| 517 | "Check if FILE is registered in BACKEND using vc-BACKEND-master-templates." | 509 | "Check if FILE is registered in BACKEND using vc-BACKEND-master-templates." |
| 518 | (let ((sym (vc-make-backend-sym backend 'master-templates))) | 510 | (let ((sym (vc-make-backend-sym backend 'master-templates))) |
diff --git a/lisp/vc/vc-mtn.el b/lisp/vc/vc-mtn.el index 092d8b53968..3c26ffc0e58 100644 --- a/lisp/vc/vc-mtn.el +++ b/lisp/vc/vc-mtn.el | |||
| @@ -60,7 +60,6 @@ switches." | |||
| 60 | :version "25.1" | 60 | :version "25.1" |
| 61 | :group 'vc-mtn) | 61 | :group 'vc-mtn) |
| 62 | 62 | ||
| 63 | (define-obsolete-variable-alias 'vc-mtn-command 'vc-mtn-program "23.1") | ||
| 64 | (defcustom vc-mtn-program "mtn" | 63 | (defcustom vc-mtn-program "mtn" |
| 65 | "Name of the monotone executable." | 64 | "Name of the monotone executable." |
| 66 | :type 'string | 65 | :type 'string |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 65775f8e46e..5561292d8c0 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -2710,9 +2710,6 @@ to the working revision (except for keyword expansion)." | |||
| 2710 | (message "Reverting %s...done" (vc-delistify files))))) | 2710 | (message "Reverting %s...done" (vc-delistify files))))) |
| 2711 | 2711 | ||
| 2712 | ;;;###autoload | 2712 | ;;;###autoload |
| 2713 | (define-obsolete-function-alias 'vc-revert-buffer 'vc-revert "23.1") | ||
| 2714 | |||
| 2715 | ;;;###autoload | ||
| 2716 | (defun vc-pull (&optional arg) | 2713 | (defun vc-pull (&optional arg) |
| 2717 | "Update the current fileset or branch. | 2714 | "Update the current fileset or branch. |
| 2718 | You must be visiting a version controlled file, or in a `vc-dir' buffer. | 2715 | You must be visiting a version controlled file, or in a `vc-dir' buffer. |