[Joerg Jaspert] Bug#922536: notmuch-emacs: notmuch breaks on directory removal

Tomi Ollila tomi.ollila at iki.fi
Mon Feb 18 14:18:15 PST 2019

On Sun, Feb 17 2019, David Bremner wrote:

> Seems like reasonable complaint. It should be possible to change to the
> maildir root, but probably requires shelling out to notmuch config 
> get the value.

Hmm. what does other emacs software do in that case ?

Since OTOH I can think of a situation where I run emacs when located on
a directory. from *scratch* buffer I launch notmuch-hello, then I press
'm' to compose new mail and c-x i (insert-file) ... Now I'd expect
to be located on the same directory instead of my mail buffer is suddenly
cd'd to totally different location (*)


(*) that would be comparable annoying like my experience when using
    ultimaker cura: have to run it with 
    $ HOME=$PWD /path/to/cura $PWD/file.stl
    to have it working as i'd expect software to locate input and
    output directories/files (it sure never default to current dir)

> From: Joerg Jaspert <joerg at debian.org>
> Subject: Bug#922536: notmuch-emacs: notmuch breaks on directory removal
> To: Debian Bug Tracking System <submit at bugs.debian.org>
> Date: Sun, 17 Feb 2019 21:07:09 +0100
> Package: notmuch-emacs
> Version: 0.28-2~bpo9+1
> Severity: normal
> Dear Maintainer,
> *** Reporter, please consider answering these questions, where appropriate ***
>    * What led up to the situation?
> Open notmuch "from" a random buffer. Keep the notmuch-hello open.
> Remove the directory of that buffer (and the buffer too).
> Try refreshing notmuch.
> Get greeted by:
> "apply: Setting current directory: No such file or directory, 
> /the/removed/directory/"
>    * What outcome did you expect instead?
> Notmuch should change its own buffers to a safe dir that always exists.
> -- 
> bye, Joerg
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

More information about the notmuch mailing list