]> git.notmuchmail.org Git - notmuch/commitdiff
emacs/show: use read-shell-command instead of read-string
authorAntoine Beaupré <anarcat@debian.org>
Tue, 30 Aug 2022 14:17:45 +0000 (10:17 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 3 Sep 2022 11:12:16 +0000 (08:12 -0300)
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.

emacs/notmuch-show.el

index 2dcef98167c9e0e1162d515bdf8829de687099f0..ec998ede8dad49ebc1421f7eb839dd24da70cde7 100644 (file)
@@ -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