From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YGy0JK6lJ2akLgAAe85BDQ:P1 (envelope-from ) for ; Tue, 23 Apr 2024 14:12:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YGy0JK6lJ2akLgAAe85BDQ (envelope-from ) for ; Tue, 23 Apr 2024 14:12:30 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oWsXof5S; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713874350; 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=t9blVDMAapJfdgNcQNR6/5ahRxrYHQdYyZZWB0xjV2o=; b=e+Zpqx3bGJTueproR7riUU+kE/Xu9UPQvha0MfaF5JgxfMZT40p8aJ/yvWxy4HhvL4kuTY 9dEN7LDOyCPYRxYnPQWQbjKCBi/z/hOGO9BFjQo4Cf4YeMzMTr/jwSebn6Uz7c1eJ+8A4Z Big1MRJ8zb1H9YpqV2XSh/jN8E5kxnTFn1RtI1G/N4Wy+CIbirDuppOgqXU9ETGzJpQlVU VlvEEP8JDUahmE12MCYq3tl2sLyA+AfQmKRLJoy0MikpBGiWbuTuLB277T68dNIKhSQO9O +hugY59FJurfj1r8K5kBI/NG8DpuBoyGg1O+SdUaFOqtEVKklcUtG7XNdVveOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713874350; a=rsa-sha256; cv=none; b=FHo6PBdiY9XojpCA64LTJnxwRukGmWKiIZZzjNgF54NREA2dGsMPngWBwyyj4QzigA4w11 WPkt7BK+0Io3sCszItX54KlHvOWnbNMqQ9bP5gzrhlaeixhVGeHrL42fDHYR00UBSLztt/ nfe/t7odajBuWn4p34iGhwpwJfv0UDQLDelTqoUUNuZyuCIVM1Fu7WrVoXU74aoj5++3a2 SkPwc6CeeU1ATAo5dZt/bUMSduMSmyU0j1yKqF7/4/t2O9BfU6QiLqSOIo2Vi9LRKT22+R lpiXPaYkTNxPtmAEUosZ6jjQ7G4BPcIJyoURO2zV+/gUxkNEfFDGLkpF0TqPuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oWsXof5S; 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"; dmarc=pass (policy=none) header.from=posteo.net 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 2EA77643DE for ; Tue, 23 Apr 2024 14:12:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzEzg-0002y2-Ut; Tue, 23 Apr 2024 08:11:29 -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 1rzEza-0002uY-CQ for emacs-orgmode@gnu.org; Tue, 23 Apr 2024 08:11:24 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzEzW-0007Ar-72 for emacs-orgmode@gnu.org; Tue, 23 Apr 2024 08:11:20 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 10283240103 for ; Tue, 23 Apr 2024 14:11:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713874276; bh=52M9okzXne/V+VANw5AiC6D72iva6VRFhtSvM5fkHzc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=oWsXof5SZbfymMbswRt/gOrX+DfLJr9lqm4H47i6TdAPg5hCxWEdJ6b1vw2+Yp+Vu hB44H2yLBOpv56NdpqRs3ZSFZMD32JpSlLTwNJIpOT41LtjW9tB3DgTC2kTM6GBcid F/RyfDo7MpE5lMRvxym+AHXOHJZ6nJAgImJpRH7B7bEan0EVx8Ypa0oOX/gW5SBAIp o93oK/sco7vn3rl4QNFxk84PFZpGu9aXNYy0jCC9eaCoMLoocqKYbco2/P+o8N0vpz 8KlRyPm7tyCRIAObZT7SOrGWJYm7W+ZFOHv1+jtikFvfqnzf2G1YxRNiLLXZqM79L2 4hozlY49A9Okw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VP1Dg0qyPz6twj; Tue, 23 Apr 2024 14:11:14 +0200 (CEST) From: Ihor Radchenko To: Jeff Trull , orgmode@tec.tecosaur.net Cc: emacs-orgmode@gnu.org Subject: Re: Can we add PLOT to org-element-multiple-keywords? In-Reply-To: References: Date: Tue, 23 Apr 2024 12:12:09 +0000 Message-ID: <87o7a0p9ba.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 X-Migadu-Spam-Score: -6.12 X-Spam-Score: -6.12 X-Migadu-Queue-Id: 2EA77643DE X-Migadu-Scanner: mx13.migadu.com X-TUID: CuEGSR9a7wD3 Jeff Trull writes: > I notice that multiple #+PLOT lines before a table will be coalesced and > handled as one. However, this is > accomplished through specific code in org-plot.el that does a reverse > search through the buffer for > additional lines. org-element has a built-in mechanism for this, > org-element-multiple-keywords. It seems > like it would be useful to add PLOT to it. Can that be done? If not, is > there a way to temporarily add it for > an exporter (i.e. after the export is launched but before the buffer is > parsed)? Yes, it can be done. However, in addition to changing the parser, we should also make use of the change in org-plot itself. I tried to do this, and noticed that `org-plot/gnuplot' promises to parse #+TABLE options _after_ the table as well. Affiliated keywords are of no help then. Further, I reviewed the two calls to `org-plot/collect-options' in org-table.el and noticed that the second call is no longer doing the right thing of scanning #+PLOT lines after the table - since commit ac3148ef8 (by Timothy): org-plot: Don't move point when plotting * lisp/org-plot.el (org-plot/gnuplot): Expanding the `save-excursion' block to include `org-plot/goto-nearest-table` prevents the current point from being moved, and doesn't affect the rest of the function. Timothy, may you please take a look? We may drop support for the #+PLOT lines after the table - they are not really documented in our manual. Though it will technically be a breaking change, so I am not 100% sure. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at