From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sIKYKuJPK2D5cgAA0tVLHw (envelope-from ) for ; Tue, 16 Feb 2021 04:53:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id hrdjJuJPK2ChbwAA1q6Kng (envelope-from ) for ; Tue, 16 Feb 2021 04:53: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 2A8CB2771D for ; Tue, 16 Feb 2021 05:53:54 +0100 (CET) Received: from localhost ([::1]:57774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBsMx-0004rI-Qv for larch@yhetil.org; Mon, 15 Feb 2021 23:53:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBsMT-0004r9-Vd for emacs-orgmode@gnu.org; Mon, 15 Feb 2021 23:53:21 -0500 Received: from hiwela.pair.com ([209.68.5.201]:47183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBsMS-0005uA-8Z for emacs-orgmode@gnu.org; Mon, 15 Feb 2021 23:53:21 -0500 Received: from hiwela.pair.com (localhost [127.0.0.1]) by hiwela.pair.com (Postfix) with ESMTP id CADAC980633; Mon, 15 Feb 2021 23:53:14 -0500 (EST) Received: from minshall-entroware-apollo.cliq.com (unknown [95.8.212.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hiwela.pair.com (Postfix) with ESMTPSA id 7B9C98F0957; Mon, 15 Feb 2021 23:53:14 -0500 (EST) Received: from apollo2.minshall.org (localhost [IPv6:::1]) by minshall-entroware-apollo.cliq.com (Postfix) with ESMTP id 1C050630A1; Tue, 16 Feb 2021 07:53:12 +0300 (+03) From: Greg Minshall To: Rodrigo Morales Subject: Re: How do you name your code blocks? In-reply-to: Your message of "Mon, 15 Feb 2021 14:18:17 -0500." <87wnv9b0na.fsf@gmail.com> X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1417211.1613451192.1@apollo2.minshall.org> Date: Tue, 16 Feb 2021 07:53:12 +0300 Message-ID: <1417212.1613451192@apollo2.minshall.org> Received-SPF: softfail client-ip=209.68.5.201; envelope-from=minshall@umich.edu; helo=hiwela.pair.com X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no 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: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=umich.edu (policy=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-Migadu-Queue-Id: 2A8CB2771D X-Spam-Score: -1.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: +D0Xae+hjOUN Rodrigo, i guess part of the answer depends on why you are naming your code blocks. for me, the main reason is for <>. another is so that when org-mode asks me if it should run a block, it has a name to tell me to help in my decision-making. for <>, there is noweb-ref header argument (see manual). i don't know if that might be of help. it allows you to name a group of source blocks, intended to be treated as a group. using noweb-ref, one can also name a bunch of to-be-concatenated code blocks as a property of a (super-) node in the tree: ---- :PROPERTIES: :header-args+: :tangle build/package/covid.19.data/R/aggregate.R :header-args+: :noweb-ref aggregates :END: ---- (that sets all otherwise-un-attributed code blocks in that node, or any sub-node, in the tree to tangle to the .R file, and to be "embeddable" in other code via, e.g., things like this: ---- <> <> <> <> <> ---- ) hope that helps. cheers, Greg