From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QBlMMuQ3RGTv4gAASxT56A (envelope-from ) for ; Sat, 22 Apr 2023 21:39:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iPA7MuQ3RGSAhgAAauVa8A (envelope-from ) for ; Sat, 22 Apr 2023 21:39:16 +0200 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 4534413804 for ; Sat, 22 Apr 2023 21:39:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqJ47-0000Ly-P1; Sat, 22 Apr 2023 15:38:35 -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 1pqJ45-0000Lf-Sb for emacs-orgmode@gnu.org; Sat, 22 Apr 2023 15:38:33 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqJ44-0006Ys-4n for emacs-orgmode@gnu.org; Sat, 22 Apr 2023 15:38:33 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-63b7588005fso2823884b3a.0 for ; Sat, 22 Apr 2023 12:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682192309; x=1684784309; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=ZjuTBfNzOPbphexqzt2IyKTCx5exrL6YjBQht5VsC8s=; b=JobkLg7lw+feo4AyBKCK6Sa2TF1GsOuga9fTXS4NP1u7wfYkRX0/c4ZvtwkiX93dE3 zC/uEkgHVdAG5Pd8UT/h6K35TExYX524QCkWSaKO3xo5IiWYIVlRwuxAKF7sRaj2rNfw eG0GWJCJcyt/Bcwb98QOMurpCWqHm3Bx8Hn4IAUEozC1TNkV4hNJpvDj6iPCJtJFBAPg 3iumPc9QYBH6ktTPk9gHat3lDF83JZ+7A8BRGto+jTEE5EHIpl3PN/Jg6zxZVsb9KbZ+ mfKgsIUZ+xbOQLcv/gLPqeP34ibxhrLBuQVEZ3+QbJWhCzEnmtFob3z1jEJNHLwbs/Ma Mt8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682192309; x=1684784309; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZjuTBfNzOPbphexqzt2IyKTCx5exrL6YjBQht5VsC8s=; b=HWWkMTm3uCWQ/+Jq8aw5bD8yZDBPAk78zYrlaA6hDPDFemhcGFALIZ0GufLPzimlM/ F7pxOyf57GSbT6U2Qi+QUeSkgWxuJcdLPI4QnBUU6i6f0hClMS1s74Rl79veyyHatRnO Y9XxtPW/Lmh0ISB353SCyYbYHPyWIBV9pomKxotTsMb9VIK2K7swyMZk0lIkRQ20LVxO jG3iitS2ZhP+Kf+EWAfkE5pGb1cGI63b3WOzxmV0Jg40jWGTUXAtwdH4SJJTJqD+WxLW qqsoc6tBNxuysCJ6ti4nNQr67+AVh37RF/d4UuuMhXDqZEhuzx+n6kA9UYf2bsLB79zL uFyw== X-Gm-Message-State: AAQBX9ce3tgDhuD38GshIUhv/nzvgzchHvvG7414d59aF9pwWsMVprko nloeB2ABZuBCRI3h5y3Q4LG0iN3EjbCCOw== X-Google-Smtp-Source: AKy350ZLlszmYlpvOrAxbLKynTKUi/GxnpaLP82Z5vK2lM0ztunSsSQdwyYjpIaEaCL4Qdlh6OB5SQ== X-Received: by 2002:a05:6a00:1593:b0:63b:7ae0:fde9 with SMTP id u19-20020a056a00159300b0063b7ae0fde9mr12004140pfk.20.1682192308685; Sat, 22 Apr 2023 12:38:28 -0700 (PDT) Received: from e590 (h215203.f.east.v6connect.net. [61.114.215.203]) by smtp.gmail.com with ESMTPSA id l18-20020a62be12000000b0063b7b811ce8sm4790247pff.205.2023.04.22.12.38.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Apr 2023 12:38:28 -0700 (PDT) From: "Garid Z." To: emacs-orgmode@gnu.org Subject: [BUG] RFE: Including src-blocks from different files when tangling the code [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)] Date: Sun, 23 Apr 2023 04:38:26 +0900 Message-ID: <87cz3vhfm5.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=garidzorigoo@gmail.com; helo=mail-pf1-x434.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682192356; a=rsa-sha256; cv=none; b=b7IluxdM+6SGTHisN8R4iqBEYKPykcAi+sLdIAFXMFBPbG16N+ABb4KgrGFmMcQrG6MtyX FOTZMsBr8gKIw+Anjdn8vKybVfb7ew5T5z44pM28OPgTZsMLTcDq7FTeKSCkC1LjG/J5v5 AbZDUREjcHz8QP/C1f9mFfsvUm1ci8FLZBul/1PSE4FVzOhwP7CkN4NsmTLjgzlG56hn10 /Q3qL6EWPZUo6L6HrWy0PSpL01qaJA9bCisrUcihdaiCSWbuPx3wg/d21iaq7VoLLahiEr XD+iwp7EWY7iKJlEJBq2ALaw4I7pSnrNwGQw7bXqAilBa1L2STSmdBaol+aXrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=JobkLg7l; dmarc=pass (policy=none) header.from=gmail.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682192356; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZjuTBfNzOPbphexqzt2IyKTCx5exrL6YjBQht5VsC8s=; b=Zkym2NjmTFEPDxKoAHe1dLgt1umZIynoOksaykel8lg2FVUHMbf0nAV5w4kp1DNuHVcHlZ Yj0BwETkQvm2gZXdp/doJIGA81ZLuU9jVTlm1FCzEpSAq8j1rMUAx9vZCvyyHn/ZQY4Pc2 OYW8E2VrnV4yHmgTo2TcD5fPz09l178ZCh2RySVffjtdlkyEC4EQLqoSOoRncpprm173g+ Nxo65OIcXGP6J9c9U5C2Xpy/SZYvAx+E2o6i0obQotAK313PSx+9lX8g/ZdcQ7p11i+AZM lVFFaz4KEYDgPeJ5N6FbCCKuKpdxXJWjoAr0Ott+Ng1yhEcS1ZX0FcmUZcVFeQ== X-Migadu-Spam-Score: -4.94 X-Spam-Score: -4.94 X-Migadu-Queue-Id: 4534413804 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=JobkLg7l; dmarc=pass (policy=none) header.from=gmail.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" X-TUID: 4F0oltPFtXrJ I have following Request for Enhancement: Write src-block in separate org-file(s), and when time comes to tangle use all those src-blocks using some sort of reference. In other words, take a look at following an example: -------------------------------------------------------------------- * This is ~/tmp/1.org~ file: #+name: code_block_in_1_org #+begin_src python :noweb yes import pandas as pd #+end_src -------------------------------------------------------------------- #+INCLUDE: "/tmp/1.org" * This is the ~/tmp/2.org~ file #+caption: Local Code Block #+name: code_block_local #+begin_src python :noweb yes import numpy as np #+end_src #+caption: The Final Code Block #+name: the_final_code_block #+begin_src python :results output :tangle output.py :noweb yes <> # referencing from 1.org <> # referencing from within 2.org #+end_src -------------------------------------------------------------------- The file ~/tmp/1.org~ contain src-block (~code_block_in_1_org~) which is needed in block (~the_final_code_block~) of ~/tmp/2.org~ to tangle: - When ~/tmp/2.org~ exported to PDF via LaTeX, ~the_final_code_block~ does contain part of code from ~code_block_in_1_org~ - When ~/tmp/2.org~ tangled, ~the_final_code_block~ does NOT contain part of code from ~code_block_in_1_org~ For consistency with PDF-export and file(s) management reasons, I feel like it would be neat/cool have this feature to spread src-blocks to different org-files. Please take this RFE with a grain of salt, since I'm not that well skilled/experienced person. And, I'm not even sure this spreading src-blocks all over the places/files will be beneficial to overall literate programming paradigm. Just for my small case, it felt beneficial. Please share your opinions on this, I will be happy hear about it. Best, Garid Zorigoo. Emacs : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-03 Package: Org mode version 9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/) -- Garid Z.