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 ms9.migadu.com with LMTPS id wPtEE8ByOmStgAAASxT56A (envelope-from ) for ; Sat, 15 Apr 2023 11:47:44 +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 MPVJE8ByOmScRAEA9RJhRA (envelope-from ) for ; Sat, 15 Apr 2023 11:47:44 +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 EF5DE33D42 for ; Sat, 15 Apr 2023 11:47:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pncUt-0003BN-1b; Sat, 15 Apr 2023 05:47:07 -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 1pncUr-0003Az-Cy for emacs-orgmode@gnu.org; Sat, 15 Apr 2023 05:47:05 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pncUp-0007Vt-9g for emacs-orgmode@gnu.org; Sat, 15 Apr 2023 05:47:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D599E24024D for ; Sat, 15 Apr 2023 11:46:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681552019; bh=51TFZgjSY35LYiSU/xwIFGRMNkbMWkYM5VE9rg4dXiU=; h=From:To:Cc:Subject:Date:From; b=OrQaM0lmiHIl0AcO7KWrxb1/h8YZnGw3qNI3evLX8kdN1N3kIXymr2DBKjuQnv0Vk xhhwH8VeoatjHbodqHRPq/drD0EGrUM0UmvbYFGGybI/8wZBf5Q+6FreMjedOeiSc9 ZbeQTV79MR9YL0cu3Hlldwx5iv16MEFzhfUCXkauzYoluOFdYi1nzY03p6vySTzdN/ Um5Kd0JnYg07vDii9U92NRWeHl1YFyNoV5i3SOGaw4Lj2kN+ljzFAbtudakjeam2SF FFa2QsXlS7uba0t3tBBVPm6af6SOsYTR3pycDUnUrlaqunvNEN8bRsU5ObKdUUWXUh u8n9e30rIivig== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pz7kq1mMvz6tvn; Sat, 15 Apr 2023 11:46:59 +0200 (CEST) From: Ihor Radchenko To: Jim Wisniewski Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] ox.el: Customize org-export-dispatch options In-Reply-To: References: Date: Sat, 15 Apr 2023 09:49:33 +0000 Message-ID: <87bkjplbki.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681552064; a=rsa-sha256; cv=none; b=SwDsVXmq54L4oMlAxXwH7e8YGT18U9D023+XdOPqjoWcAVuW/GsvtwmBB7dVdu3HnWnRUf PNo6+Czh8inhdwzuDsyJgrRzFH6CCWbu82wNrWkazklj5oruB/8QoDEZelTmfkdN18AKRl eUpzN9mcrhA+1I+YW34UiI9UbneC6RBpWekNR3xohKHsUbeCTXt4Dk+rm06XlUbkk8YrP4 KfB3JSRbZKrELB09+QzWqqox+/MfhUkuPM19Ff0tGmqVblFBlRuMTqKswTQ4/XuZK819ng s0c7xYWvifCP3uTrUJJeO2Qr7K9MDzuQYg8LotZkstKA7pWlZaV7Y3VrxopL0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OrQaM0lm; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681552064; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OQnMQID0ytuBrfd79EBLyvXdYxM+rmOr6n4XQFoZQRU=; b=NpM4BFwNmyOofTGiughftRQgErDnDEuID+wgTsTexXfxzY3q7EL2BQISsKDVFA4zSGHR85 gvKq4y5tLsn81S/+S3+vA8Ep2fCKqlL7DONvFdUx+7d4JoJQPho7fW40kZMmdDP39bwHad 8SrACf2TajeDj5OvIg7RyoRdeIPmU3jKs+zNR8s0n8FycGs3p0fNwLpLNcpN8KPz/eTWbX jgiiFP3fdXYQmgdd0PBs6ElRqRzk0THk1x+lOVBuIdMbUWu3+V6CP5jiHtyH8OXZxRXLyP aLYR9HiShCAQH2z2RcK8zK83AkwhYjb3O5f/DWqyvE7d4R+p7egrryEqGnq7CQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.21 X-Spam-Score: -6.21 X-Migadu-Queue-Id: EF5DE33D42 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OrQaM0lm; 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=posteo.net X-TUID: QM8qhQHUk2l/ Jim Wisniewski writes: > 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. Thanks! Looks like reasonable addition. See some minor comments below. > I sent in the copyright assignment form but haven't gotten the contract back to > sign yet. FSF should reply within 5 working days. If not, follow up with them once. > * doc/org-manual.org: Document the new export variables. In addition to the manual, please announce the new customization options in etc/ORG-NEWS. > +(defcustom org-export-body-only nil > + "The initial \"Body only\" setting when exporting with `org-export-dispatch'. > +Non-nil means only export body code, without the surrounding > +template." > + :group 'org-export-general > + :version "30.0" Here, and in other new options, :version is not needed. > + :package-version '(Org . "9.7") > + :type 'boolean) You can also add :safe keyword as these options are safe to set as buffer-locals. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at