]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/emacs-lisp/package.el (package-load-all-descriptors): Use \`
authorMattias Engdegård <mattiase@acm.org>
Sun, 6 Nov 2022 14:59:58 +0000 (15:59 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sun, 6 Nov 2022 15:01:13 +0000 (16:01 +0100)
lisp/emacs-lisp/package.el

index 27324f2b9b455aeffe79998f8b98bc95c0310a29..a7bcdd214cb0a29310c555ec0b74ce18828adcde 100644 (file)
@@ -741,7 +741,7 @@ description file containing a call to `define-package', which
 updates `package-alist'."
   (dolist (dir (cons package-user-dir package-directory-list))
     (when (file-directory-p dir)
-      (dolist (pkg-dir (directory-files dir t "^[^.]" t))
+      (dolist (pkg-dir (directory-files dir t "\\`[^.]" t))
         (when (file-directory-p pkg-dir)
           (package-load-descriptor pkg-dir))))))