]> rtime.felk.cvut.cz Git - notmuch.git/commit
notmuch-emacs-mua: escape $PWD (and cd always)
authorTomi Ollila <tomi.ollila@iki.fi>
Sat, 28 May 2016 11:06:04 +0000 (14:06 +0300)
committerDavid Bremner <david@tethera.net>
Sat, 11 Jun 2016 16:09:22 +0000 (13:09 -0300)
commit65c219560f33d41f094a204c631fb5aa0ff3395e
tree0096273f31e80ba0d383e7d4a7572adf3f8e5b94
parente401daecab43ff974474319d1f996c03a076d319
notmuch-emacs-mua: escape $PWD (and cd always)

Escaping $PWD makes this work in directories like 'foo"bar'...

Cd'ing always makes the working directory to be consistent whether
--body option was used or not (when using emacsclient, but cd'ing
when using emacs does not cause any harm).

Note that documentation of `insert-file` expects programs to
call `insert-file-contents` instead. In our simple case
`insert-file` works better as it does some good checks that we'd
have to implement ourselves. Look lisp/files.el in emacs sources
for more information.
notmuch-emacs-mua