From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uAoTKk0NkGKjqQAAbAwnHQ (envelope-from ) for ; Fri, 27 May 2022 01:29:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ADD2KU0NkGJxSgEA9RJhRA (envelope-from ) for ; Fri, 27 May 2022 01:29:17 +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 5841345C17 for ; Fri, 27 May 2022 01:29:17 +0200 (CEST) Received: from localhost ([::1]:54730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuMup-0007Nb-Uz for larch@yhetil.org; Thu, 26 May 2022 19:29:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuMuH-0007NS-H5 for emacs-orgmode@gnu.org; Thu, 26 May 2022 19:28:41 -0400 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]:35611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuMuF-00014Y-RI for emacs-orgmode@gnu.org; Thu, 26 May 2022 19:28:41 -0400 Received: by mail-ej1-x631.google.com with SMTP id y13so5761634eje.2 for ; Thu, 26 May 2022 16:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=NPE4KKvbeHkLCfbfl/LgRsFytAku9yVCmPNQXckGGBM=; b=inHSBM+cViDfFaE4ZYmxtA3e94+2VdB5NdZylCVt9VH4gZ9LA+XgCBKouhY99vJJdo H+nwaQ9Pv6y57A7EIKJLKodatN9Tk2kU7O0+drEu8+B+pZlqyLn6qungf0Xw3AsAN+sZ uA8oU0hf75KbxFiaeisS+2wlB/MZIB5KvsB3DMHOgs+rOMZs+UTSXgH3xSnfsI1rPVLl SXoPefeLU+ogUp6GIRC931EnQ7xJp4PTSPi1xPEIFiELqCmz5NxHwGH71VQMgDvTmNEv amFHqtVAQ/2t/H5rvGnj2ftEs+bsoAruV2vn6n6r9cmV+YhvBE4PJEYKslC1CKp55xfU E2hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=NPE4KKvbeHkLCfbfl/LgRsFytAku9yVCmPNQXckGGBM=; b=TJwj5INo44EFqnmkFbfqsAqoW2CaTsLTmDE8R2ddDB8b+zSvj6lESt0MFyP9qna01h MY7DaPaCniQH18cp3FOl7yN94PNkxd8J4VgqGPrAM+lUPTJWxTgTuqzIYXmwxj/llNzk ragOylMYsoRliFYuFOxrWpRx/shZ++f3HD4EmKQ+io82DxK2bOPH1L/iQRG/asztlihJ RYTenmsVXh10ZrpYnjB9423xAG/z1Btcqov2WagaDk1yrvaEfp5grkTYrdZlaB+DRTS0 Sr3Tk8pQFlJRcxbcaR+hsXhxBzYwkdtK+9DTvvzoDnNCtHw3ELysp6X/aCq3xi0e06Gl PSOQ== X-Gm-Message-State: AOAM531QxEjIe6ejCFuwP0S1BZmasm759pqaeP2C3dshUJnxzwgHdFIf DTw0iapVbHkvSLadfIF7R46rgvT4EQignhmh7YV0MpdknB6kIg== X-Google-Smtp-Source: ABdhPJz4Z5bymAiMtCEbtRMYlSpF22mEIebMD556dbfxMHZaTctuU9yzGnv5BxI2/PE3JEweoTdeMsbNLwDCidXIdLM= X-Received: by 2002:a17:906:c10:b0:6f4:6c70:b00f with SMTP id s16-20020a1709060c1000b006f46c70b00fmr35838093ejf.660.1653607718426; Thu, 26 May 2022 16:28:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:478b:b0:6fe:f76c:8596 with HTTP; Thu, 26 May 2022 16:28:37 -0700 (PDT) In-Reply-To: References: <877d69r88a.fsf@mat.ucm.es> <87pmk1k4k9.fsf@mat.ucm.es> <878rqp6n2u.fsf@localhost> <87ilpsx2su.fsf@mat.ucm.es> <87czg06c9z.fsf@localhost> From: Samuel Wales Date: Thu, 26 May 2022 16:28:37 -0700 Message-ID: Subject: Re: export regions of a org files to other formats (most likely only to a buffer). To: Ihor Radchenko Cc: Uwe Brauer , William Denton , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=samologist@gmail.com; helo=mail-ej1-x631.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=1653607757; 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=NPE4KKvbeHkLCfbfl/LgRsFytAku9yVCmPNQXckGGBM=; b=hFG1MrYl/blW8ePIl0ipbrMtzaEwOtNl/GKDPHKKSEGw9QouJey5Et9xSAeEBLZYdoFMQv r52YeuSGkasmH9R4V2vQXHwhI5Exf4eF9Jvw7Ho5AQz5/osnXS3S3sTG2duRkNWm3WbF53 cdV5cVxRnAFVLJ2Qu2MI9xh5BzJR/XzzTYafM0q34AuGdgAKbK2cgjAQ3F5D6BEZ+Cg2cV Bfaewan6dze9prbaR+O0ovDDZWlqJYF1NZHRkEe13H/Enzo/g5WYMDO/daFtd4w3UX6z/U RF1NtoKBf1hnRcBlIjFSvj65zRiMV+JwXvF+YH7wDLVXMCR6YMju8kD4AbLqFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653607757; a=rsa-sha256; cv=none; b=KC1kJuXYYc0TCHosYJVinyyqGPt0UwObiqMHOFdxgcYCkYeOk/j0atK7Xum/eDDNE82pC2 5f0yhvvhCDc2xc9mHh0UKm93VHQKPmAFRy551XtYCq3SI5tgmt46KoeTIihhq8mzWF27uO xPQ1D7Xx48IE0iefxInISP84bKbCVCdYn4kmk9jlCQHV7wBjspp6F5/QfBfgCJzGZgo0kB haWytBj350Uy+RHKveoPeWDc4Yhee+pRzwEDOOXpsxnai84B9TjTxArE3hqGm+xcFILsW2 LOnKERcqPnSCBbAMkiJzY3MvLJQX0/5JL7yBsi69I/C2FofGEG0GQys1K20LrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=inHSBM+c; 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: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=inHSBM+c; 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: 5841345C17 X-Spam-Score: -4.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: A3QOa518k9+S [i realized there is a footnote to my comment about narrowing. of course there might be questions about what org will do if there are things that refer to outside the region, like links or macro definitions.] On 5/26/22, Samuel Wales wrote: > i would say that respecting narrowing is expected in emacs, as a kind > of pseudo-buffer bob/eob, so it would be surprising to find that it > might not be so in a part of org. lack of it should be mentioned, but > might be a bug. > > > On 5/25/22, Ihor Radchenko wrote: >> Uwe Brauer writes: >> >>>> Could you please clarify which part of the function docstring was not >>>> clear? >>> >>> Well >>> | org-export-dispatch is an interactive compiled Lisp function in >>> | =E2=80=98ox.el=E2=80=99. >>> | >>> | (org-export-dispatch &optional ARG) >>> ... >>> >>> Does not mention, that a selected region gets exported. >> >> Fair enough. >> Ironically, it is not even wrong. Looking at the source code, respecting >> region is merely a convention coming from most of backends calling >> `org-export-as'. >> >> As one possibility, we can add something like the following to the >> docstring: >> >> "Usually, exporting respects current narrowing and active region, though >> individual export backends might not follow the convention. See >> `org-export-as' for more details." >> >> Alternatively, we can modify `org-export-define-backend' to change the >> docstring with links to individual backend exporters. >> >> Or we may modify the dispatcher menu to indicate active region. Though >> it is not guaranteed to be obeyed by the backends. >> >> Best, >> Ihor >> >> > > > -- > The Kafka Pandemic > > A blog about science, health, human rights, and misopathy: > https://thekafkapandemic.blogspot.com > --=20 The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com