From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yKy6Klhf52BNSAEAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 22:26:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IMlAJlhf52AMfQAAbx9fmQ (envelope-from ) for ; Thu, 08 Jul 2021 20:26:00 +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 DE4D413707 for ; Thu, 8 Jul 2021 22:25:59 +0200 (CEST) Received: from localhost ([::1]:38548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1aas-0006Ox-La for larch@yhetil.org; Thu, 08 Jul 2021 16:25:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1aV4-0008P9-Bl for emacs-orgmode@gnu.org; Thu, 08 Jul 2021 16:19:58 -0400 Received: from ciao.gmane.io ([116.202.254.214]:55904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1aV2-0000ul-VC for emacs-orgmode@gnu.org; Thu, 08 Jul 2021 16:19:58 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1m1aUz-0003UG-9c for emacs-orgmode@gnu.org; Thu, 08 Jul 2021 22:19:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Nick Dokos Subject: Re: how to document/comment a complex org table formula Date: Thu, 08 Jul 2021 16:19:45 -0400 Message-ID: <874kd4y2vy.fsf@alphaville.usersys.redhat.com> References: <06ce430f1b49fc78159c5d8dd85368d3cbb1597c.camel@aphp.fr> <875yxpb7el.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:KXOejx6pTHWlwwyYIwQWJvgcouE= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , 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=1625775960; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=FANd1ZPZ7wPfkEJkrGrc82YEmEy4uk4Ks78D8OX6m2k=; b=TZh+dKC+7CVIfOGLyOL8IMFotKZUcoAC0KO5K5+QCQsjjS51dil/Y2jNJxECUTZqcD/KQz 7W7SkYw2MRAIzUXaMPhYDtL+SxpLJPrl643TvZmBWTeUZqfLQ9zck4dW9n2HmX8tZuA3s/ kIUruw+bx6vGqrlZ+segopX/pwyiucEhjX+Dm60koQvKKE59tFPmSCvdp+OvHmIaHdjSlw Rn+JW2AOMfyPWJm/ixBD75cbXZpWk2GEUrQbYsSxmZUteR9rVKhSBq4in6k3Xpgzz0kqr3 mz+VgTO03X9P6tunFSJA0pZ5+432LJZhXEBeZTrgCQd9lDw1r6vnCPKMUEcOxw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625775960; a=rsa-sha256; cv=none; b=hUq9EC37AneBKgjIIEo9FCVrir8OhU3R7fGxz34Z6WckXvTaY3iI/TJUTglYqpIYF7XKCo 7Kp7pCgbvpiIYSlo9JQoWBUvaVtb7acCQoruahtZCFeAwRxchpFo0mwoLjpoKq6ORCx4dq PSlQYET4xd5+QszNKNn5W6ekbE+l2El9ceE3SdBP0+3HagZYNFqn/5BZBCdgzYl/2mawcz 21Gd3XlT1eayoJHpLzAWWyR8Bdw9xD0jZ/CeQXWVqQpLC7965RWxuXwsl6mrYkf8xiOFpB 4LzIlWzr4jImCXm8OV6Xd7eEO8hSV4ropwmLMp/X2wXNizTzfbmYQ6X8pJ8EwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (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-Spam-Score: -1.81 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (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: DE4D413707 X-Spam-Score: -1.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: wFqnAx7qJ0+H Uwe Brauer writes: >>>> "GdaO" == General discussions about Org-mode writes: > >> Limbic answer : >> - create an emacs-lisp function doing what you want >> - comment /ad libitum/ >> - call this function in your spreadsheet. > > I hoped such a function already existed and somebody would point it out > to me (I searched the package-list-package list but nothing came up) > IIUC, the function would replace the formula, so it's really the formula in a different guise, similar to what Eric F. was talking about: implementing the formula as a source block. Both of them put the code in some other place, where there is space to add comments. IOW, it's not a general-purpose function. But I may be misconstruing what Emmanuel was suggesting. -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler