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 ms0.migadu.com with LMTPS id 2CQzNH46wmCIKQAAgWs5BA (envelope-from ) for ; Thu, 10 Jun 2021 18:14:54 +0200 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 aCXKL346wmCGDgAA1q6Kng (envelope-from ) for ; Thu, 10 Jun 2021 16:14:54 +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 3A60624F06 for ; Thu, 10 Jun 2021 18:14:54 +0200 (CEST) Received: from localhost ([::1]:58048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrNKW-000435-15 for larch@yhetil.org; Thu, 10 Jun 2021 12:14:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrNJR-0003zh-SU for emacs-orgmode@gnu.org; Thu, 10 Jun 2021 12:13:46 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrNJP-0002XO-MU for emacs-orgmode@gnu.org; Thu, 10 Jun 2021 12:13:45 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 66564240027 for ; Thu, 10 Jun 2021 18:13:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623341621; bh=WdvFEfgg29ybtM2YcI9AMWmwrhfAqDPdmrcsOR993xU=; h=From:To:Subject:Date:From; b=V1bLPBaxCQRak4CsfLnLbYTu0PSIWew8p8+lKcDA39HrWSvDbPWdAy9h8i17Zh0vA p1IF281W9wUt6k9BR2OpiS4kbEnzahVqyLlYzlzF04nekDmhVyjb0+nIsUJwka4aN6 yhZPKIxWcrCfHssFgdGOyfu8kJCvu/BV2zcJOcguE3OzB4KUejenwsJ6n5d5Xar7i7 aljcdNAVaH9lfWNxPVqdHGzewnan8AJUcr+LXnFtSK7Uh4paGP3XyXeXmOGH+sLv+n ST2LUhnb+o0A6qDQxuIRpmH46CJl8OTaFEvmHZ8Vbwj6IOnJ/rRaWq2Cl5eAXxc9mS I7QRh4KKYjEGQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4G18D464ZVz6tmD for ; Thu, 10 Jun 2021 18:13:40 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: Re: org-attach a directory? References: <5a5703fb-943c-4da8-8981-63cac9ef3bae@gmail.com> <87r1h999q8.fsf@online.de> <87h7i5lsy6.fsf@posteo.net> Date: Thu, 10 Jun 2021 16:13:40 +0000 In-Reply-To: <87h7i5lsy6.fsf@posteo.net> ("Juan Manuel =?utf-8?Q?Mac=C3=AD?= =?utf-8?Q?as=22's?= message of "Thu, 10 Jun 2021 14:01:21 +0000") Message-ID: <87bl8dlmtn.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , 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=1623341694; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=x63YWuu4TvJtT+17Vb1z8LtN4wRoQv13cE5aJct/HzA=; b=Zgmnoox5iMtLt7W0xk65FrDtO7OsRFNQJoKZpwcBpEkBeucNyO10HTAcSASxeWdgSU9/3L xXPTG2z1NxDNGc/KT6LsO65oozVw/Xm0nBmthAUB7gW4y/Pb4fYJiiKqhtr9jUcdpb6uWg YCMb4vPhKJE/QGOdzyFMQvNPYLW/qZSzgQEFBiy/vzsAYTW6WrDNq5MKdTa4cktTlEvc8f LDZuMaxu956jiKcCnzPkGmwNtNkYlPjhjSCOYba1YIzEVTIt9VUrOHShd0IPzeh4iFry7O +BddgBM5CeQdrlTCpAh65pKWCvrjD7i5vpfuFianSqw8PVYnuRYXmOUw+mzEbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623341694; a=rsa-sha256; cv=none; b=ENaMuF+qUMj8B75SJqWe0ToeVpEmhG5Jcl2cdS4kYz4mWL716CuoZSt2d+xTIQg54fUwrz nA3jxi1OW9HIMUwaLjSxHH25Tqy+b9A4QYSNfzsCw506cmT1miMNmIwDmiXHcOvjRF+CV9 Z8RpdRU9yIvgmAOysX6rXiuxRTEVkP2U5Gra1BxZ7OBUigG/+lwUfOYtlTJ7howEiRy7Xc MbSe/MBU38w6KVZ4i3LgfSBeNQRNfPvz1saP/6wQvDoSRuwTYW6asH0H+kpKosS1Dx2HBF Ri9rtFcLuuaf3XTos7IhuQV4rH8Wse93BfcUBfifquQlb0KZyvZOweP8otDeIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=V1bLPBax; dmarc=pass (policy=none) header.from=posteo.net; 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.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=V1bLPBax; dmarc=pass (policy=none) header.from=posteo.net; 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: 3A60624F06 X-Spam-Score: -0.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: NyF4rFw0Xedv You could also modify some line in org-attach-attach, for example: ... ((eq method 'cp) (if (file-directory-p file) (copy-directory file attach-file) (copy-file file attach-file))) ... Best regards, Juan Manuel=20 Juan Manuel Mac=C3=ADas writes: > If I have to stay with a workaround that covers many scenarios, I would > stay with Ihor's snippet, which seems to me simpler than the patch that > I suggested before, and you don't need to define new attach > commands/methods. I would vote for a patch in that direction (Ihor's > code).