From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oCIOHUHKCGHC0wAAgWs5BA (envelope-from ) for ; Tue, 03 Aug 2021 06:46:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8O0nGEHKCGHzVgAAbx9fmQ (envelope-from ) for ; Tue, 03 Aug 2021 04:46:57 +0000 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 CE2DCEE22 for ; Tue, 3 Aug 2021 06:46:56 +0200 (CEST) Received: from localhost ([::1]:34790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAmKN-0006h3-Vl for larch@yhetil.org; Tue, 03 Aug 2021 00:46:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAmGi-0006vO-7I for emacs-orgmode@gnu.org; Tue, 03 Aug 2021 00:43:08 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:34809) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAmGg-0008Lm-6G for emacs-orgmode@gnu.org; Tue, 03 Aug 2021 00:43:07 -0400 Received: by mail-lf1-x135.google.com with SMTP id z2so37661652lft.1 for ; Mon, 02 Aug 2021 21:43:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=M6NQHVW2mPwOBx8rrHqQH3K8F/r0EmwEDprnD8xxvNE=; b=Rv/MGQ/cG0AGiYzg+Js+44ECEEfxVf8pj36I9Uy+SEX/Wj0H+ySYNYiw664Yrh9wRN p5jljPFDQ1ASGnJK885xNNxaY2rU9lziKTnVWyew33Iie2iBEmFE3gjzX/V47dnNAgZv A+ofiJKoK8yFhuw8aNbCwhM+osQFVRtjZ5kFnaQcwQd0dwdqGIuUIaSbfbplGuSSf2ZP uhSDvOPVdtcIHKSLLpQ2alRtf5xUlO0/ArZHp8qUxK3aboHg3BK0PD0WiEqVC1M9phbH I02UFrv+GFb8cO5+b9vBi3iHBDvHOm5Hn7QJFBVxSAw5A4GkcTSoLYOSBLb//MDbFs0O mvYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=M6NQHVW2mPwOBx8rrHqQH3K8F/r0EmwEDprnD8xxvNE=; b=dQaF3KITyEOya03Xd5HgIP90iq7a9sl7wEFKgUC9HuciC2EAbHfQbuXC0/AbncTp17 ifUUeA60oHGOAHsjgwQTFjnkuaVVbKMQLB1mlI7EuZyqh7irZ5TwBP3PI8m1yUOxRb/y 9qdtzlMS5uy+dVwZ1tsUHGsFzxDhyGRh9atjUiS8uxb6dTx63TWERqxWYPaK8/kAQPLj rm16wnH7FKNIycku4DbM1iN2NWGKC0navA+LPsdC8uFYtzYtJxmwQuDNzjqL+CywWOIf 5bL2pC75YYw+cpqhVlke41Dk+wUM639q5HRLjiOw3XVTZjcRqg2r+M3izmAwk6x+8XBu fcPw== X-Gm-Message-State: AOAM531VW21RZwHU507QYdI76DAr6LmS3igrm7GX6pnijEpM8Ux1NDLC fhsttI6YPJl0BoXuRPujc5UIS8Z5nJ2h6j+ZHpyNJpGO X-Google-Smtp-Source: ABdhPJzo0Cfv6+Ae0X1lPjPmODd96O62IJdSHfb06eBqYkrRXb0Wkcf1CG6NmuM++qwKKpdJ5mE46QlCyZ1YcBnAPXs= X-Received: by 2002:ac2:50ce:: with SMTP id h14mr15715024lfm.323.1627965783997; Mon, 02 Aug 2021 21:43:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zachary Kanfer Date: Tue, 3 Aug 2021 00:42:52 -0400 Message-ID: Subject: Re: Bug: invalid example for org-export-define-backend's :menu-entry argument [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)] To: emacs-orgmode list Content-Type: multipart/alternative; boundary="000000000000431f9205c8a052dd" Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=zkanfer@gmail.com; helo=mail-lf1-x135.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627966017; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=M6NQHVW2mPwOBx8rrHqQH3K8F/r0EmwEDprnD8xxvNE=; b=t28EadeIVpiILrNGeAVwAln+A+a+DRAAzWsV+bbhZhKQYp4lkCGX5CLw5smvRFz4l8ZZEI oV9svuyiiXg07AZCLi3FZ8r6Rc9ALZViDScvFLtrDHl9KfjigS8iCH1gV3812yVZK68LAL 6fniuRZqFIXAn8pu5ienXavHMxoGL/pzJFn9SIyY+dIFMeISR+wfI8h8RGirpNY11l7aHe qknLiRxn54JlGr3q0k0iDLipAtTnbfgyuhkkNkoT4zzSlSPB1NOVjCk70hlpYSNpwuFvuA eaA6H8NkChpfYlzq5S0vjkq2GCtgxsrdIoatuvYMXobdkYBMsjos3GDaKbFmzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627966017; a=rsa-sha256; cv=none; b=nukvk6GDjlhQ3Jz/yhrVZZjExS1VYj9dFod8QP9VBjEJ8UaTK7s8dPu9pTlkbN/d5g9qnk DATQV9lFRUR3LXQDHUArlxjjoxaUzN1nL7iZCByIRBoKoYLxmDQlCox5S7pkJpx1XsKP+L dBR1EEgCbgsx93r5xZi3l1veKcGWjOyIBwB06Xd0Hlm2XF48/kbimnwsMZcUZTAXmP7IHY Y5FCyioFXLhzP+gPaMrVRksuEja2YjuNBrBHTozIA2hgo19aZsOYtXynYKDs2FJBWLNYRU RCtxa5/8nZBlOsil3aw99IV182NHQLMEWRzQHbSGK2WKqAsZCEZo8raCDj91uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="Rv/MGQ/c"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="Rv/MGQ/c"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: CE2DCEE22 X-Spam-Score: -3.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: PvMAAb5kVHw3 --000000000000431f9205c8a052dd Content-Type: text/plain; charset="UTF-8" Upon further testing, the third and fourth elements of the function should instead be wrapped in a single set of parentheses. There should only be three elements in the list. On Tue, Aug 3, 2021 at 12:36 AM Zachary Kanfer wrote: > Ox.el contains the function org-export-define-backend. One of its > keyword arguments is :menu-entry. The examples given include > (https://code.orgmode.org/bzg/org-mode/src/master/lisp/ox.el#L1214) > > '(?l "Export to LaTeX" > (?p "As PDF file" org-latex-export-to-pdf) > (?o "As PDF file and open" > (lambda (a s v b) > (if a (org-latex-export-to-pdf t s v b) > (org-open-file > (org-latex-export-to-pdf nil s v b)))))) > > This is invalid for two reasons: > > 1. The ?p and ?o elements should be wrapped in an extra layer of > parentheses. For example, the ?p element should be ((?p "As PDF file" > org-latex-export-to-pdf)). > 2. There is an extra parenthesis at the end of the block. > > I cannot submit a patch, as my employer currently will not sign the > copyright assignment. I hope someone else picks this up and fixes it. > > ------------------------------------------------------------------------ > > > Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.20, cairo version 1.16.0) > of 2021-07-09 > Package: Org mode version 9.4.4 (release_9.4.4 @ > /usr/local/share/emacs/28.0.50/lisp/org/) > --000000000000431f9205c8a052dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Upon further testing, the third and fourth elements of the= function should instead be wrapped in a single set of parentheses. There s= hould only be three elements in the list.

