From: Antoine Beaupré Date: Tue, 30 Aug 2022 14:17:45 +0000 (-0400) Subject: emacs/show: use read-shell-command instead of read-string X-Git-Tag: 0.38_rc0~83 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=a3b46fa8bbfaf6651f5055bb27aa52a0ef0d3ba2 emacs/show: use read-shell-command instead of read-string This enables auto-completion of commands, something which plain read-string does not do. It's otherwise a drop-in replacement. According to `C-h f`, read-shell-command was introduced in Emacs 23.1 or earlier. --- diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 2dcef981..ec998ede 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -2192,7 +2192,7 @@ message." (interactive (let ((query-string (if current-prefix-arg "Pipe all open messages to command: " "Pipe message to command: "))) - (list current-prefix-arg (read-string query-string)))) + (list current-prefix-arg (read-shell-command query-string)))) (let (shell-command) (if entire-thread (setq shell-command