diff options
| author | Dmitry Gutov | 2016-05-25 03:49:35 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2016-05-25 03:54:41 +0300 |
| commit | 825ca2542e01879715cf9c112d0f04e849b8d863 (patch) | |
| tree | 89a5583d2d9b40d5f2082a933db6205ad4a16e90 | |
| parent | 4efb3e8169e8a75f3e2016c8780746785fc6b85f (diff) | |
| download | emacs-825ca2542e01879715cf9c112d0f04e849b8d863.tar.gz emacs-825ca2542e01879715cf9c112d0f04e849b8d863.zip | |
Rename vc-stay-local back to vc-cvs-stay-local
* lisp/vc/vc-cvs.el (vc-cvs-stay-local): Rename back from
vc-stay-local (bug#19548). Improve the docstring.
(vc-cvs-stay-local-p): Update accordingly.
| -rw-r--r-- | lisp/vc/vc-cvs.el | 15 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 4 |
2 files changed, 9 insertions, 10 deletions
diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el index 2dca708dc38..a2499a2294b 100644 --- a/lisp/vc/vc-cvs.el +++ b/lisp/vc/vc-cvs.el | |||
| @@ -121,7 +121,7 @@ This is only meaningful if you don't use the implicit checkout model | |||
| 121 | :version "21.1" | 121 | :version "21.1" |
| 122 | :group 'vc-cvs) | 122 | :group 'vc-cvs) |
| 123 | 123 | ||
| 124 | (defcustom vc-stay-local 'only-file | 124 | (defcustom vc-cvs-stay-local 'only-file |
| 125 | "Non-nil means use local operations when possible for remote repositories. | 125 | "Non-nil means use local operations when possible for remote repositories. |
| 126 | This avoids slow queries over the network and instead uses heuristics | 126 | This avoids slow queries over the network and instead uses heuristics |
| 127 | and past information to determine the current status of a file. | 127 | and past information to determine the current status of a file. |
| @@ -131,11 +131,11 @@ server, but heuristics will be used to determine the status for | |||
| 131 | all other VC operations. | 131 | all other VC operations. |
| 132 | 132 | ||
| 133 | The value can also be a regular expression or list of regular | 133 | The value can also be a regular expression or list of regular |
| 134 | expressions to match against the host name of a repository; then VC | 134 | expressions to match against the host name of a repository; then |
| 135 | only stays local for hosts that match it. Alternatively, the value | 135 | vc-cvs only stays local for hosts that match it. Alternatively, |
| 136 | can be a list of regular expressions where the first element is the | 136 | the value can be a list of regular expressions where the first |
| 137 | symbol `except'; then VC always stays local except for hosts matched | 137 | element is the symbol `except'; then vc-cvs always stays local |
| 138 | by these regular expressions." | 138 | except for hosts matched by these regular expressions." |
| 139 | :type '(choice (const :tag "Always stay local" t) | 139 | :type '(choice (const :tag "Always stay local" t) |
| 140 | (const :tag "Only for file operations" only-file) | 140 | (const :tag "Only for file operations" only-file) |
| 141 | (const :tag "Don't stay local" nil) | 141 | (const :tag "Don't stay local" nil) |
| @@ -789,8 +789,7 @@ If FILE is a list of files, return non-nil if any of them | |||
| 789 | individually should stay local." | 789 | individually should stay local." |
| 790 | (if (listp file) | 790 | (if (listp file) |
| 791 | (delq nil (mapcar (lambda (arg) (vc-cvs-stay-local-p arg)) file)) | 791 | (delq nil (mapcar (lambda (arg) (vc-cvs-stay-local-p arg)) file)) |
| 792 | (let* ((sym (vc-make-backend-sym 'CVS 'stay-local)) | 792 | (let ((stay-local vc-cvs-stay-local)) |
| 793 | (stay-local (if (boundp sym) (symbol-value sym) vc-stay-local))) | ||
| 794 | (if (symbolp stay-local) stay-local | 793 | (if (symbolp stay-local) stay-local |
| 795 | (let ((dirname (if (file-directory-p file) | 794 | (let ((dirname (if (file-directory-p file) |
| 796 | (directory-file-name file) | 795 | (directory-file-name file) |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 25b41e34e64..790272c3d7a 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -577,8 +577,8 @@ | |||
| 577 | ;; only affected back ends were SCCS and RCS. | 577 | ;; only affected back ends were SCCS and RCS. |
| 578 | ;; | 578 | ;; |
| 579 | ;; - vc-stay-local-p and repository-hostname are no longer part | 579 | ;; - vc-stay-local-p and repository-hostname are no longer part |
| 580 | ;; of the public API. The vc-stay-local configuration variable | 580 | ;; of the public API. The vc-cvs-stay-local configuration variable |
| 581 | ;; remains but only affects the CVS back end. | 581 | ;; remains and only affects the CVS back end. |
| 582 | ;; | 582 | ;; |
| 583 | ;; - The init-revision function and the default-initial-revision | 583 | ;; - The init-revision function and the default-initial-revision |
| 584 | ;; variable are gone. These have't made sense on anything shipped | 584 | ;; variable are gone. These have't made sense on anything shipped |