From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wIojLfUsOmTyDQAASxT56A (envelope-from ) for ; Sat, 15 Apr 2023 06:49:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sOcNLfUsOmSF2wAAauVa8A (envelope-from ) for ; Sat, 15 Apr 2023 06:49:57 +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 3625B29767 for ; Sat, 15 Apr 2023 06:49:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnXqM-0006Bn-Uc; Sat, 15 Apr 2023 00:48:58 -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 1pnXqK-0006BH-HC for emacs-orgmode@gnu.org; Sat, 15 Apr 2023 00:48:56 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnXqI-0001j5-KS for emacs-orgmode@gnu.org; Sat, 15 Apr 2023 00:48:56 -0400 Received: by mail-ej1-x635.google.com with SMTP id jg21so50307486ejc.2 for ; Fri, 14 Apr 2023 21:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681534132; x=1684126132; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Xz6yPvKlOobT7byYad6DRCoDTv+jisxBL5rHXGVrUGo=; b=fYPHtFpnagKpB0jMrdvDuFNwSstRmGoyofh76+h7yq79tgs54bnW4LcjbB9SN5DHwT qO3ysf91mVvxFH5E9qDga2pJeQLbUFfimMlBZlygYMtikuJJ7W/AwLMjrGZIXUS9JgiH NCZiWAZ2ZlmkEa2GPAHZ4YxRdHgVDkBZLTfUPToqje5nugGgWd2nWTyrA9B5i+bN1288 fbMHsgqscEgSdYIvXzT1Xb3HBnQx7tNkmgrJzEd211EzjJWiNSfsGqFvU8K2ZR9yurht G6fTObDV0vlemGKD42rZDb2LJJs5tsDmRCh3X1N2TLAc+VaDI6Ug+7JdKZXbU3toROmi iCbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681534132; x=1684126132; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Xz6yPvKlOobT7byYad6DRCoDTv+jisxBL5rHXGVrUGo=; b=ajMqjYq5cfCNHed3DQq8bI/eN74nerxSo1/7AVMcWu22ebiXEc+BsKMdusf5ulbut6 O3D6BECMOO3W5Uti7iovPzunecfu+juzxpj5MOfBUJzHMGaI2wHEHXN9jMo50A4X66j4 XLptBt2I2pDp6MZUfyu/P/pHAdJpQd6W+tO0or+r/EfRzEkVBKfaA0tMJdWGKPXwBNA+ yvu0xlPOZQKyhzAson/gMywWvDk8DaE9NLWvbJckdIKWTR3eJbLRfpI/4R+/9st82Ki/ rRChBQXQy1ksguZYwS0qX7sFWSQQOJ76tfpaQEKrxIpzLLgSKGq/nEIu8ruzzm3CpF8z t7dw== X-Gm-Message-State: AAQBX9dCGdOISxa5IfEspLd0h4IPzQH59x+nAqGAr9C7W+vAUqAP3r8I cHDU+TrDeSgMwPBcHFUoWJ0JXH0CRtJbLoZTbND8kF6xoqc= X-Google-Smtp-Source: AKy350b4ydbw0T3XV4lxNP3iKsqWFygwsunxFlLqgIndFEBLN2IkMaWegxuMDiHMnS8Mez/uaSGCjCxfRmmYITGgxpA= X-Received: by 2002:a17:907:1701:b0:94e:46ee:f9c8 with SMTP id le1-20020a170907170100b0094e46eef9c8mr523782ejc.14.1681534131824; Fri, 14 Apr 2023 21:48:51 -0700 (PDT) MIME-Version: 1.0 From: Jim Wisniewski Date: Sat, 15 Apr 2023 00:48:15 -0400 Message-ID: Subject: [PATCH] ox.el: Customize org-export-dispatch options To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="0000000000009b30bb05f958ac79" Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=wisnij@gmail.com; helo=mail-ej1-x635.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681534197; a=rsa-sha256; cv=none; b=SwUJO5gSJ7mYNInEmATOV+2qK350brKhGstgZ0A5a5k8IYRNp0LIQrmVhz92uAfd64tZMC BBeNoiQabv8yZQQEO3nyXGGWOVFtcu/Pd/NLWGISmnWG/CL4F+EoL6+pyNDG8eu7dxfN6L KmsX1eWlxkGg3hrGQ6Mlp9n7QGYt2yrmSyc+EvpQyPoXnLTVGBqyaVBkBoROnAWSY8w8IQ yjtVnxCVGNvk7X09vEUnyjhviuleWv2c52Juff/7S5s4mzn5V8A+73bwacmmWUGD3TXX2C Sd2WSxntqPN1QoSpW2eAiveYxRlwv/A4swrlzVoa5HWzpfK3iYuHQXYzkLZgHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=fYPHtFpn; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681534197; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Xz6yPvKlOobT7byYad6DRCoDTv+jisxBL5rHXGVrUGo=; b=QLWMJnnEwXPgUnnffzc38cAVnCCy5Y7U/s/SWf36Puy1H8Z37W0lkn15i6FwJWCdMkSNbO d5pPULXZnjn14xwBKREBq/Iq1dDMg+ScqYePO3SEXKY9QPsGaSz3ZbVtxAj/U8PNl3Sa8+ 1pgMooMQoBYti0LJSb/qRABV6SdooHOF9f2C66+mYZniOrHNU1+6vJgJ9+Ht22GUZRhlsV wVWu4JaMH07e4L6sufZk478PxlOi52Hgg01G/4yFpdkAsYVrgifHV8xP5pm81o4khD41Xj WkmXYpoHDv8bvF6zhwujECx+5malpcy/xbydrMNLEueLP5TrT7pMnG1yN0C8PA== X-Migadu-Queue-Id: 3625B29767 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=fYPHtFpn; 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=gmail.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.65 X-Spam-Score: -6.65 X-TUID: GvaygsxQzJ7T --0000000000009b30bb05f958ac79 Content-Type: text/plain; charset="UTF-8" Here's a small enhancement I wrote to add customizable variables for the `org-export-dispatch' UI options that don't already have one. I almost always export with "Body only" switched on, and I got tired of manually toggling it each time; while I was at it I also added variables for "Visible only" and "Force publishing", because why not. Hopefully others will find this helpful as well. I tried this out locally by eval-ing the new code and customizing the new variables, and it appears to have the desired effect. `make test' and `make compile' also succeed. I sent in the copyright assignment form but haven't gotten the contract back to sign yet. Changelog: * lisp/ox.el: Add customizable variables `org-export-body-only', `org-export-visible-only', and `org-export-force-publishing', and use them in `org-export-dispatch'. * doc/org-manual.org: Document the new export variables. Currently when calling `org-export-dispatch', two of the export options can have their defaults specified with customizable variables: "Export scope" (via `org-export-initial-scope') and "Async export" (via `org-export-in-background'). This change adds customizable variables for the "Body only", "Visible only", and "Force publishing" options as well. -- JJW --0000000000009b30bb05f958ac79 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-ox.el-Customize-org-export-dispatch-options.patch" Content-Disposition: attachment; filename="0001-ox.el-Customize-org-export-dispatch-options.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lghh75yb0 RnJvbSA1NjNhMzE5ODhkZjlmYjFiMWIyMDkzOTE4ZTAzY2Q5MmI3YTY3MWEwIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gV2lzbmlld3NraSA8d2lzbmlqQGdtYWlsLmNvbT4KRGF0 ZTogRnJpLCAxNCBBcHIgMjAyMyAwMjo0NjoyNSAtMDQwMApTdWJqZWN0OiBbUEFUQ0hdIG94LmVs OiBDdXN0b21pemUgb3JnLWV4cG9ydC1kaXNwYXRjaCBvcHRpb25zCgoqIGxpc3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