]> git.eshelyaron.com Git - emacs.git/commitdiff
; Touch up & fix documentation changes from last commit
authorSean Whitton <spwhitton@spwhitton.name>
Thu, 24 Oct 2024 13:15:28 +0000 (21:15 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Oct 2024 06:31:53 +0000 (08:31 +0200)
(cherry picked from commit fefc3005d46f4ac41af624d4591b052df92e4bd0)

etc/NEWS
lisp/emacs-lisp/package-vc.el
lisp/ldefs-boot.el
lisp/vc/vc.el

index c09c8276f85001e083d7a5c4c75e68eee91506a5..3fd3623efb7064637a67ae04680b2c6cf72417be 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -547,15 +547,17 @@ even though Emacs thinks it is dangerous.
 
 So far, this applies only to using 'e' from Log View mode for Git.
 
+---
 *** 'vc-clone' is now an interactive command.
 When called interactively, 'vc-clone' now prompts for the remote
-repository address, the backend for cloning, if it has not been
-determined automatically according to the URL, and the directory to
-clone the repository into.
+repository address, and the directory into which to clone the
+repository.  It tries to automatically determine the VC backend for
+cloning, or prompts for that, too.
 
+---
 *** 'vc-clone' now accepts an optional argument OPEN-DIR.
 When the argument is non-nil, the function switches to a buffer visiting
-directory to which the repository was cloned.
+the directory into which the repository was cloned.
 
 \f
 * New Modes and Packages in Emacs 31.1
index 445f52477b2c9dfa5be87697e5756c1cd858fbd8..9c185da02abbf55508effb6aa0e39135d74fcf28 100644 (file)
@@ -71,7 +71,7 @@
   "Default VC backend to use for cloning package repositories.
 `package-vc-install' uses this backend when you specify neither
 the backend nor a repository URL that's recognized via
-`package-vc-heuristic-alist'.
+`vc-clone-heuristic-alist'.
 
 The value must be a member of `vc-handled-backends' that supports
 the `clone' VC function."
@@ -809,7 +809,7 @@ If PACKAGE is a string, it specifies the URL of the package
 repository.  In this case, optional argument BACKEND specifies
 the VC backend to use for cloning the repository; if it's nil,
 this function tries to infer which backend to use according to
-the value of `package-vc-heuristic-alist' and if that fails it
+the value of `vc-clone-heuristic-alist' and if that fails it
 uses `package-vc-default-backend'.  Optional argument NAME
 specifies the package name in this case; if it's nil, this
 package uses `file-name-base' on the URL to obtain the package
index 5816f94b1382b8f461c355cd95fa9ed08ffa1ebd..cf088b1932473ec509501a7379c53995a286aef5 100644 (file)
@@ -23149,7 +23149,7 @@ If PACKAGE is a string, it specifies the URL of the package
 repository.  In this case, optional argument BACKEND specifies
 the VC backend to use for cloning the repository; if it's nil,
 this function tries to infer which backend to use according to
-the value of `package-vc-heuristic-alist' and if that fails it
+the value of `vc-clone-heuristic-alist' and if that fails it
 uses `package-vc-default-backend'.  Optional argument NAME
 specifies the package name in this case; if it's nil, this
 package uses `file-name-base' on the URL to obtain the package
index f6436ebb9bf9c181a6fb673d855a613512cf1cbc..c4b0595022959763578d69ab062ed686325d383a 100644 (file)
@@ -3884,17 +3884,17 @@ If successful, return the string with the directory of the checkout;
 otherwise return nil.
 REMOTE should be a string, the URL of the remote repository or the name
 of a directory (if the repository is local).
+
+When called interactively, prompt for REMOTE, BACKEND and DIRECTORY,
+except attempt to determine BACKEND automatically based on REMOTE.
+
 If DIRECTORY is nil or omitted, it defaults to `default-directory'.
 If BACKEND is nil or omitted, the function iterates through every known
 backend in `vc-handled-backends' until one succeeds to clone REMOTE.
 If REV is non-nil, it indicates a specific revision to check out after
 cloning; the syntax of REV depends on what BACKEND accepts.
-If OPEN-DIR is non-nil, switches to a buffer visiting DIRECTORY to
-which the repository was cloned.  It would be useful in scripts, but not
-in regular code.
-If called interactively, prompt for REMOTE, DIRECTORY and BACKEND,
-if BACKEND has not been automatically determined according to the REMOTE
-URL, in the minibuffer."
+If OPEN-DIR is non-nil, as it is interactively, also switches to a
+buffer visiting DIRECTORY."
   (interactive
    (let* ((url (read-string "Remote: " nil 'vc--remotes-history))
           (backend (or (vc-guess-url-backend url)