diff options
| author | Xue Fuqiao | 2013-09-04 08:39:34 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-09-04 08:39:34 +0800 |
| commit | adf2fc4a01efe77d73cd52bc9173914ed56ff531 (patch) | |
| tree | a5a280a5554a7bffeaf94fccae29fa3ac1a5d066 /lisp/vc | |
| parent | 63191d9f2043d2e67657e85a7b3842805dd1dad6 (diff) | |
| parent | 38726039b77db432989fed106c88e9f1aa463281 (diff) | |
| download | emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.tar.gz emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.zip | |
Merge from mainline.
Diffstat (limited to 'lisp/vc')
| -rw-r--r-- | lisp/vc/add-log.el | 6 | ||||
| -rw-r--r-- | lisp/vc/compare-w.el | 2 | ||||
| -rw-r--r-- | lisp/vc/ediff-help.el | 2 | ||||
| -rw-r--r-- | lisp/vc/ediff-util.el | 8 | ||||
| -rw-r--r-- | lisp/vc/ediff-wind.el | 6 | ||||
| -rw-r--r-- | lisp/vc/ediff.el | 2 | ||||
| -rw-r--r-- | lisp/vc/emerge.el | 2 | ||||
| -rw-r--r-- | lisp/vc/pcvs-util.el | 6 | ||||
| -rw-r--r-- | lisp/vc/smerge-mode.el | 21 | ||||
| -rw-r--r-- | lisp/vc/vc-git.el | 13 | ||||
| -rw-r--r-- | lisp/vc/vc-hooks.el | 8 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 13 |
12 files changed, 43 insertions, 46 deletions
diff --git a/lisp/vc/add-log.el b/lisp/vc/add-log.el index f0ea9c68464..f926a164797 100644 --- a/lisp/vc/add-log.el +++ b/lisp/vc/add-log.el | |||
| @@ -813,12 +813,12 @@ non-nil, otherwise in local time." | |||
| 813 | 813 | ||
| 814 | (unless (equal file-name buffer-file-name) | 814 | (unless (equal file-name buffer-file-name) |
| 815 | (cond | 815 | (cond |
| 816 | ((equal file-name (buffer-file-name (window-buffer (selected-window)))) | 816 | ((equal file-name (buffer-file-name (window-buffer))) |
| 817 | ;; If the selected window already shows the desired buffer don't show | 817 | ;; If the selected window already shows the desired buffer don't show |
| 818 | ;; it again (particularly important if other-window is true). | 818 | ;; it again (particularly important if other-window is true). |
| 819 | ;; This is important for diff-add-change-log-entries-other-window. | 819 | ;; This is important for diff-add-change-log-entries-other-window. |
| 820 | (set-buffer (window-buffer (selected-window)))) | 820 | (set-buffer (window-buffer))) |
| 821 | ((or other-window (window-dedicated-p (selected-window))) | 821 | ((or other-window (window-dedicated-p)) |
| 822 | (find-file-other-window file-name)) | 822 | (find-file-other-window file-name)) |
| 823 | (t (find-file file-name)))) | 823 | (t (find-file file-name)))) |
| 824 | (or (derived-mode-p 'change-log-mode) | 824 | (or (derived-mode-p 'change-log-mode) |
diff --git a/lisp/vc/compare-w.el b/lisp/vc/compare-w.el index ae4fcc99a25..235ebe5a072 100644 --- a/lisp/vc/compare-w.el +++ b/lisp/vc/compare-w.el | |||
| @@ -179,7 +179,7 @@ on third call it again advances points to the next difference and so on." | |||
| 179 | 'compare-windows-sync-regexp | 179 | 'compare-windows-sync-regexp |
| 180 | compare-windows-sync))) | 180 | compare-windows-sync))) |
| 181 | (setq p1 (point) b1 (current-buffer)) | 181 | (setq p1 (point) b1 (current-buffer)) |
| 182 | (setq w2 (next-window (selected-window))) | 182 | (setq w2 (next-window)) |
| 183 | (if (eq w2 (selected-window)) | 183 | (if (eq w2 (selected-window)) |
| 184 | (setq w2 (next-window (selected-window) nil 'visible))) | 184 | (setq w2 (next-window (selected-window) nil 'visible))) |
| 185 | (if (eq w2 (selected-window)) | 185 | (if (eq w2 (selected-window)) |
diff --git a/lisp/vc/ediff-help.el b/lisp/vc/ediff-help.el index 833e84b6cea..78d1a6abfd1 100644 --- a/lisp/vc/ediff-help.el +++ b/lisp/vc/ediff-help.el | |||
| @@ -253,7 +253,7 @@ the value of this variable and the variables `ediff-help-message-*' in | |||
| 253 | 253 | ||
| 254 | 254 | ||
| 255 | (defun ediff-indent-help-message () | 255 | (defun ediff-indent-help-message () |
| 256 | (let* ((shift (/ (max 0 (- (window-width (selected-window)) | 256 | (let* ((shift (/ (max 0 (- (window-width) |
| 257 | (ediff-help-message-line-length))) | 257 | (ediff-help-message-line-length))) |
| 258 | 2)) | 258 | 2)) |
| 259 | (str (make-string shift ?\ ))) | 259 | (str (make-string shift ?\ ))) |
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el index ec227f44e8f..2f2c71a71e6 100644 --- a/lisp/vc/ediff-util.el +++ b/lisp/vc/ediff-util.el | |||
| @@ -537,7 +537,7 @@ to invocation.") | |||
| 537 | ;; to reside. | 537 | ;; to reside. |
| 538 | (defun ediff-setup-control-buffer (ctl-buf) | 538 | (defun ediff-setup-control-buffer (ctl-buf) |
| 539 | "Set up window for control buffer." | 539 | "Set up window for control buffer." |
| 540 | (if (window-dedicated-p (selected-window)) | 540 | (if (window-dedicated-p) |
| 541 | (set-buffer ctl-buf) ; we are in control frame but just in case | 541 | (set-buffer ctl-buf) ; we are in control frame but just in case |
| 542 | (switch-to-buffer ctl-buf)) | 542 | (switch-to-buffer ctl-buf)) |
| 543 | (let ((window-min-height 2)) | 543 | (let ((window-min-height 2)) |
| @@ -1629,7 +1629,7 @@ the width of the A/B/C windows." | |||
| 1629 | (setq lines (1+ lines))) | 1629 | (setq lines (1+ lines))) |
| 1630 | ;; And position the beginning on the right line | 1630 | ;; And position the beginning on the right line |
| 1631 | (goto-char beg) | 1631 | (goto-char beg) |
| 1632 | (recenter (/ (1+ (max (- (1- (window-height (selected-window))) | 1632 | (recenter (/ (1+ (max (- (1- (window-height)) |
| 1633 | lines) | 1633 | lines) |
| 1634 | 1) | 1634 | 1) |
| 1635 | ) | 1635 | ) |
| @@ -2818,7 +2818,7 @@ Hit \\[ediff-recenter] to reset the windows afterward." | |||
| 2818 | (with-output-to-temp-buffer ediff-msg-buffer | 2818 | (with-output-to-temp-buffer ediff-msg-buffer |
| 2819 | (ediff-with-current-buffer standard-output | 2819 | (ediff-with-current-buffer standard-output |
| 2820 | (fundamental-mode)) | 2820 | (fundamental-mode)) |
| 2821 | (raise-frame (selected-frame)) | 2821 | (raise-frame) |
| 2822 | (princ (ediff-version)) | 2822 | (princ (ediff-version)) |
| 2823 | (princ "\n\n") | 2823 | (princ "\n\n") |
| 2824 | (ediff-with-current-buffer ediff-buffer-A | 2824 | (ediff-with-current-buffer ediff-buffer-A |
| @@ -3468,7 +3468,7 @@ Without an argument, it saves customized diff argument, if available | |||
| 3468 | (ediff-with-current-buffer buf | 3468 | (ediff-with-current-buffer buf |
| 3469 | (goto-char (point-min))) | 3469 | (goto-char (point-min))) |
| 3470 | (switch-to-buffer buf) | 3470 | (switch-to-buffer buf) |
| 3471 | (raise-frame (selected-frame))))) | 3471 | (raise-frame)))) |
| 3472 | (if (frame-live-p ediff-control-frame) | 3472 | (if (frame-live-p ediff-control-frame) |
| 3473 | (ediff-reset-mouse ediff-control-frame)) | 3473 | (ediff-reset-mouse ediff-control-frame)) |
| 3474 | (if (window-live-p ediff-control-window) | 3474 | (if (window-live-p ediff-control-window) |
diff --git a/lisp/vc/ediff-wind.el b/lisp/vc/ediff-wind.el index 124bdbd26df..5a14c193344 100644 --- a/lisp/vc/ediff-wind.el +++ b/lisp/vc/ediff-wind.el | |||
| @@ -861,7 +861,7 @@ into icons, regardless of the window manager." | |||
| 861 | ;; create a new splittable frame if none is found | 861 | ;; create a new splittable frame if none is found |
| 862 | (defun ediff-skip-unsuitable-frames (&optional ok-unsplittable) | 862 | (defun ediff-skip-unsuitable-frames (&optional ok-unsplittable) |
| 863 | (if (ediff-window-display-p) | 863 | (if (ediff-window-display-p) |
| 864 | (let ((wind-frame (window-frame (selected-window))) | 864 | (let ((wind-frame (window-frame)) |
| 865 | seen-windows) | 865 | seen-windows) |
| 866 | (while (and (not (memq (selected-window) seen-windows)) | 866 | (while (and (not (memq (selected-window) seen-windows)) |
| 867 | (or | 867 | (or |
| @@ -877,7 +877,7 @@ into icons, regardless of the window manager." | |||
| 877 | (setq seen-windows (cons (selected-window) seen-windows)) | 877 | (setq seen-windows (cons (selected-window) seen-windows)) |
| 878 | ;; try new window | 878 | ;; try new window |
| 879 | (other-window 1 t) | 879 | (other-window 1 t) |
| 880 | (setq wind-frame (window-frame (selected-window))) | 880 | (setq wind-frame (window-frame)) |
| 881 | ) | 881 | ) |
| 882 | (if (memq (selected-window) seen-windows) | 882 | (if (memq (selected-window) seen-windows) |
| 883 | ;; fed up, no appropriate frames | 883 | ;; fed up, no appropriate frames |
| @@ -939,7 +939,7 @@ into icons, regardless of the window manager." | |||
| 939 | 939 | ||
| 940 | (setq ctl-frame-iconified-p (ediff-frame-iconified-p ctl-frame)) | 940 | (setq ctl-frame-iconified-p (ediff-frame-iconified-p ctl-frame)) |
| 941 | (select-frame ctl-frame) | 941 | (select-frame ctl-frame) |
| 942 | (if (window-dedicated-p (selected-window)) | 942 | (if (window-dedicated-p) |
| 943 | () | 943 | () |
| 944 | (delete-other-windows) | 944 | (delete-other-windows) |
| 945 | (switch-to-buffer ctl-buffer)) | 945 | (switch-to-buffer ctl-buffer)) |
diff --git a/lisp/vc/ediff.el b/lisp/vc/ediff.el index e9a6a97409c..d35c3e53e9a 100644 --- a/lisp/vc/ediff.el +++ b/lisp/vc/ediff.el | |||
| @@ -1499,7 +1499,7 @@ With optional NODE, goes to that node." | |||
| 1499 | (if node | 1499 | (if node |
| 1500 | (Info-goto-node node) | 1500 | (Info-goto-node node) |
| 1501 | (message "Type `i' to search for a specific topic")) | 1501 | (message "Type `i' to search for a specific topic")) |
| 1502 | (raise-frame (selected-frame))) | 1502 | (raise-frame)) |
| 1503 | (error (beep 1) | 1503 | (error (beep 1) |
| 1504 | (with-output-to-temp-buffer ediff-msg-buffer | 1504 | (with-output-to-temp-buffer ediff-msg-buffer |
| 1505 | (ediff-with-current-buffer standard-output | 1505 | (ediff-with-current-buffer standard-output |
diff --git a/lisp/vc/emerge.el b/lisp/vc/emerge.el index 0a1bd044125..8d0e8efc75c 100644 --- a/lisp/vc/emerge.el +++ b/lisp/vc/emerge.el | |||
| @@ -1770,7 +1770,7 @@ to the left margin, if they are in windows." | |||
| 1770 | (setq lines (1+ lines))) | 1770 | (setq lines (1+ lines))) |
| 1771 | ;; And position the beginning on the right line | 1771 | ;; And position the beginning on the right line |
| 1772 | (goto-char beg) | 1772 | (goto-char beg) |
| 1773 | (recenter (/ (1+ (- (1- (window-height (selected-window))) | 1773 | (recenter (/ (1+ (- (1- (window-height)) |
| 1774 | lines)) | 1774 | lines)) |
| 1775 | 2)))))) | 1775 | 2)))))) |
| 1776 | (goto-char pos)) | 1776 | (goto-char pos)) |
diff --git a/lisp/vc/pcvs-util.el b/lisp/vc/pcvs-util.el index 28ae4ed3de3..2868bb98b29 100644 --- a/lisp/vc/pcvs-util.el +++ b/lisp/vc/pcvs-util.el | |||
| @@ -97,7 +97,7 @@ try to split a new window instead." | |||
| 97 | BUF is assumed to be a temporary buffer used from the buffer MAINBUF." | 97 | BUF is assumed to be a temporary buffer used from the buffer MAINBUF." |
| 98 | (interactive (list (current-buffer))) | 98 | (interactive (list (current-buffer))) |
| 99 | (save-current-buffer | 99 | (save-current-buffer |
| 100 | (let ((win (if (eq buf (window-buffer (selected-window))) (selected-window) | 100 | (let ((win (if (eq buf (window-buffer)) (selected-window) |
| 101 | (get-buffer-window buf t)))) | 101 | (get-buffer-window buf t)))) |
| 102 | (when win | 102 | (when win |
| 103 | (if (window-dedicated-p win) | 103 | (if (window-dedicated-p win) |
| @@ -111,8 +111,8 @@ BUF is assumed to be a temporary buffer used from the buffer MAINBUF." | |||
| 111 | ;;; ) | 111 | ;;; ) |
| 112 | ))) | 112 | ))) |
| 113 | (with-current-buffer buf | 113 | (with-current-buffer buf |
| 114 | (bury-buffer (unless (and (eq buf (window-buffer (selected-window))) | 114 | (bury-buffer (unless (and (eq buf (window-buffer)) |
| 115 | (not (window-dedicated-p (selected-window)))) | 115 | (not (window-dedicated-p))) |
| 116 | buf))) | 116 | buf))) |
| 117 | (when mainbuf | 117 | (when mainbuf |
| 118 | (let ((mainwin (or (get-buffer-window mainbuf) | 118 | (let ((mainwin (or (get-buffer-window mainbuf) |
diff --git a/lisp/vc/smerge-mode.el b/lisp/vc/smerge-mode.el index f61e97216a9..87336b6a357 100644 --- a/lisp/vc/smerge-mode.el +++ b/lisp/vc/smerge-mode.el | |||
| @@ -57,7 +57,6 @@ | |||
| 57 | 57 | ||
| 58 | (defcustom smerge-diff-buffer-name "*vc-diff*" | 58 | (defcustom smerge-diff-buffer-name "*vc-diff*" |
| 59 | "Buffer name to use for displaying diffs." | 59 | "Buffer name to use for displaying diffs." |
| 60 | :group 'smerge | ||
| 61 | :type '(choice | 60 | :type '(choice |
| 62 | (const "*vc-diff*") | 61 | (const "*vc-diff*") |
| 63 | (const "*cvs-diff*") | 62 | (const "*cvs-diff*") |
| @@ -69,12 +68,10 @@ | |||
| 69 | (if (listp diff-switches) diff-switches (list diff-switches))) | 68 | (if (listp diff-switches) diff-switches (list diff-switches))) |
| 70 | "A list of strings specifying switches to be passed to diff. | 69 | "A list of strings specifying switches to be passed to diff. |
| 71 | Used in `smerge-diff-base-mine' and related functions." | 70 | Used in `smerge-diff-base-mine' and related functions." |
| 72 | :group 'smerge | ||
| 73 | :type '(repeat string)) | 71 | :type '(repeat string)) |
| 74 | 72 | ||
| 75 | (defcustom smerge-auto-leave t | 73 | (defcustom smerge-auto-leave t |
| 76 | "Non-nil means to leave `smerge-mode' when the last conflict is resolved." | 74 | "Non-nil means to leave `smerge-mode' when the last conflict is resolved." |
| 77 | :group 'smerge | ||
| 78 | :type 'boolean) | 75 | :type 'boolean) |
| 79 | 76 | ||
| 80 | (defface smerge-mine | 77 | (defface smerge-mine |
| @@ -84,8 +81,7 @@ Used in `smerge-diff-base-mine' and related functions." | |||
| 84 | :background "#553333") | 81 | :background "#553333") |
| 85 | (((class color)) | 82 | (((class color)) |
| 86 | :foreground "red")) | 83 | :foreground "red")) |
| 87 | "Face for your code." | 84 | "Face for your code.") |
| 88 | :group 'smerge) | ||
| 89 | (define-obsolete-face-alias 'smerge-mine-face 'smerge-mine "22.1") | 85 | (define-obsolete-face-alias 'smerge-mine-face 'smerge-mine "22.1") |
| 90 | (defvar smerge-mine-face 'smerge-mine) | 86 | (defvar smerge-mine-face 'smerge-mine) |
| 91 | 87 | ||
| @@ -96,8 +92,7 @@ Used in `smerge-diff-base-mine' and related functions." | |||
| 96 | :background "#335533") | 92 | :background "#335533") |
| 97 | (((class color)) | 93 | (((class color)) |
| 98 | :foreground "green")) | 94 | :foreground "green")) |
| 99 | "Face for the other code." | 95 | "Face for the other code.") |
| 100 | :group 'smerge) | ||
| 101 | (define-obsolete-face-alias 'smerge-other-face 'smerge-other "22.1") | 96 | (define-obsolete-face-alias 'smerge-other-face 'smerge-other "22.1") |
| 102 | (defvar smerge-other-face 'smerge-other) | 97 | (defvar smerge-other-face 'smerge-other) |
| 103 | 98 | ||
| @@ -108,8 +103,7 @@ Used in `smerge-diff-base-mine' and related functions." | |||
| 108 | :background "#888833") | 103 | :background "#888833") |
| 109 | (((class color)) | 104 | (((class color)) |
| 110 | :foreground "yellow")) | 105 | :foreground "yellow")) |
| 111 | "Face for the base code." | 106 | "Face for the base code.") |
| 112 | :group 'smerge) | ||
| 113 | (define-obsolete-face-alias 'smerge-base-face 'smerge-base "22.1") | 107 | (define-obsolete-face-alias 'smerge-base-face 'smerge-base "22.1") |
| 114 | (defvar smerge-base-face 'smerge-base) | 108 | (defvar smerge-base-face 'smerge-base) |
| 115 | 109 | ||
| @@ -118,15 +112,13 @@ Used in `smerge-diff-base-mine' and related functions." | |||
| 118 | (:background "grey85")) | 112 | (:background "grey85")) |
| 119 | (((background dark)) | 113 | (((background dark)) |
| 120 | (:background "grey30"))) | 114 | (:background "grey30"))) |
| 121 | "Face for the conflict markers." | 115 | "Face for the conflict markers.") |
| 122 | :group 'smerge) | ||
| 123 | (define-obsolete-face-alias 'smerge-markers-face 'smerge-markers "22.1") | 116 | (define-obsolete-face-alias 'smerge-markers-face 'smerge-markers "22.1") |
| 124 | (defvar smerge-markers-face 'smerge-markers) | 117 | (defvar smerge-markers-face 'smerge-markers) |
| 125 | 118 | ||
| 126 | (defface smerge-refined-change | 119 | (defface smerge-refined-change |
| 127 | '((t nil)) | 120 | '((t nil)) |
| 128 | "Face used for char-based changes shown by `smerge-refine'." | 121 | "Face used for char-based changes shown by `smerge-refine'.") |
| 129 | :group 'smerge) | ||
| 130 | 122 | ||
| 131 | (defface smerge-refined-removed | 123 | (defface smerge-refined-removed |
| 132 | '((default | 124 | '((default |
| @@ -137,7 +129,6 @@ Used in `smerge-diff-base-mine' and related functions." | |||
| 137 | :background "#aa2222") | 129 | :background "#aa2222") |
| 138 | (t :inverse-video t)) | 130 | (t :inverse-video t)) |
| 139 | "Face used for removed characters shown by `smerge-refine'." | 131 | "Face used for removed characters shown by `smerge-refine'." |
| 140 | :group 'smerge | ||
| 141 | :version "24.3") | 132 | :version "24.3") |
| 142 | 133 | ||
| 143 | (defface smerge-refined-added | 134 | (defface smerge-refined-added |
| @@ -149,7 +140,6 @@ Used in `smerge-diff-base-mine' and related functions." | |||
| 149 | :background "#22aa22") | 140 | :background "#22aa22") |
| 150 | (t :inverse-video t)) | 141 | (t :inverse-video t)) |
| 151 | "Face used for added characters shown by `smerge-refine'." | 142 | "Face used for added characters shown by `smerge-refine'." |
| 152 | :group 'smerge | ||
| 153 | :version "24.3") | 143 | :version "24.3") |
| 154 | 144 | ||
| 155 | (easy-mmode-defmap smerge-basic-map | 145 | (easy-mmode-defmap smerge-basic-map |
| @@ -172,7 +162,6 @@ Used in `smerge-diff-base-mine' and related functions." | |||
| 172 | 162 | ||
| 173 | (defcustom smerge-command-prefix "\C-c^" | 163 | (defcustom smerge-command-prefix "\C-c^" |
| 174 | "Prefix for `smerge-mode' commands." | 164 | "Prefix for `smerge-mode' commands." |
| 175 | :group 'smerge | ||
| 176 | :type '(choice (const :tag "ESC" "\e") | 165 | :type '(choice (const :tag "ESC" "\e") |
| 177 | (const :tag "C-c ^" "\C-c^" ) | 166 | (const :tag "C-c ^" "\C-c^" ) |
| 178 | (const :tag "none" "") | 167 | (const :tag "none" "") |
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 07b7d15299f..7e555825e38 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el | |||
| @@ -649,11 +649,18 @@ If toggling on, also insert its message into the buffer." | |||
| 649 | It is based on `log-edit-mode', and has Git-specific extensions.") | 649 | It is based on `log-edit-mode', and has Git-specific extensions.") |
| 650 | 650 | ||
| 651 | (defun vc-git-checkin (files _rev comment) | 651 | (defun vc-git-checkin (files _rev comment) |
| 652 | (let ((coding-system-for-write vc-git-commits-coding-system)) | 652 | (let* ((file1 (or (car files) default-directory)) |
| 653 | (root (vc-git-root file1)) | ||
| 654 | (default-directory (expand-file-name root)) | ||
| 655 | (only (or (cdr files) | ||
| 656 | (not (equal root (abbreviate-file-name file1))))) | ||
| 657 | (coding-system-for-write vc-git-commits-coding-system)) | ||
| 653 | (cl-flet ((boolean-arg-fn | 658 | (cl-flet ((boolean-arg-fn |
| 654 | (argument) | 659 | (argument) |
| 655 | (lambda (value) (when (equal value "yes") (list argument))))) | 660 | (lambda (value) (when (equal value "yes") (list argument))))) |
| 656 | (apply 'vc-git-command nil 0 files | 661 | ;; When operating on the whole tree, better pass nil than ".", since "." |
| 662 | ;; fails when we're committing a merge. | ||
| 663 | (apply 'vc-git-command nil 0 (if only files) | ||
| 657 | (nconc (list "commit" "-m") | 664 | (nconc (list "commit" "-m") |
| 658 | (log-edit-extract-headers | 665 | (log-edit-extract-headers |
| 659 | `(("Author" . "--author") | 666 | `(("Author" . "--author") |
| @@ -661,7 +668,7 @@ It is based on `log-edit-mode', and has Git-specific extensions.") | |||
| 661 | ("Amend" . ,(boolean-arg-fn "--amend")) | 668 | ("Amend" . ,(boolean-arg-fn "--amend")) |
| 662 | ("Sign-Off" . ,(boolean-arg-fn "--signoff"))) | 669 | ("Sign-Off" . ,(boolean-arg-fn "--signoff"))) |
| 663 | comment) | 670 | comment) |
| 664 | (list "--only" "--")))))) | 671 | (if only (list "--only" "--"))))))) |
| 665 | 672 | ||
| 666 | (defun vc-git-find-revision (file rev buffer) | 673 | (defun vc-git-find-revision (file rev buffer) |
| 667 | (let* (process-file-side-effects | 674 | (let* (process-file-side-effects |
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el index ae9aa0118ae..c47bc4c7f97 100644 --- a/lisp/vc/vc-hooks.el +++ b/lisp/vc/vc-hooks.el | |||
| @@ -190,7 +190,7 @@ individually should stay local." | |||
| 190 | (make-variable-buffer-local 'vc-mode) | 190 | (make-variable-buffer-local 'vc-mode) |
| 191 | (put 'vc-mode 'permanent-local t) | 191 | (put 'vc-mode 'permanent-local t) |
| 192 | 192 | ||
| 193 | (defun vc-mode (&optional arg) | 193 | (defun vc-mode (&optional _arg) |
| 194 | ;; Dummy function for C-h m | 194 | ;; Dummy function for C-h m |
| 195 | "Version Control minor mode. | 195 | "Version Control minor mode. |
| 196 | This minor mode is automatically activated whenever you visit a file under | 196 | This minor mode is automatically activated whenever you visit a file under |
| @@ -631,7 +631,7 @@ this function." | |||
| 631 | (define-obsolete-function-alias | 631 | (define-obsolete-function-alias |
| 632 | 'vc-toggle-read-only 'toggle-read-only "24.1") | 632 | 'vc-toggle-read-only 'toggle-read-only "24.1") |
| 633 | 633 | ||
| 634 | (defun vc-default-make-version-backups-p (backend file) | 634 | (defun vc-default-make-version-backups-p (_backend _file) |
| 635 | "Return non-nil if unmodified versions should be backed up locally. | 635 | "Return non-nil if unmodified versions should be backed up locally. |
| 636 | The default is to switch off this feature." | 636 | The default is to switch off this feature." |
| 637 | nil) | 637 | nil) |
| @@ -834,7 +834,7 @@ current, and kill the buffer that visits the link." | |||
| 834 | (set-buffer true-buffer) | 834 | (set-buffer true-buffer) |
| 835 | (kill-buffer this-buffer)))) | 835 | (kill-buffer this-buffer)))) |
| 836 | 836 | ||
| 837 | (defun vc-default-find-file-hook (backend) | 837 | (defun vc-default-find-file-hook (_backend) |
| 838 | nil) | 838 | nil) |
| 839 | 839 | ||
| 840 | (defun vc-find-file-hook () | 840 | (defun vc-find-file-hook () |
| @@ -1033,7 +1033,7 @@ current, and kill the buffer that visits the link." | |||
| 1033 | '((ext-menu-separator "--")) | 1033 | '((ext-menu-separator "--")) |
| 1034 | ext-binding)))) | 1034 | ext-binding)))) |
| 1035 | 1035 | ||
| 1036 | (defun vc-default-extra-menu (backend) | 1036 | (defun vc-default-extra-menu (_backend) |
| 1037 | nil) | 1037 | nil) |
| 1038 | 1038 | ||
| 1039 | (provide 'vc-hooks) | 1039 | (provide 'vc-hooks) |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 007bbe86f34..fcab6f36c6f 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -486,7 +486,7 @@ | |||
| 486 | ;; default implementation always returns nil. | 486 | ;; default implementation always returns nil. |
| 487 | ;; | 487 | ;; |
| 488 | ;; - root (file) | 488 | ;; - root (file) |
| 489 | ;; | 489 | ;; |
| 490 | ;; Return the root of the VC controlled hierarchy for file. | 490 | ;; Return the root of the VC controlled hierarchy for file. |
| 491 | ;; | 491 | ;; |
| 492 | ;; - repository-hostname (dirname) | 492 | ;; - repository-hostname (dirname) |
| @@ -505,12 +505,13 @@ | |||
| 505 | ;; from ignored files. | 505 | ;; from ignored files. |
| 506 | ;; When called from Lisp code, if DIRECTORY is non-nil, the | 506 | ;; When called from Lisp code, if DIRECTORY is non-nil, the |
| 507 | ;; repository to use will be deduced by DIRECTORY. | 507 | ;; repository to use will be deduced by DIRECTORY. |
| 508 | ;; | 508 | ;; |
| 509 | ;; - ignore-completion-table | 509 | ;; - ignore-completion-table |
| 510 | ;; | 510 | ;; |
| 511 | ;; Return the completion table for files ignored by the version | 511 | ;; Return the completion table for files ignored by the current |
| 512 | ;; control system in `default-directory'. | 512 | ;; version control system, e.g., the entries in `.gitignore' and |
| 513 | ;; | 513 | ;; `.bzrignore'. |
| 514 | ;; | ||
| 514 | ;; - previous-revision (file rev) | 515 | ;; - previous-revision (file rev) |
| 515 | ;; | 516 | ;; |
| 516 | ;; Return the revision number that precedes REV for FILE, or nil if no such | 517 | ;; Return the revision number that precedes REV for FILE, or nil if no such |