From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: ox-hugo-like "DWIM" cope for other exporters? Date: Thu, 27 Sep 2018 16:09:05 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a972130576dfe674" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5caJ-0002pq-O6 for emacs-orgmode@gnu.org; Thu, 27 Sep 2018 16:08:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5caI-0005ag-IC for emacs-orgmode@gnu.org; Thu, 27 Sep 2018 16:08:27 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:46685) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5caI-0005ZT-98 for emacs-orgmode@gnu.org; Thu, 27 Sep 2018 16:08:26 -0400 Received: by mail-lj1-x22b.google.com with SMTP id 203-v6so3608638ljj.13 for ; Thu, 27 Sep 2018 13:08:24 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode --000000000000a972130576dfe674 Content-Type: text/plain; charset="UTF-8" Kaushal's ox-hugo includes a "Do what I mean" scope which is different from other exporters I've seen. It goes up the heading tree looking for a heading with the "export_file_name" property set, and exports from there, or if it doesn't find one, from the whole file. The code is here: https://github.com/kaushalmodi/ox-hugo/blob/2be4bc02629bee8848f868fdfc35d9904a82d53a/ox-hugo.el#L3581 I find this feature incredibly useful, and I've copied the function to work with ox-reveal as well. For both of these export formats, I tend to write iteratively, checking the appearance of the rendered document as I go. Though it's not particularly difficult to move traverse the org-document before calling the export dispatcher and choosing the subtree scope, it takes some mental effort and tends to distract me from writing. Kaushal's code really helps me with that slight relief of mental burden. I've just been sitting here wondering if this scope would be worth introducing at a more basic level, so that it could be available to a wider set of exporters. Have other people been making use of it? What do you think? Thanks, Matt --000000000000a972130576dfe674 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Kaushal's ox-hugo includes=C2=A0= a "Do what I mean" scope which is different from other exporters= I've seen. It goes up the heading tree looking for a heading with the = "export_file_name" property set, and exports from there, or if it= doesn't find one, from the whole file.=C2=A0=C2=A0 The code is here: <= br>

I find this feature incredibly useful, an= d I've copied the function to work with ox-reveal as well.=C2=A0 For bo= th of these export formats, I tend to write iteratively, checking the appea= rance of the rendered document as I go.=C2=A0 Though it's not particula= rly difficult to move traverse the org-document before calling the export d= ispatcher and choosing the subtree scope, it takes some mental effort and t= ends to distract me from writing.=C2=A0 Kaushal's code really helps me = with that slight relief of mental burden.=C2=A0

I've just been sitting here wondering if this scope would be worth i= ntroducing at a more basic level, so that it could be available to a wider = set of exporters.=C2=A0 Have other people been making use of it? What do yo= u think?

Thanks,
Matt

--000000000000a972130576dfe674-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: ox-hugo-like "DWIM" cope for other exporters? Date: Sat, 29 Sep 2018 14:21:56 -1000 Message-ID: <1538266916.11357.0@smtp.gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-LkKbo0k4x0WN4IraC4C1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6PUt-0000iF-4n for emacs-orgmode@gnu.org; Sat, 29 Sep 2018 20:22:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6PUo-0007fO-7R for emacs-orgmode@gnu.org; Sat, 29 Sep 2018 20:22:07 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:46872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6PUo-0007f0-0g for emacs-orgmode@gnu.org; Sat, 29 Sep 2018 20:22:02 -0400 Received: by mail-pf1-x432.google.com with SMTP id r64-v6so295485pfb.13 for ; Sat, 29 Sep 2018 17:22:01 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: moptop99@gmail.com Cc: emacs-orgmode@gnu.org --=-LkKbo0k4x0WN4IraC4C1 Content-Type: text/plain; charset=us-ascii; format=flowed Aloha Matt, I've often wished LaTeX export had this capability. I'd certainly be happy if this were a feature of all the exporters. All the best, Tom --=-LkKbo0k4x0WN4IraC4C1 Content-Type: text/html; charset=us-ascii
Aloha Matt,

I've often wished LaTeX export had this capability.  I'd certainly be happy if this were a feature of all the exporters.

All the best,
Tom
--=-LkKbo0k4x0WN4IraC4C1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: ox-hugo-like "DWIM" cope for other exporters? Date: Tue, 2 Oct 2018 13:44:07 -0400 Message-ID: References: <1538266916.11357.0@smtp.gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002b490a0577427a73" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7OrH-0001GA-OH for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 13:53:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7Oj0-0000wf-Ho for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 13:44:47 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:33815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7Oj0-0000w6-9h for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 13:44:46 -0400 Received: by mail-lj1-x235.google.com with SMTP id f8-v6so2582840ljk.1 for ; Tue, 02 Oct 2018 10:44:46 -0700 (PDT) In-Reply-To: <1538266916.11357.0@smtp.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: tsdye.com@gmail.com Cc: emacs-org list --0000000000002b490a0577427a73 Content-Type: text/plain; charset="UTF-8" On Sat, Sep 29, 2018 at 8:23 PM Thomas S. Dye wrote: > Aloha Matt, > > I've often wished LaTeX export had this capability. I'd certainly be > happy if this were a feature of all the exporters. > Hello Tom, Matt, I can work on a DWIM scope that's generic. For ox-hugo, the criteria for the start of export scope is simple: EXPORT_FILE_NAME must not be "". I believe this should apply to other exporter backends too. (I needed, that criteria can be made configurable too). @Nicolas: If this another scope can be baked into the existing exporters in Org source, I can get working on it. --0000000000002b490a0577427a73 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Sep 29= , 2018 at 8:23 PM Thomas S. Dye <= tsdye.com@gmail.com> wrote:
=
Aloha Matt,

=
I've often wished LaTeX export had this capability.=C2=A0 I&= #39;d certainly be happy if this were a feature of all the exporters.
=

Hello Tom, Matt,

I can work on a DWIM scope that's generic. For ox-hugo, the crite= ria for the start of export scope is simple: EXPORT_FILE_NAME must not be &= quot;". I believe this should apply to other exporter backends too. (I= needed, that criteria can be made configurable too).

<= div>@Nicolas: If this another scope can be baked into the existing exporter= s in Org source, I can get working on it.
--0000000000002b490a0577427a73-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ox-hugo-like "DWIM" cope for other exporters? Date: Tue, 02 Oct 2018 21:40:02 +0200 Message-ID: <87h8i4w31p.fsf@nicolasgoaziou.fr> References: <1538266916.11357.0@smtp.gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7QWh-0002jl-8y for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 15:40:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7QWd-00077p-B2 for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 15:40:11 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:60307) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g7QWb-00071b-UC for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 15:40:07 -0400 In-Reply-To: (Kaushal Modi's message of "Tue, 2 Oct 2018 13:44:07 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Kaushal Modi Cc: tsdye.com@gmail.com, emacs-org list Hello, Kaushal Modi writes: > @Nicolas: If this another scope can be baked into the existing exporters in > Org source, I can get working on it. Sure, go ahead. Don't forget the tests :) Regards, -- Nicolas Goaziou