From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +Hw4JWEDCGYSQAAAe85BDQ:P1 (envelope-from ) for ; Sat, 30 Mar 2024 13:19:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +Hw4JWEDCGYSQAAAe85BDQ (envelope-from ) for ; Sat, 30 Mar 2024 13:19:45 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=IG5PrEPH; dmarc=pass (policy=quarantine) header.from=slmails.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; arc=pass ("simplelogin.co:s=arc-20230626:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1711801185; a=rsa-sha256; cv=pass; b=uN7ptKplABXwCa70n3Ydd2zK37fuUQyXN416fkX0dnadY5OjsPVd9ohbKhWiCe/XsEzU8t i7PNS1GCd/sEtLyfsZwcbZe3EozL+lte2PAFeA2ARWRS+b39XygpDmpzMil18yEsZ6HT4p a76nTh8BP6wUfhGj4PsN2Td1IGMFoZT52M8EYGkb+Ox8mteO8c1SCUneyX3t0idYePs4De q6wz1efe9ZZYnJTdZ9xyQA9oObDjhRntu/XkSjjjy6IrRIW8MpAXCRgvwKzyhxZAmvVZ8h vobaGJBQVbO+NewQLUXJNiZ8Mteil9oAa8zOGV65tp0R0AakC42+QGr7+7uijA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=IG5PrEPH; dmarc=pass (policy=quarantine) header.from=slmails.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; arc=pass ("simplelogin.co:s=arc-20230626:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711801185; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=eLr6jcm1qXGSJ5GOIlKjva3kwMcFt/gZnDPMTWqLLVU=; b=aDP6nNbiewy67wADbZuLgoJkSuyIVXAX+Br2X4tcIXxPFj4j4vcFfRPkKmhr0UIWn5i9X7 yqxZm5sfdplwaiqZd/CdZLTsP2NKnMkI0Nu0i5U6pa4U5tUcE0AmNj1WgpM21KpSxSBnYT gODaa2ATKiHZTLTRy5S12g4ZuVW1fTHk8vnJXN3YmbB0AGeJrLNtSwNsxWsG522eoHfdZ7 henQR2jkgEVWzo+ciASE0OyIyGhLZNKdQaLCd0NWSwZKu8LhMn+g9il5wKwXCuS83huvQp HWrhs8hcMdppz0Z/HsUAwRxnW/Fqk7b3zBmCQ8jnkVAMXorXpyhbR901cBT/5w== 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 5EB901D2DB for ; Sat, 30 Mar 2024 13:19:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqXfn-0000yx-Lf; Sat, 30 Mar 2024 08:18:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqXfm-0000yG-3e for emacs-orgmode@gnu.org; Sat, 30 Mar 2024 08:18:58 -0400 Received: from mail-200160.simplelogin.co ([176.119.200.160]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqXfk-0004Yd-7r for emacs-orgmode@gnu.org; Sat, 30 Mar 2024 08:18:57 -0400 ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1711800549; cv=none; b=fBQInvQ9BAYOnRXXpQsY3Qr+EdKahO81DRi+qH578XEVphDRRGaCVWVj9oYmmOs6EMNE1MkloztQfDJ4qL3j22Tu++K/IR12Ydz5U13ygvLqG+GuhjQQYRiYiyYIQVsYPWOOntzUKhe1mbaPrvvd5dJ60tezt/QhIUGLWTOCFbLw+8m3WvrKGraUd0T6v1JEawrgv/RmXZn29GWpfaeltDW0pPbaHbx5w+BGne8VtrPEv6p9NRPRj3HxQUcuW5QiaIdhkVDELFfA5dKGj8R0R69CZxISokmewVjyo3R+BNRN79hecDhq6beYRiGX1vZB08n1pIAHwtPR9+KSF8pQhw== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1711800549; c=relaxed/simple; bh=fGOZAZ0nln4LweYuP8o5PZtnlE53N7lfyx9+DOBigkc=; h=Date:Subject:From:To; b=Et1ORD2FHpoEz6EpCZPDVIU39j52BY9e63DT7P/k1CQOZ1xldODPsb5j6oGIaG8pZZP78DEy9V7E5F0qSwMd7hHzJwGg2V/Un1brdAIWAmWrukwPSzqWLXG/B8Z5VWNklXuwb/lZnYKkwnHIeANOwo9ZjfCJ9dsTlXy4pbYlmJ7Fax4G7NZvApn4NYP3vgYXk+iLE/hM2GjtRFnReYAOmWR7a5WJLyiOsMt2GvfhIthd5Cygmv3gHk6zxokMk2sOy2sWmqcKdm6lbp0FGW87piZn+P9TxZZCfyWkMdrqzIcD31J0wORP4JulbPIFWCNClxJQR19CSOul84nVDFpLEA== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slmails.com; s=dkim; t=1711800548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eLr6jcm1qXGSJ5GOIlKjva3kwMcFt/gZnDPMTWqLLVU=; b=IG5PrEPHkAyKZX+hYKml1WnpWTH46qgfY7VTwAwZqyatCT0jb3Tm72YpkeJkGk0TLq9iwh q76fw76Qdeqanv4hn8OevDLVV6pF+duYFNdM5jKheYW0ZO77iaop+7v/b9NN6ghiYUterI JGTOxIwOuyVXbvqVAFLHHHqUFAJ8rEE= Content-Type: multipart/alternative; boundary="------------ML8NzraH0BCS8H9WiqDKqd1V" Date: Sat, 30 Mar 2024 13:09:02 +0100 Subject: [FR] Add customization for default answers to `org-attach-set/unset-directory' prompt (was: Org-attach risks) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Kepa To: Ihor Radchenko ,emacs-orgmode@gnu.org Message-ID: <171180054871.9.16611536070764328440.297508022@slmails.com> X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 297508023 X-SimpleLogin-Want-Signing: yes Received-SPF: pass client-ip=176.119.200.160; envelope-from=sl.lmysyibshe3tkmbygazdglbageytqmbqha4v2.lwt63phcgk5za@slmails.com; helo=mail-200160.simplelogin.co X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.44 X-Migadu-Queue-Id: 5EB901D2DB X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.44 X-TUID: Ea7dbhAS+WRg --------------ML8NzraH0BCS8H9WiqDKqd1V Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Ihor > In addition to the sequence of prompts when changing the attachment > directory: > > 1. Copy over attachments from old attachment directory to new one? > 2. Delete old attachment directory? > > we can introduce a custom variable `org-attach-move-attachments' with > the following values: > > 1. 'ask (default) - display the prompts > 2. 'move - move the attachments form old to new directory (same as yes, > yes answer) > 3. 'copy - copy the attachments, keeping the old directory (yes, no answer) > 4. 'keep or nil - keep the attachments in the old directory (no, no answer) It would solve it. Thanks. --------------ML8NzraH0BCS8H9WiqDKqd1V Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hi Ihor


In addition to the sequence of prompts when changing the attachment
directory:

1. Copy over attachments from old attachment directory to new one?
2. Delete old attachment directory?

we can introduce a custom variable `org-attach-move-attachments' with
the following values:

1. 'ask (default) - display the prompts
2. 'move - move the attachments form old to new directory (same as yes,
   yes answer)
3. 'copy - copy the attachments, keeping the old directory (yes, no answer)
4. 'keep or nil - keep the attachments in the old directory (no, no answer)
It would solve it. Thanks.

--------------ML8NzraH0BCS8H9WiqDKqd1V--