emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/hyperdrive 9ea9e9a1dc 02/15: Change: (hyperdrive-read-path


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 9ea9e9a1dc 02/15: Change: (hyperdrive-read-path) Don't pass INITIAL-INPUT
Date: Tue, 10 Oct 2023 19:00:33 -0400 (EDT)

branch: elpa/hyperdrive
commit 9ea9e9a1dc37c3463ed20bac7bc172e307bae363
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>

    Change: (hyperdrive-read-path) Don't pass INITIAL-INPUT
    
    The `read-string' docstring recommends against its use.
---
 hyperdrive-lib.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 079760b75b..a3d2caacc7 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -1115,8 +1115,7 @@ INITIAL-INPUT-NUMBER is converted to a string and passed 
to
   "Return path read from user.
 HYPERDRIVE and VERSION are used to fill in the prompt's format %s
 sequence.  PROMPT is passed to `format-prompt', which see.  DEFAULT
-is passed to `read-string' as both its INITIAL-INPUT and
-DEFAULT-VALUE arguments."
+is passed to `read-string' as its DEFAULT-VALUE argument."
   (let ((prompt (or prompt
                     (if version
                         "Path in «%s» (version:%s)"
@@ -1124,7 +1123,7 @@ DEFAULT-VALUE arguments."
     ;; TODO: Provide a `find-file'-like auto-completing UI
     (read-string (format-prompt prompt default
                                 (hyperdrive--format-hyperdrive hyperdrive) 
version)
-                 default 'hyperdrive--path-history default)))
+                 nil 'hyperdrive--path-history default)))
 
 (defvar hyperdrive--url-history nil
   "Minibuffer history of `hyperdrive-read-url'.")



reply via email to

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