From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +IR+J96Bs1/QDwAA0tVLHw (envelope-from ) for ; Tue, 17 Nov 2020 07:55:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0RdJI96Bs1+RRgAAbx9fmQ (envelope-from ) for ; Tue, 17 Nov 2020 07:55:10 +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 175EB94053D for ; Tue, 17 Nov 2020 07:55:06 +0000 (UTC) Received: from localhost ([::1]:53042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kevpQ-0002G1-H9 for larch@yhetil.org; Tue, 17 Nov 2020 02:55:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kevnE-0002Fr-EF for emacs-orgmode@gnu.org; Tue, 17 Nov 2020 02:52:48 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:59692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kevnA-0000kA-7q for emacs-orgmode@gnu.org; Tue, 17 Nov 2020 02:52:47 -0500 Received: from set (cbg35-2-78-242-14-140.fbx.proxad.net [78.242.14.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 9FB495646CC; Tue, 17 Nov 2020 08:52:39 +0100 (CET) From: Alan Schmitt To: Nick Dokos , emacs-orgmode@gnu.org Subject: Re: add linked files to agenda files In-Reply-To: <87r1otasx9.fsf@alphaville.usersys.redhat.com> References: <877dqocmfo.fsf@m4x.org> <87r1otasx9.fsf@alphaville.usersys.redhat.com> Date: Tue, 17 Nov 2020 08:52:37 +0100 Message-ID: <87mtzgxvwa.fsf@m4x.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Tue Nov 17 08:52:39 2020 +0100 (CET)) X-Org-Mail: alan.schmitt.1995@polytechnique.org Received-SPF: pass client-ip=129.104.30.34; envelope-from=SRS0=LICX=EX=polytechnique.org=alan.schmitt@bounces.m4x.org; helo=mx1.polytechnique.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 02:52:40 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, FUZZY_DR_OZ=1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.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-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-Spam-Score: -3.11 X-TUID: qPl51HsvRS3/ --=-=-= Content-Type: text/plain Hello Nick, On 2020-11-16 16:33, Nick Dokos writes: > Just guessing at this point, I would imagine you'd want something like > this: > > --8<---------------cut here---------------start------------->8--- > (defun path-from-link (link) > (org-element-property :path link)) > > (setq org-agenda-files (with-current-buffer > (find-file-noselect "master.org") > (org-element-map (org-element-parse-buffer) > '(link) > #'path-from-link))) > --8<---------------cut here---------------end--------------->8--- Thanks a lot, this is most useful! I did not think it could be this simple. Best, Alan --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAl+zgUUfHGFsYW4uc2No bWl0dEBwb2x5dGVjaG5pcXVlLm9yZwAKCRAEDQo7TtLlx8q4CACg3rpieq6O0QUu uhCob0QnQS60AgtLB27CgJEYt2BlRB7SFkYw0DLTigB4l0S2SxMv9p58Iwad59Kn XbY5C7BOEacyZdF0MWa5jK6H6fqUQkA5a71lbUYVqyF6grB6Nli6XY4XOtEeogOS BS3EPlBjgwaP97q02sBRxOBiw46U+u3EWnAOVmheTa+Xjl55IelEHfDP8PNckTkI llzZY0WiO+YVHHFlfZRfKYvIai9RRd40HghJSud8qcthtzpQmO+OFLn1enrN1LbH fiMA/bvnj8nKO9iIlc3acg5oVHRv73eOPHrG6iV2pAzYvACBdWGL0UioNf4wa5E9 UvAtmnZc =l+x4 -----END PGP SIGNATURE----- --=-=-=--