bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#13045: 24.2.90; dired-guess-shell-command: default in prompt after c


From: Juri Linkov
Subject: bug#13045: 24.2.90; dired-guess-shell-command: default in prompt after colon
Date: Sat, 15 Dec 2012 14:05:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)

> === modified file 'lisp/dired-x.el'
> --- lisp/dired-x.el   2012-09-25 04:13:02 +0000
> +++ lisp/dired-x.el   2012-12-06 13:47:11 +0000
> @@ -1114,6 +1114,7 @@
>      (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 @@
>          ;; 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)))

Thanks, this is a satisfactory short-term solution.  Installed to the trunk.





reply via email to

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