emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 61a14507627: Improve directory prompt used by package-vc-checko


From: Philip Kaludercic
Subject: emacs-29 61a14507627: Improve directory prompt used by package-vc-checkout
Date: Wed, 14 Feb 2024 11:53:55 -0500 (EST)

branch: emacs-29
commit 61a145076275a9da79d0372d50def4aaf5117587
Author: Joseph Turner <joseph@breatheoutbreathe.in>
Commit: Philip Kaludercic <philipk@posteo.net>

    Improve directory prompt used by package-vc-checkout
    
    * lisp/emacs-lisp/package-vc.el (package-vc--read-package-name): Use
    read-directory-name instead of read-file-name.  (Bug#66114)
---
 lisp/emacs-lisp/package-vc.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index e89ead89d4b..5c5486de290 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -825,8 +825,8 @@ for the last released version of the package."
   (interactive
    (let* ((name (package-vc--read-package-name "Fetch package source: ")))
      (list (cadr (assoc name package-archive-contents #'string=))
-           (read-file-name "Clone into new or empty directory: " nil nil t nil
-                           (lambda (dir) (or (not (file-exists-p dir))
+           (read-directory-name "Clone into new or empty directory: " nil nil
+                                (lambda (dir) (or (not (file-exists-p dir))
                                              (directory-empty-p dir))))
            (and current-prefix-arg :last-release))))
   (setf directory (expand-file-name directory))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]