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 KMghKhUej2LObwEAbAwnHQ (envelope-from ) for ; Thu, 26 May 2022 08:28:37 +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 SNUXKhUej2KJ1QAA9RJhRA (envelope-from ) for ; Thu, 26 May 2022 08:28:37 +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 4F9B413079 for ; Thu, 26 May 2022 08:28:37 +0200 (CEST) Received: from localhost ([::1]:46468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nu6z5-0006Av-KA for larch@yhetil.org; Thu, 26 May 2022 02:28:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nu6vT-0006Am-Lb for emacs-orgmode@gnu.org; Thu, 26 May 2022 02:24:51 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:42671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nu6vR-00054G-Er for emacs-orgmode@gnu.org; Thu, 26 May 2022 02:24:51 -0400 Received: by mail-pl1-x636.google.com with SMTP id d22so655686plr.9 for ; Wed, 25 May 2022 23:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=wgs1AM8B5Ff33GbxWx7d+El1N7NMUNahjWbNGmmVcK4=; b=mFgqn0j/YDGQGhbiTmY/Y3gn5/f3yVmHtCXZAqdCbXIIB1TDcqinBLyKzLtRzUfMB5 VCPRmq7SHCN2H3z4MMrVxrhguHDSOXeTKV30308cyCDPwewAUT6eeBkWhgChRTFOQSs7 ACpVUwJwZ9/5Z0mh72JP9jcgSzYChjDO/QASp2xuSkQGwUi0LWibuhMe8c56l0+WTeXY QZ98RGcG26I9V7DoItfMYioouXPbYW9rJoG1I/+uEdd7I6DzgqxHBIpte/Lw5IEGl+kj XTdRTemE6siNBtrKDoKzCsiD+4FD1Zt5TilyeFNJo68vQSC2DCHjZVMBXhc9zxXgEvRM xmWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=wgs1AM8B5Ff33GbxWx7d+El1N7NMUNahjWbNGmmVcK4=; b=vo1bV1uO57Z9NN1gcH4ldMyzGMxx48lqbBE9MxaKg4nvaXtp/kVumxQdAN9Xteu4Iq anZvgdFZtV6KNb6E4ju6g1GWlK9jMq3wflEv5aDgUZVhQy4Gdsenfv0jbN6WMdQuMUY5 YbLMUbscmm3+udyj9wgwy+yV6ErHSTLIvZw/khIize2XLJ/ql6NolHFa0ULeR/0jicM9 0PBd5TrK6LbjCJwmyTHYhZNG+AWPlMTgVtJicrrrromtBWmwcegPZp9QAVAwyCXA6XuH 7V3dW4eO+n6q5nqmaPxzHq3Vubv32s/wonW2WZOM5qNVzi9USoALNpToD9CMpZK9w4fs FCUw== X-Gm-Message-State: AOAM531Nhs5s1Y1e4c8dOsadcv5UoU5iVgXudVnpwgSR0n3qRF+x0L8+ DbJpURsrcepgcQaSkdiVrK4= X-Google-Smtp-Source: ABdhPJwnZmCPLfQUwiCjPBOZki3cJ3UmjbqZCEMBVLAOsz+bLEUFF17cHIlK6yZLkTcqvJPrERLjVQ== X-Received: by 2002:a17:902:d4c1:b0:162:dd2:407 with SMTP id o1-20020a170902d4c100b001620dd20407mr23449197plg.15.1653546288032; Wed, 25 May 2022 23:24:48 -0700 (PDT) Received: from localhost ([74.222.20.18]) by smtp.gmail.com with ESMTPSA id u9-20020aa78389000000b005187eb4194esm514076pfm.118.2022.05.25.23.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 23:24:47 -0700 (PDT) From: Ihor Radchenko To: Uwe Brauer Cc: William Denton , emacs-orgmode@gnu.org Subject: Re: export regions of a org files to other formats (most likely only to a buffer). In-Reply-To: <87ilpsx2su.fsf@mat.ucm.es> References: <877d69r88a.fsf@mat.ucm.es> <87pmk1k4k9.fsf@mat.ucm.es> <878rqp6n2u.fsf@localhost> <87ilpsx2su.fsf@mat.ucm.es> Date: Thu, 26 May 2022 14:25:28 +0800 Message-ID: <87czg06c9z.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=yantar92@gmail.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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=1653546517; 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=wgs1AM8B5Ff33GbxWx7d+El1N7NMUNahjWbNGmmVcK4=; b=BbpMb4Teko7P4EZCrQ2WL7Ix0gZBZxe9pJougEvQn9yScC7NrVkFnsSDv72Sz7KWufqgUX 5/k5AQ8P/VbaC/G2KJz7lPT5tM3ZiI+e+z0d3ICrrQAmzYBwMlvrGquFtfFiShILRM471y ApBsM6aATdGZ7oTX2+R6djaOMKGHS4nUIIENkB5dO+lUtUT2WdE0BTTnR9ou0mvybvxIks t+h9Ct7lnM0NamLCVddz2ihKAIgd/OQWRk0L7FFcqm13nL4xp0G8yL9HCG3MlrxFUPnshu TQLv/r5oSiXtnnR99XDTLkdOa4HfYJtdH7nHTlCjg1Rff8DutchYpEbKjLKddw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653546517; a=rsa-sha256; cv=none; b=tQZY6lwCcrKsoKNEGnw45Ky5ph2sF21aR6VNK0COxx8ZN04Ns4mfVDAD0WteheFZL4nN9d K0XaNvXPGhVo2JzDXRBJs39HRQMmp6OVP5XW+kEcJqVKm/TP75UgyVTsqKuPGu4AgWvWeN rhnk7MYE2+/SkFCXf/n61iVn9Iss2rbtX/qiwnOyyX7uBgHb7uXsGYT8G+DCBUXPxteCoB FyRiHQGxPldj9T9e+zSdE1samFrGASUBKfFiYBbHJ6oqDBLxJOBj7rR+VmxlmIC72Rg3/E BzG+0B62SGfsjGgo0NCzUZJiAXTre0gtADYPxnm64Tdqo8iMtXC8OOkCpxfKEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="mFgqn0j/"; 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: -8.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="mFgqn0j/"; 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: 4F9B413079 X-Spam-Score: -8.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: mHw9Sj59zf5V 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. > |=20 > | (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