From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eECcN8/VA2BHEAAA0tVLHw (envelope-from ) for ; Sun, 17 Jan 2021 06:14:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6HhwM8/VA2CuUgAA1q6Kng (envelope-from ) for ; Sun, 17 Jan 2021 06:14:39 +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 763D49404CE for ; Sun, 17 Jan 2021 06:14:39 +0000 (UTC) Received: from localhost ([::1]:45042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l11Kf-0007qv-1d for larch@yhetil.org; Sun, 17 Jan 2021 01:14:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l11KE-0007qn-Ed for emacs-orgmode@gnu.org; Sun, 17 Jan 2021 01:14:10 -0500 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]:34263) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l11KC-00069y-L2 for emacs-orgmode@gnu.org; Sun, 17 Jan 2021 01:14:10 -0500 Received: by mail-ot1-x335.google.com with SMTP id a109so13117014otc.1 for ; Sat, 16 Jan 2021 22:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=o0MIorpL+ZgWVl8YW3BAU+ecfaWfQv0PsAEABo3UqiI=; b=CGGrGhO2eRBpLvbNaP4BhN/V9oRZ5bbNq4yXD1qMBD8KZ+qvgI+uMJGNOTNXpC1fv3 s1xHhj1rjGg8CvmJG/hPoMwFbMogxh690vEt2wRBjLzXgg2PYO7aSPqc364o+QNdQ3yZ DQ/kaNl6Xu5tfmT8oh7tUs+RRNP849B3qgkgXjfGKdVgfVrY80okFnG40Vxy6n1NFINK PCigeVsYgIELeSVb0gIC0Un5Glsy9FW0cL8GWNufV/nGdNEmzCy3cQK3zJ1+XZh1jSfN KoXyW/YzhgwkwM1mzOIwDt1M5t8+FmR8nm10ew0K9X6MokjuO+du1U9EAp5kYCY87Xhw RQdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=o0MIorpL+ZgWVl8YW3BAU+ecfaWfQv0PsAEABo3UqiI=; b=GirL/jHZwYs9boxqdUzwUHQKC1h9Z/FYRghVmuwTDRyEvVQsEGGH5o+yVVWZas5L3p AqrhlNUYJGc7l6uMJ1g8KgaXzC9OiCHBPJCy919CzTDstYiILT2owthKxesqkmSTKLfT EJsdGqtBwPrV3D6zBpoyN2wZ+bA5e+cyN7Khz8l63tU4ZAKGQcSSQkAHaxxPQZL/sift lqCM2LzC0zHTZ9DVEBMJXJaRAVaUoyuawo5XoerMTkWcQ575z2olAwwHcbId+nZRYiJP I2w21/w898vyQd2K6WgP85I4PrwCRw4BiALUIZ8VnSwbDBDSEbbEl268CJ4Ypgq6wj9Z Xq8w== X-Gm-Message-State: AOAM531Q9rZMXH+B5zd5g5ElTUSJEz2RZGzIDtVhcFG3sDWzdicAsOE5 CEmelXhGFypKRW3pxFLlAHY= X-Google-Smtp-Source: ABdhPJxAo93L0b2GquWs8GqB7JCr6pSRRm6sK/jANEIb31XH2pjTEmly3UvrcBmABNpFNFBG6tk+Yg== X-Received: by 2002:a9d:70d1:: with SMTP id w17mr6848387otj.9.1610864047144; Sat, 16 Jan 2021 22:14:07 -0800 (PST) Received: from localhost ([192.200.115.226]) by smtp.gmail.com with ESMTPSA id s204sm2631624oib.42.2021.01.16.22.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Jan 2021 22:14:06 -0800 (PST) From: Ihor Radchenko To: Raoul Comninos Subject: Re: Feature request In-Reply-To: <87y2gsw0r2.fsf@localhost> References: <86lfcsktzz.fsf@mweb.co.za> <87y2gsw0r2.fsf@localhost> Date: Sun, 17 Jan 2021 14:18:12 +0800 Message-ID: <87v9bww0gr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::335; envelope-from=yantar92@gmail.com; helo=mail-ot1-x335.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=CGGrGhO2; dmarc=pass (policy=none) header.from=gmail.com; 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: 763D49404CE X-Spam-Score: -2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: Y2hA2ug8aRHX I think something like the following will do (untested): (defun org-attach-save-file-list-to-property () "Save list of attachments to ORG_ATTACH_FILES property." (when-let* ((dir (org-attach-dir)) (files (org-attach-file-list dir))) (org-set-property "ORG_ATTACH_FILES" (mapconcat #'identity files ", ")))) (add-hook 'org-attach-after-change-hook #'org-attach-save-file-list-to-property) Best, Ihor