aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Kaludercic2022-10-23 18:38:12 +0200
committerPhilip Kaludercic2022-10-23 18:38:12 +0200
commita3cd8d43aefb1ad53efb076f3f6cb45d7b914d5a (patch)
treeac5e208deba1e3087f458de28866d5024230f98e
parentca61e768d0d599657b4f8e998fb74eccee58c8f6 (diff)
downloademacs-a3cd8d43aefb1ad53efb076f3f6cb45d7b914d5a.tar.gz
emacs-a3cd8d43aefb1ad53efb076f3f6cb45d7b914d5a.zip
;Fix typo "heusitic" -> "heuristic"
-rw-r--r--lisp/emacs-lisp/package-vc.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index dd451e80f4b..c667219921b 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -56,7 +56,7 @@
56 :group 'package 56 :group 'package
57 :version "29.1") 57 :version "29.1")
58 58
59(defcustom package-vc-heusitic-alist 59(defcustom package-vc-heuristic-alist
60 `((,(rx bos "http" (? "s") "://" 60 `((,(rx bos "http" (? "s") "://"
61 (or (: (? "www.") "github.com" 61 (or (: (? "www.") "github.com"
62 "/" (+ (or alnum "-" "." "_")) 62 "/" (+ (or alnum "-" "." "_"))
@@ -104,7 +104,7 @@
104(defcustom package-vc-default-backend 'Git 104(defcustom package-vc-default-backend 'Git
105 "Default VC backend used when cloning a package repository. 105 "Default VC backend used when cloning a package repository.
106If no repository type was specified or could be guessed by 106If no repository type was specified or could be guessed by
107`package-vc-heusitic-alist', the VC backend denoted by this 107`package-vc-heuristic-alist', the VC backend denoted by this
108symbol is used. The value must be a member of 108symbol is used. The value must be a member of
109`vc-handled-backends' that implements the `clone' function." 109`vc-handled-backends' that implements the `clone' function."
110 :type `(choice ,@(mapcar (lambda (b) (list 'const b)) 110 :type `(choice ,@(mapcar (lambda (b) (list 'const b))
@@ -360,7 +360,7 @@ the `:brach' attribute in PKG-SPEC."
360 ;; Clone the repository into `repo-dir' if necessary 360 ;; Clone the repository into `repo-dir' if necessary
361 (unless (file-exists-p repo-dir) 361 (unless (file-exists-p repo-dir)
362 (make-directory (file-name-directory repo-dir) t) 362 (make-directory (file-name-directory repo-dir) t)
363 (let ((backend (or (and url (alist-get url package-vc-heusitic-alist 363 (let ((backend (or (and url (alist-get url package-vc-heuristic-alist
364 nil nil #'string-match-p)) 364 nil nil #'string-match-p))
365 package-vc-default-backend))) 365 package-vc-default-backend)))
366 (unless (vc-clone url backend repo-dir (or rev branch)) 366 (unless (vc-clone url backend repo-dir (or rev branch))
@@ -382,7 +382,7 @@ the `:brach' attribute in PKG-SPEC."
382 ;; pointing towards a repository, and use that as a backup 382 ;; pointing towards a repository, and use that as a backup
383 (and-let* ((extras (package-desc-extras (cadr pkg))) 383 (and-let* ((extras (package-desc-extras (cadr pkg)))
384 (url (alist-get :url extras)) 384 (url (alist-get :url extras))
385 (backend (alist-get url package-vc-heusitic-alist 385 (backend (alist-get url package-vc-heuristic-alist
386 nil nil #'string-match-p)))))) 386 nil nil #'string-match-p))))))
387 package-archive-contents)) 387 package-archive-contents))
388 388
@@ -424,7 +424,7 @@ be requested using REV."
424 (cond 424 (cond
425 ((and-let* ((stringp name-or-url) 425 ((and-let* ((stringp name-or-url)
426 (backend (alist-get name-or-url 426 (backend (alist-get name-or-url
427 package-vc-heusitic-alist 427 package-vc-heuristic-alist
428 nil nil #'string-match-p))) 428 nil nil #'string-match-p)))
429 (package-vc-unpack 429 (package-vc-unpack
430 (package-desc-create 430 (package-desc-create