From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OLfGF8W1tGK6gwAAbAwnHQ (envelope-from ) for ; Thu, 23 Jun 2022 20:49:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WHR2F8W1tGJAbgEAauVa8A (envelope-from ) for ; Thu, 23 Jun 2022 20:49:41 +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 105811D79D for ; Thu, 23 Jun 2022 20:49:41 +0200 (CEST) Received: from localhost ([::1]:48602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4Rtb-0004yJ-Rv for larch@yhetil.org; Thu, 23 Jun 2022 14:49:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4RsO-00044Q-Bq for emacs-orgmode@gnu.org; Thu, 23 Jun 2022 14:48:24 -0400 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:34810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4RsL-0006WB-LX for emacs-orgmode@gnu.org; Thu, 23 Jun 2022 14:48:24 -0400 Received: by mail-lj1-x22e.google.com with SMTP id e4so212321ljl.1 for ; Thu, 23 Jun 2022 11:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4EDRnyaOk0cCy2m+ZuxMwpzlgqd4E/ZSoRNQM6Jzbvo=; b=jtcK86X/nbn7eX1GcAlZl+LKSMv5JeckTa8SIF9RKn8n7BmM/c4pIpFPm5+SXZJUYm +K72Ib0uq8gvi1za1qoxduUApAp+EtjcmQcMPaetrneSbvVIRFRkEufN9uz+JhEId4Ww s/2Aq9BgBtUm3LbbM7wE9Zemprp6lNnddXM9VcA2eahqlja6E6tXRBXvdf2dEQwU3G9Y Nrjlaywc9MzDF7FhKs+FuWGbf+C1SXG+k8qtCqg8GRiTAPfF4rFy4/pr7JVeuRFj2/bu sSHQAsMUbHxM1wVjkJPlHfozjqLk529+Vh8s4akHa49iXp5PRkGkxpnRt+u4Cuz8nj8P JscA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4EDRnyaOk0cCy2m+ZuxMwpzlgqd4E/ZSoRNQM6Jzbvo=; b=OnK7s48AIe+ojkkx+qtRLyP56rptCEad4D7O/6mBhcDJVc+Q1sbZPK9drRkVRTvfI2 VIAPx3Ibulzwo3cEr7+//KfzD9mvsQyvspMYqCED/OwZjvf8xREd3q8iW5xb8IN8E2kn DdgggvjiQ/jYRDDqk7f7UjCyvGlnNtlUQsX129jSdLVj3ZhHJyJI0fp2sT6ObYuqnwIZ 9g79Sr3Nwy0HKS/ImtCnCX65Dtpg+wGAK2XkDL0NRBSK9Nb65q8E1dtZMeYMnJaZjhR/ y9QJ+U/UyjKIkxJfHxd4Uw8uoedNBg7N6sc5OkJaSYufryVQus5lDxYG6QcNiQbBGivc oYoQ== X-Gm-Message-State: AJIora8RfF7jo/4GTdIQWjrm9WB2GFFwaXaTI5wPNbB+pI1URjoQBRGf oUgQ+iZknT64O01bUVtaogyHFad/p25RPsfp2+FXDhdlr4E= X-Google-Smtp-Source: AGRyM1tqtBb3681tPSmliBb81AV2AKCwv35gWku5HBj9MbEzU3pZQBV8F1xlmGMR8tZaJGU/9qnUmEI0DUMTQteOfDI= X-Received: by 2002:a2e:a453:0:b0:25a:96d0:b15 with SMTP id v19-20020a2ea453000000b0025a96d00b15mr1882264ljn.228.1656010099323; Thu, 23 Jun 2022 11:48:19 -0700 (PDT) MIME-Version: 1.0 References: <875ykvbffg.fsf@posteo.net> <87a6a5gf1p.fsf@posteo.net> In-Reply-To: From: Eduardo Ochs Date: Thu, 23 Jun 2022 15:48:07 -0300 Message-ID: Subject: Re: Org and Hyperbole To: Bill Burdick Cc: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= , David Masterson , orgmode Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=eduardoochs@gmail.com; helo=mail-lj1-x22e.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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656010181; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4EDRnyaOk0cCy2m+ZuxMwpzlgqd4E/ZSoRNQM6Jzbvo=; b=jpV4tl4JBkKCL1eypQ8neDUpqsNbnmos6E22R0863Gtah87lbDglyJhIKrkP0o6Hf0GnV5 W3Dv7EQNIC/Rhke7J0IAsxSbQppJy4urvJl/u5nQtCAwbiry/1WCQdrXr63lwzDzD+CFpe HSqUZMQ7z9fYBhWFV0S2qGFeV37fn3Kgz/uUeHFWJXTp94oh7kXmtCqjfdX9+UkbsVbsJV AujZh1Y5Mfj6vQHFJIOJOoG35rHncLB1Icw/PU+KX/eyBK+VWHz82olTxDCD/uu+gm+s+S 9aEyNelyfx2UmzYcBqtIapDtRIAG10M+Z1xVNQAK00Nlj3T5hjEMmehyVepJFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656010181; a=rsa-sha256; cv=none; b=Gm9NJZAu5OyYs9ioPhadZWbpvoq8KfFYDkcLRIf8V9FBJDTrsOj+6hrfQ9PUdNhXPvytLj FiLy9PI4z2pIjKyH4HzKF8iR+KQ7vZm/GYUOhtC5LA8Myy3HBF2tgS4S4KCeWgRl7SEnC0 Su8kDY79OJlEDvZ2Ug9Wpfwd9UjVmnsMTibyTvVqKnS2yCLUsh6QM4FVI6oSwSryiGmnLV 2hocNeZsn6sJ3F3cmxE9YXVETvucUGHL2zQxfMVBhFJU9bum9Kgas7yfC+dGVKj3eRDncK 7FvfhiWhOXBGwz4nsg7QZGEAht7GAEfprjBiUSsDHV50QG3o/L2KzeA9L1pk+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="jtcK86X/"; 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-Migadu-Spam-Score: -5.96 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="jtcK86X/"; 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-Migadu-Queue-Id: 105811D79D X-Spam-Score: -5.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: xItJCGPfnjgl On Wed, 22 Jun 2022 at 11:36, Bill Burdick wrote: > > Here's a hyperbole-org integration that lets you use org-mode tables outs= ide of org-mode files. Shift-middle-click a "recalc" button and it will rec= alculate 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 (<=3D 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-poin= t) > (and start end (string-match " ].*" (buffer-substring star= t 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=3D3*4::@2$2=3D2+3 Hi Bill, can I ask you for help on something that looks easy but that I'm not being able to do (due to temporary braindeadness)? How do we reimplement your button as a sexp that can be run with C-e C-x C-e? In eev all "buttons" are simply sexps that can executed by variants of eval-last-sexp - as explained here: http://angg.twu.net/eev-intros/find-eev-quick-intro.html#3 I'm trying to translate your to "eev style", but I'm failing... Thanks in advance! Eduardo Ochs http://angg.twu.net/#eev