On Tue, Aug 3, 2021 at 12:36 A= M Zachary Kanfer <zkanfer@gmail.com= > wrote:
=
Ox.el contains the function org-export-define-backend. One= of its
keyword arguments is :menu-entry. The examples given include
= (https://code.orgmode.org/bzg/org-mode/src/master/lisp= /ox.el#L1214)

=C2=A0 =C2=A0 '(?l "Export to LaTeX"=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(?p "As PDF file" org-latex= -export-to-pdf)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(?o "As PDF file = and open"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(lambda (= a s v b)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(if a (o= rg-latex-export-to-pdf t s v b)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(org-open-file
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-latex-export-to-pdf nil s v b))))))
This is invalid for two reasons:

1. The ?p and ?o elements shou= ld be wrapped in an extra layer of
parentheses. For example, the ?p elem= ent should be ((?p "As PDF file" org-latex-export-to-pdf)).
2.= There is an extra parenthesis at the end of the block.

I cannot sub= mit a patch, as my employer currently will not sign the
copyright assign= ment. I hope someone else picks this up and fixes it.

--------------= ----------------------------------------------------------


Emacs= =C2=A0: GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24= .20, cairo version 1.16.0)
=C2=A0of 2021-07-09
Package: Org mode vers= ion 9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)
--000000000000431f9205c8a052dd--