From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mFtiDo1ss2IcEQEAbAwnHQ (envelope-from ) for ; Wed, 22 Jun 2022 21:25:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +G9cDo1ss2Ig3AAA9RJhRA (envelope-from ) for ; Wed, 22 Jun 2022 21:25:01 +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 C179E3A0DE for ; Wed, 22 Jun 2022 21:25:00 +0200 (CEST) Received: from localhost ([::1]:51218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o45yF-0006VF-UH for larch@yhetil.org; Wed, 22 Jun 2022 15:24:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o45x3-0006S4-35 for emacs-orgmode@gnu.org; Wed, 22 Jun 2022 15:23:45 -0400 Received: from mail-dm6nam12olkn2060.outbound.protection.outlook.com ([40.92.22.60]:29187 helo=NAM12-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o45x1-0000GY-2J for emacs-orgmode@gnu.org; Wed, 22 Jun 2022 15:23:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jTZr5Tt5rl1fmRsvAH2WH5BcLqN+7mBD8loqPJQH7eS/qoT8XCuVLq3T0UvDaGhqfmur71W2Ws2hLYUiphOf+ExDWDCPjDIH1qe4RQM67eU2u2F5VJYbc70hBp0OgOpihnQKM9pZAXo1N9Cv5j9Pmv4n6TKqESPuTAbbkNgMaY8mkSGmLy+Kg1qPOaN+awBWbHUo0gcCSM/TYkOtdh0eYl4ok4jb1d4d8z28IY7Gmw3aDLL6bSQZJV3UlGEd6xy2ntHsxqEGakuzC3vPIDJ/T3o5uIvdZbNY+KbWNrtj0z2yMPln+8emESsRXuSWnD4pq6zyg5VUKQAb+FjDeNGI1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EZzT4VU9HpD02uEMmHjkRk3GWnK5I9DND0qkHXsitoU=; b=Ct+B8OGjH0C60ylniWogT7gaXEki5gMK1N3BS2TB4pddMPX992PTbIm5tU5w9wm/HSpV9qIkugYKNsqCi3lqDi6iN9AiQoj2xu4Ba48Ae6F5stB+kO1mAdrp3QtVaOMl6wkHSSQHC3P/ccvzLV3NB0d8jsyHZcK6wMLRLaBwjrR9vVx4ldzWLRfsCwqqtX7cn7z5WFN+unhSQm+Xmum86De1bhpO4bnCu2juXusne9xcAPRv0Eg+5rU3GZO8s0TwKOOLDHFN5XRM6ePmnEDo8vf9Y8IBfkwgTV5H3WRyLotkfHJWoedwB6mdxc3PwAhVu8rXYL7jVs5y8dBMdf7ANA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EZzT4VU9HpD02uEMmHjkRk3GWnK5I9DND0qkHXsitoU=; b=CR+/fZlCJ6vBdrx1eALY05uyuMThHIM/hyCLoIytRDkcgcxaNCHYtuT390Tq7/+3yXICb8d7UzcVplTaz952s1ySfA9u54uJXBtsl+Mj8++UC4nBhMCUqcgaD6NHxLdf6BA1l9R0Ny18w7EvoXKIcIK6VUYCZmaLV4/g150pYurFpaARtx4zfZ9Qeh6DVzSndcGc5B4TJw5WynhvbSJ1dI3V5jxFeZBS/WTVdtMkJyoCCrypcof/O7j2TAgy9jv8fIqhvh7XHS6w66w8A/Ynkjh/X4C0SVreehDBRjT85Fzb44RqlY9nj6mdOYu7bTUasfp8LOVbEfwK8YjCsXkIxw== Received: from SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) by CO1PR03MB5907.namprd03.prod.outlook.com (2603:10b6:303:6e::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.15; Wed, 22 Jun 2022 19:23:41 +0000 Received: from SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::7c01:f3c4:11c6:4050]) by SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::7c01:f3c4:11c6:4050%9]) with mapi id 15.20.5353.022; Wed, 22 Jun 2022 19:23:40 +0000 From: David Masterson To: Bill Burdick Cc: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= , orgmode Subject: Re: Org and Hyperbole References: <875ykvbffg.fsf@posteo.net> <87a6a5gf1p.fsf@posteo.net> Date: Wed, 22 Jun 2022 12:23:38 -0700 In-Reply-To: (Bill Burdick's message of "Wed, 22 Jun 2022 17:35:37 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Content-Type: text/plain X-TMN: [L8IrSTSjiL9YYZWrLXGYXkDeu5dgnyntjDjTRMQdDL0jhJpdZK0Tvd0U5AnihVgV] X-ClientProxiedBy: BY5PR17CA0032.namprd17.prod.outlook.com (2603:10b6:a03:1b8::45) To SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) X-Microsoft-Original-Message-ID: <878rpobiyt.fsf@gmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 2 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2919277d-09d8-4644-98eb-08da5484b6b0 X-MS-TrafficTypeDiagnostic: CO1PR03MB5907:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K+NfE7z/hPCFx1hlP67+7vfVBLiCUU6ZZdIDTuRLR8xsET9EhrUbGTtWZu2okEpDz+wMWeACiyZH+X2is6YecNARbGjKUK/ocM3LyuzWRHuTKi0EK0HA8FV9N9Kb/d7wJXJivZUr6SRfzM8PZe2/scWxunhX6nzEnX/2aXTPIBrQoZ6HbRl4xvqdhA7FQdOrvPvdJbV8IFyjQVsY8JkX6bPbt5qmuSbzET6tHJ19IIaPqubHG86ghSQmFzDQNKFhZApLHBL4M3HbbFWSOdJumxo4Uvw0xtgpLCyWAmDH/YrHtgPAZ0COarWLgJj/2wyMJq2smj3aKcVH8BdCKoJytwJSd+VePIeYZN5D0+uwDVMvwVFXJSL6RI6v7qwYI75rdF/ebXQZBv6JRkScIp8SGK0oyKkTB3MOLgCSRgDcLNJRdZfHlrV/Cq3W0sXA60xbs1JbBgPkuViQyPzRYJreOuHBUToAwRyzAGLS5W7BtAY0PHx5+PtsVYE8HXSyxUZ0DCpnFdc9NREQQOreKcBmcuiHtILOnLUOAAx0ggz846YenDAdksa1lT4LLisXXaUp7aDhukzPTAs3a6TMhjiEFnF5jJYxzuSudCYCZqTG4Nm32Xu9xf8Pwi6T46hIdOTS X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?WbHEZtJccRUGK9hfgBYfmJw4nV4XUSs7g40iz/B9/H1szsBYKQjH9KEsU6HS?= =?us-ascii?Q?qAN8q7jXjyWD7tD0O5DKtS3VHm8lS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J/YsCJyyGyGTga1XXhIOBSBMklQWXIk8KvZLIZhg25Gx0XN0YMJLu?= =?us-ascii?Q?Okg7k7BFfDiwnsH0IQUIhK7je6zfEdM/o48eusCkwlG2PQczCidbSm0AiDVV?= =?us-ascii?Q?eLp1zTyByAm3rVpivCXLf9i6+dEYmlD/C5xNW3sRX0e1DEIAOyAoackk5jk0?= =?us-ascii?Q?7wRrym48A7bSNKSKPXcDarql1Dvd9MhTwW68PCbcA96ZjEbTwtchkCkCZ0fY?= =?us-ascii?Q?th8VUDP2a8Ps1yb9xulfnjS7JWI+E40OIYJLBu1Cy2umCJ+BEDC+oYVVBkGn?= =?us-ascii?Q?MEE/kBf9Bvb05ZDG+Kq2HtId9Hfytz93z3LlVr17vKn+3p6jvwDQu87tmNZW?= =?us-ascii?Q?d3SMb1dN+4wdp/+T+PXNq0kAIDxVFFHxq/4oqUdJV7K8L9prBuCByORmI2ou?= =?us-ascii?Q?6mbEovuxu9e/814BrkrXoPt8F6852ItkLHSS1vaMrmyc+HluzKgYKaJcrgVO?= =?us-ascii?Q?l4wX5AdP226cMPBhS8myS3VAgP+qxr4UZxpPsHVoD5s+dSbwovKqJNI5BwVe?= =?us-ascii?Q?C4byeScODWYp1H+7LoiHeWEGhuH2Wd0FIyyw4AJYEivpWFstt2iIVFHUuw?= =?us-ascii?Q?=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2919277d-09d8-4644-98eb-08da5484b6b0 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR03MB5455.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2022 19:23:40.6600 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR03MB5907 Received-SPF: pass client-ip=40.92.22.60; envelope-from=outlook_98C99531806B1C22@outlook.com; helo=NAM12-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655925900; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EZzT4VU9HpD02uEMmHjkRk3GWnK5I9DND0qkHXsitoU=; b=rPOS1l5WNO7tbfp5JVKd30/N2OKsmZ0WheHHrsdVnKgFtjGRG6EBKHM/PlMOd4P4UAUpb9 ZzsH1esPDTFtMZHfOmqmIVGrmoolzbtmysH4xjKKND8bfzs0r/LhL7lFCNG5uu0l+YXY/S DsrhiwEIzEqc2+HmIx+JRKbJW31deEs1ptIy4wdO/FL7f236iVrP/jJLjQ/mNVf/Iavmav oLMxnWFaSWrSL9mzomxyBFVxk9lVqHj8wCyKDhtd5PCbPmzGeUEumRqSAGMG4K0sLMGMkT yljoLUa4FuJVFPawVUAAXS3QOTiLGYnKJEPgBxMt/N1/PU/MtzYCNymLAWxwnA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1655925900; a=rsa-sha256; cv=pass; b=WmwmK0KcLz/oRETBEmZD++QthOWIah6OseN2RlqHzhLaKyVJFUN2xwto5i5FWHHYA/V9He mfV9R+PyfZFlzXMkgRUb55lOT5lKmkJC4fAQcCKadIunzZoWq3DQ5YT/nzghz7Ks2nzfZQ VoDhN1GZGgLmHp0pCoEx8ByX7I+siTMP2yRLOu61Oyx04inPnbkEVCyUZfF7TFql3i2bbL 13moiCQN0oKpXK5WArIgy36pt8yUyqsXO/RoU8ptgy307cv68SpfknuDgsl/9fBF/NHGK1 QY58BtALAAQj6Tu7jQMAZHyc8hbS/b7mDeobDu6TesprK9S4l1EUBu0y7wh69g== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="CR+/fZlC"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="CR+/fZlC"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Migadu-Queue-Id: C179E3A0DE X-Spam-Score: -1.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: uTFlq+1Bxr/l Bill Burdick writes: > Here's a hyperbole-org integration that lets you use org-mode tables > outside of org-mode files. Shift-middle-click a "recalc" button and it > will recalculate the table right under it (this idea is from an old > version of the Oberon environment I wrote in Java, by the way). > > Here's the code: > > (defun bill/calc (end) > (goto-char end) > (re-search-forward "\n") > (when (org-at-table-p) > (org-table-analyze) > (let* ((table-start (point)) > (rows (1- (length org-table-dlines))) > (table-end (re-search-forward "\n" nil t rows)) > (inside (<= table-start action-key-depress-prev-point table-end))) > (when inside > (goto-char action-key-depress-prev-point) > (org-table-maybe-eval-formula)) > (goto-char table-start) > (call-interactively 'org-table-recalculate) > (org-table-align)))) > > (defib recalc () > "recalculate a table" > (save-excursion > (let* ((pos (point)) > (eol (progn (re-search-forward "\n") (point))) > (bol (progn (re-search-backward "\n" nil t 2) (1+ (point)))) > (start (progn (goto-char pos) (re-search-backward "<" bol t))) > (end (progn (goto-char pos) (re-search-forward ">" eol t)))) > ;;(message "pos: %s, prev: %s" (point) action-key-depress-prev-point) > (and start end (string-match " ].*" (buffer-substring start end)) > (hact 'bill/calc end))))) > > Here's an example table you can put anywhere. Just shift-middle-click > on it to recalculate the org-mode table. Also, if you type a formula > (and keep the cursor on the same line) and then shift-click recalc, > it'll handle the formula: > > > | a | 12 | > | a | 5 | > #+TBLFM: @1$2=3*4::@2$2=2+3 Isn't this the minor mode orgtbl-mode ? -- David Masterson