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 MBT5MKkIkGK+DwEAbAwnHQ (envelope-from ) for ; Fri, 27 May 2022 01:09:29 +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 EOXeMKkIkGImKgEA9RJhRA (envelope-from ) for ; Fri, 27 May 2022 01:09:29 +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 7543C45636 for ; Fri, 27 May 2022 01:09:29 +0200 (CEST) Received: from localhost ([::1]:50762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuMbg-00036z-0z for larch@yhetil.org; Thu, 26 May 2022 19:09:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuMak-00035Z-Ef for emacs-orgmode@gnu.org; Thu, 26 May 2022 19:08:34 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:40506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuMah-00060p-3K for emacs-orgmode@gnu.org; Thu, 26 May 2022 19:08:28 -0400 Received: by mail-ed1-x535.google.com with SMTP id c93so2162764edf.7 for ; Thu, 26 May 2022 16:08:25 -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=xRJLCL1lBi+7IH/8BPlMNUpHBpQDAUbfYN9YQdN1ROM=; b=Pcexp0vVpSZjq9WOOSgkxF1cZtoJCtg5dIrbyIJE3Si0qSQ4P5Q1/zB9BoQXk81yHA AyUlxBfNEmdN2gRQ1gsGgboxmizgH2FZiNRRZwpV7lA+Vf9eRNTBTr75pNWw7gKhTfbl lYdG+BtaWUDTfHfu0kmxeEh7hAoWAKxBA3UvN00ghp1j+8n4pdyd8eu5AflbGwdXb5mi CVyJtu6k+01wvpk8ui37MjcJDG3ociUBFBAi8lI/3qVvDZG7K2Fuwd+giWK7i9Cmntoi yUf6MP10l0s6INNGTLY8axU8/DHuk6UpRVWU2v5Bh087+uYcQL0/dkIFzEcNYgTqIv/i LPfQ== 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=xRJLCL1lBi+7IH/8BPlMNUpHBpQDAUbfYN9YQdN1ROM=; b=YFlHI8ejhUCNvs7KOESaviGS2aiqaeQf1EJJv1DPcCbtAoxOrhkNBzUaHo0A/Murmt UMAdnd7xGOmINwAUOUHTEZxzRtpXDdSwIHD1AX28dlSCvgdEy1SPeQTSAsDailYhrbgF idp6JprC4y73u6WDM6yW+phKwBmuWD1BsTqHm0zA2PMUIrvQx57OLbVMaqz9Ug7/QWQR XahR/a1LArWNjZPxiK3/GWnVQ+7qJlOsPW1QFRIjT1J4XX2p1LJ3i8ahiONwKBya3oms TLjXKNokTgN1ehYy1jJ+ygo1tJhVZi2NDh8d+VOiklTa+4/aoL0Qhiyiep0SKgWt9NVN gGUA== X-Gm-Message-State: AOAM530wLEB5i1PIaN5SZc6/Yx7W/ebil89D0YKAHTbrbBBEqN5yKygu 67kJTEMAFpuSJTR0GSARO0sfCAcd4cepmlk/AJc= X-Google-Smtp-Source: ABdhPJxGfP9MNlzgiAADhzqBitolXusDnhGLpKxAvcWoTT4GYoVyLFY0oD5lAdaUFVa2wAVeWA6gzi14wBTH9w0Nzc4= X-Received: by 2002:a05:6402:1399:b0:410:9fa2:60d6 with SMTP id b25-20020a056402139900b004109fa260d6mr42094998edv.35.1653606504671; Thu, 26 May 2022 16:08:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:478b:b0:6fe:f76c:8596 with HTTP; Thu, 26 May 2022 16:08:23 -0700 (PDT) In-Reply-To: <87czg06c9z.fsf@localhost> 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:08:23 -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::535; envelope-from=samologist@gmail.com; helo=mail-ed1-x535.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=1653606569; 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=xRJLCL1lBi+7IH/8BPlMNUpHBpQDAUbfYN9YQdN1ROM=; b=faqcM9EpDs8u1juPYWUDu25lasloJS1lQi5Xf2kwPnKzp+pasf6UzyezY4zVtlJbvikTpp hZ8KPTUSUDgO3QoLsEofDFS5ZMdl8Rw7CcoD9QtzgXf3aaRRUa23n0C2MwsU4M4MGp5s8k XfNz4uQ+QLea4FBRYsA0z9qhAvE4DMXgHiSC6/q5H74B1tY6/mabPh5MxKwKuY+NQOSWXc NDL4kHE/dwhh7/GbRUoDc7lrhsglecdsP8dGgHdnValOYkIp/kK1zO9y8766oR4ZwQl2Rp UuWwmpMOGdma3sx6BShncRxAUkP5Jn+C6Wfd+wVWNub1V08BjdNJOFx1nrEI7A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653606569; a=rsa-sha256; cv=none; b=e3/5Esl6dba/sJpXiXdtvtNCy5e5BR7G3Ksde2mQTjOwTWGHKYMpVDRSIwjjVn3zPCxSJI qlT9O17wwTbnhrCPXxREftO/7ucSMvzoYSYlhkBm/HB5XpPOv0+W9UhrIz2tYagoze+B9Y /OsNd9PXuTunc73KuMzBhMEhpLar2koANHiDf3EC/WRHQKLyueyD9HVczCvtDGBX2L+/P8 +AAvWFytkDKO5XmKFtRa9Q6/ke+6Ny9vebENThV61Zd9k0sGzMTHHdajJLerAC4Ewyew1i vWBnVeKF4IZaUJRecXy+gxTDeZauyHQjR0q3V3sAATMlJpmke7GorJZcu4GsqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Pcexp0vV; 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: -3.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Pcexp0vV; 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: 7543C45636 X-Spam-Score: -3.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9LCN1dGZvKfT 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 > > --=20 The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com