From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 8Jf0FKsGQWQcwwAASxT56A (envelope-from ) for ; Thu, 20 Apr 2023 11:32:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wGIZFKsGQWSrkwAAG6o9tA (envelope-from ) for ; Thu, 20 Apr 2023 11:32:27 +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 F057D38F44 for ; Thu, 20 Apr 2023 11:32:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppQdi-0006uF-3q; Thu, 20 Apr 2023 05:31:42 -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 1ppQdX-0006sr-JB for emacs-orgmode@gnu.org; Thu, 20 Apr 2023 05:31:34 -0400 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppQdV-0001mp-C2; Thu, 20 Apr 2023 05:31:31 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id 966cee87 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 20 Apr 2023 09:31:26 +0000 (UTC) References: <87wn2gdnvk.fsf@localhost> <87fs8vx7by.fsf@localhost> User-agent: mu4e 1.9.22; emacs 30.0.50 To: Ihor Radchenko Cc: Gustavo Barros , Bastien Guerry , emacs-orgmode@gnu.org Subject: Re: [BUG] org-latex-packages-alist type specification [9.6.3 (release_9.6.3-2-gf2949d @ /usr/local/share/emacs/29.0.90/lisp/org/)] Date: Thu, 20 Apr 2023 17:28:54 +0800 In-reply-to: <87fs8vx7by.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz 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, 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: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." 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-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681983147; a=rsa-sha256; cv=none; b=YYCqHSzSX5s9pOgXMRPdTqkbi6/AvyBhb/7f2BRWqk+KqwNtuqXy52YyuCB2ugtmDU3+7d LtivalVU8WvsHdIgPnCy0ic8C9ql3fnnWxPt7vJHnTURYzwR6LGrUNXwxcdafMj5iSVdlN 1ngY47+1WD4mXD1KPm5GEW9N3t/Nkm/EwmKINY8q69MwO7WWZPZ+KbdUKeMFZbTH0X+CMY TlzjIjrq5vrWWO6jFLatY6IE0SVwbW2Nq7y4KHMkYyk453WSCdlolLArdAYoq1j134b3lC l97NuQOJlhrnofJCPbv/9NnOoIQQ5LMwaWOhPyHNvHWeqSwM0GyBT5NnZZyqbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681983147; h=from:from:sender:sender:reply-to: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; bh=V2TyGjeOijPMdm248UxkKdgEH7pI7NipC1Gk/GSBMEc=; b=DWbxjZ40g+Sgnp6K/qTNNma/mgHQ1TMxhL5y4oUEq/jVCeOsm6e7wiUOzDLVddXjL+XyFk RTKxckZTkJeUFpGKyer5xHQ6b0kg8A6mtcQST2jtl8nX46bLq1wC/QkFOnL6/CLoPouDl2 wZSglsRUe//LVMdUYdiQkzB40ogVFlISmoZDeWPbXe7zVf04d4x8KTn+Uboghk6tilspeS j+oximzh3RkdUpiOIeS3KPlgJPDll5h+QICvqYe2Z6b7QZeY5PQGPj98WNoWf5AOSBt6N1 dub/egZGhrUuQfngT1eajlOhA9MoiiGL9kf6aIFBneSFahycPnYZuqWIS8fw4A== X-Migadu-Spam-Score: -2.51 X-Spam-Score: -2.51 X-Migadu-Queue-Id: F057D38F44 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; 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=gnu.org X-TUID: Jfz5Nf64T8ZD --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > Ruijie Yu writes: > >>> Compiler list may also be nil. >> >> This should be covered by the repeat case? Unless you want to be explic= it >> about this, in which case you can wrap it in a choice, whose first choice >> being (const :tag =E2=80=9Cdescription=E2=80=9D nil), and the second cho= ice being the repeat >> case. > > Yes, explicit tag will be better. Updated and rebased (cleanly) onto current main. Note that I moved the type into a new line to keep everything below 66 columns. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-org.el-org-latex-packages-alist-fixed-type-defi.patch >From cd9bc0751c8ab5b9a733cfbad3230d73d9642af0 Mon Sep 17 00:00:00 2001 From: Ruijie Yu Date: Thu, 13 Apr 2023 13:14:36 +0800 Subject: [PATCH] * lisp/org.el org-latex-packages-alist: fixed type definition --- lisp/org.el | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 463b4f594..bef5d0ca4 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3485,13 +3485,17 @@ Make sure that you only list packages here which: :group 'org-export-latex :set 'org-set-packages-alist :get 'org-get-packages-alist - :type '(repeat - (choice - (list :tag "options/package pair" - (string :tag "options") - (string :tag "package") - (boolean :tag "Snippet")) - (string :tag "A line of LaTeX")))) + :type + '(repeat + (choice + (list :tag "options/package pair" + (string :tag "options") + (string :tag "package") + (boolean :tag "snippet") + (choice + (const :tag "All compilers include this package" nil) + (repeat :tag "Only include from these compilers" string))) + (string :tag "A line of LaTeX")))) (defgroup org-appearance nil "Settings for Org mode appearance." -- 2.40.0 --=-=-= Content-Type: text/plain -- Best, RY [Please note that this mail might go to spam due to some misconfiguration in my mail server -- will fix soon.] --=-=-=--