]> code.delx.au - gnu-emacs/commitdiff
* lisp/dired-x.el (dired-guess-shell-command): Put colon at the end of the prompt.
authorChristopher Schmidt <christopher@ch.ristopher.com>
Sat, 15 Dec 2012 12:05:04 +0000 (14:05 +0200)
committerJuri Linkov <juri@jurta.org>
Sat, 15 Dec 2012 12:05:04 +0000 (14:05 +0200)
Fixes: debbugs:13045
lisp/ChangeLog
lisp/dired-x.el

index 0517a66916f654b13eafeacf3238064d0a185ebb..c291bba0f199e3bfaad9d73318a0d6916099cb4f 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-15  Christopher Schmidt  <christopher@ch.ristopher.com>
+
+       * dired-x.el (dired-guess-shell-command): Put colon at the end of
+       the prompt.  (Bug#13045)
+
 2012-12-14  Glenn Morris  <rgm@gnu.org>
 
        * emacs-lisp/macroexp.el (macroexp--warn-and-return):
index 1237eef86cf185c7a7ef9a825d3f60d4a5de0474..ece735196866e3bc87825ad4f6ba656f00c2ecb0 100644 (file)
@@ -1114,6 +1114,7 @@ See `dired-guess-shell-alist-user'."
     (if (null default)
         ;; Nothing to guess
         (read-shell-command prompt nil 'dired-shell-command-history)
+      (setq prompt (replace-regexp-in-string ": $" " " prompt))
       (if (listp default)
           ;; More than one guess
           (setq default-list default
@@ -1124,7 +1125,7 @@ See `dired-guess-shell-alist-user'."
         ;; Just one guess
         (setq default-list (list default)))
       ;; Put the first guess in the prompt but not in the initial value.
-      (setq prompt (concat prompt (format "[%s] " default)))
+      (setq prompt (concat prompt (format "[%s]: " default)))
       ;; All guesses can be retrieved with M-n
       (setq val (read-shell-command prompt nil
                                     'dired-shell-command-history