]> git.notmuchmail.org Git - notmuch/commit
emacs: Use make-process when available
authorVladimir Panteleev <notmuch@thecybershadow.net>
Thu, 17 Aug 2017 17:57:12 +0000 (17:57 +0000)
committerDavid Bremner <david@tethera.net>
Sun, 20 Aug 2017 11:33:09 +0000 (08:33 -0300)
commitfdf2b3007ac2f66b20f718dbf01871e8b47fcd06
tree874b20c9c487288ea89dad2be2b8f9f71323d0b8
parent69946c47c9ba01f64a382ab6d1928d3f048f606f
emacs: Use make-process when available

make-process is a new function introduced in Emacs 25, which provides
greater control over process creation. Crucially, it allows
separately redirecting stderr directly to a buffer, which allows us to
avoid needing to use the shell to redirect to a temporary file in
order to correctly distinguish stdout and stderr.

* notmuch-lib.el: Use make-process when it is available; fall back to
  the previous method when not.
emacs/notmuch-lib.el