From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id COZ2BNee6WAOQgEAgWs5BA (envelope-from ) for ; Sat, 10 Jul 2021 15:21:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YOoAANee6WAKMgAAbx9fmQ (envelope-from ) for ; Sat, 10 Jul 2021 13:21:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5B49B1D21F for ; Sat, 10 Jul 2021 15:21:26 +0200 (CEST) Received: from localhost ([::1]:49962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2Cv6-00033f-U3 for larch@yhetil.org; Sat, 10 Jul 2021 09:21:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2CuP-0002sv-Bi for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 09:20:41 -0400 Received: from forward106j.mail.yandex.net ([2a02:6b8:0:801:2::109]:38603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2CuN-000375-1B for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 09:20:40 -0400 Received: from sas1-8b1fa7025995.qloud-c.yandex.net (sas1-8b1fa7025995.qloud-c.yandex.net [IPv6:2a02:6b8:c14:39a6:0:640:8b1f:a702]) by forward106j.mail.yandex.net (Yandex) with ESMTP id 84CED11A0235; Sat, 10 Jul 2021 16:20:32 +0300 (MSK) Received: from sas1-27140bb19246.qloud-c.yandex.net (sas1-27140bb19246.qloud-c.yandex.net [2a02:6b8:c08:1803:0:640:2714:bb1]) by sas1-8b1fa7025995.qloud-c.yandex.net (mxback/Yandex) with ESMTP id V0pUKqIzJ8-KWI0E008; Sat, 10 Jul 2021 16:20:32 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1625923232; bh=6OzSIybEvMlXNuspRduGrvDYL6mB+FeJFUMrP//V7B8=; h=In-Reply-To:Subject:To:From:Message-ID:Cc:Cc:Date:References; b=JKTZe+4fPrg+e3FKnGZQzGvSSzhgeo4PIqRnQT5DHVzxc+cN+tnbdHidex8YZa3pD +o57922jW0UteSQYuk3S62gcaAVdYSK9VPFfwpccv5FCCt0I+yJaLT2Y2tzucpoXEI gwf3ywiLFB8cPlds1TFsJfehxB321rmzpehMpV3E= Received: by sas1-27140bb19246.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id YQOCLOIQ2c-KVPCqjXc; Sat, 10 Jul 2021 16:20:31 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) From: Colin Baxter To: Marco Wahl Subject: Re: [WDYT] org-attach-sync better remove an empty attachment directory? References: <87lf6h7ueq.fsf@gmail.com> <87o8bdljwn.fsf@gmail.com> <87y2ahi6zo.fsf@gmail.com> <87sg0ptere.fsf@gmail.com> <87zguxmcop.fsf@yandex.com> <87r1g8wvvo.fsf@gmail.com> <87lf6gwsbe.fsf@gmail.com> <87mtqwtxi5.fsf@gmail.com> <878s2g108a.fsf@yandex.com> <87v95jpa8h.fsf@gmail.com> X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Date: Sat, 10 Jul 2021 14:20:29 +0100 In-Reply-To: <87v95jpa8h.fsf@gmail.com> (Marco Wahl's message of "Fri, 09 Jul 2021 21:18:06 +0200") Message-ID: <87pmvqmhk2.fsf@yandex.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a02:6b8:0:801:2::109; envelope-from=m43cap@yandex.com; helo=forward106j.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: , Tim Cross , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625923286; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6OzSIybEvMlXNuspRduGrvDYL6mB+FeJFUMrP//V7B8=; b=ZsfIvrjsVVV/v08sZ33UsFbBWEZpkmXKrnoyReVewIatuJqyQ0iX+rnWMDquzQ7wK548Pi FBw5eQNkleFvj25uJyjXK+440BXnM1fChEWQR4GsdDKpgIptWq00y+SCJXWlhHdwRCJKgi Yo4WjchUC6ucbI9EI41MU+kEjfRA3FN/+SdibDCmSAPTs8TdtavyOxprXRUnKXLJgm0veu KD6gjIe8i4wGO1LodTqPsm8GHaEhV/If/6UW8nSQWhlUBdwq/8tg4qo/6DJ28dWuyh0brs fJi/euVhaOKFebhrcGojC3QgJ4ssGswzqSZ/00emtv1jkPpTi8kXvZsFvKKDbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625923286; a=rsa-sha256; cv=none; b=D1FbuYzphO++jI0XTCnLpL6CaeqRYrSai48J/7PtTHdLE+nfQBXRnBJvQ+vbHDI7J6Qy+K BidFoLdZpH/TMdFFlgHe4HRycihF1YTVW4t8QTlJtPiRYlPSxIiLVs+3Ilzwl836VfxLnx NcTME0MrlOVolzm0gYhhyQbCUCbrsk8EX74FUAxcpKUYLkuEtRFFAireC0vsBPX5U4fiu6 DaH5WFAlgQePQn8hNjiI557zRK6dj1tBHwEwQq6pg7/WiLjK+++dLJ/olG110Ao/cBExhL rRjVEnOgt4hLz0U5DpZwX53dRtPNglqFc18J6/6scvfok9hIShnCHZWg4I9bBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yandex.com header.s=mail header.b=JKTZe+4f; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yandex.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yandex.com header.s=mail header.b=JKTZe+4f; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yandex.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5B49B1D21F X-Spam-Score: -0.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: XEQdbugOaZjz >>>>> Marco Wahl writes: > Colin Baxter writes: >>>>>>> Tim Cross writes: >> >>>>> We could introduce multiple possibilities to choose from. >> >>> >> >>> 1. Ask in case of an empty directory if it should be deleted. >> >>> 2. Don't ask. Don't touch an empty directory. (The state >> now.) >>> 3. Don't ask. Delete empty directory. >> >>> >> >>> We could also make 3. the default setting. >> >> >> >> I made a mistake here. >> >> >> >> If we do this I vote for option 1. (not 3.) as default >> (following >> the suggestion by Colin) since it is the most >> interactive >> variant. If the question gets annoying the user >> can switch to >> one of the other options. >> >> >> >> > That seems quite resonable to me. >> >> And me. > Thanks! > I pushed respective code. Critique is always welcome. For me, this works really well. Thank you for a great addition. Best wishes, Colin Baxter.