From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 11D966DE0F5A for ; Mon, 18 Feb 2019 14:18:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.46 X-Spam-Level: X-Spam-Status: No, score=0.46 tagged_above=-999 required=5 tests=[AWL=-0.192, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D0BjNle_XNTe for ; Mon, 18 Feb 2019 14:18:21 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id D432D6DE0F51 for ; Mon, 18 Feb 2019 14:18:19 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 7427A100063; Tue, 19 Feb 2019 00:18:15 +0200 (EET) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [Joerg Jaspert] Bug#922536: notmuch-emacs: notmuch breaks on directory removal In-Reply-To: <877edygman.fsf@tethera.net> References: <877edygman.fsf@tethera.net> User-Agent: Notmuch/0.28+29~ga10f231 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2019 22:18:22 -0000 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 (*) Tomi (*) 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 > Subject: Bug#922536: notmuch-emacs: notmuch breaks on directory removal > To: Debian Bug Tracking System > 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@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch