From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qHfLI21TG2HxNQEAgWs5BA (envelope-from ) for ; Tue, 17 Aug 2021 08:13:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QHWFH21TG2GfWQAA1q6Kng (envelope-from ) for ; Tue, 17 Aug 2021 06:13:01 +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 C5AF01C2EB for ; Tue, 17 Aug 2021 08:13:00 +0200 (CEST) Received: from localhost ([::1]:52408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFsLK-00052J-V9 for larch@yhetil.org; Tue, 17 Aug 2021 02:12:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFsKx-00051t-2M for emacs-orgmode@gnu.org; Tue, 17 Aug 2021 02:12:35 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:46901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFsKv-0004wA-Ea for emacs-orgmode@gnu.org; Tue, 17 Aug 2021 02:12:34 -0400 Received: by mail-lf1-x12c.google.com with SMTP id u22so8131901lfq.13 for ; Mon, 16 Aug 2021 23:12:32 -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 :cc; bh=nHtfG7qO6daULzjXU5AoL9PJ4pxvONR/5Wz9GzhYKlI=; b=JEXbXeYcfd+vNmyHvAvJW690P2+qSlsoFwAY+aa1uxm31jtNcgdhoxqiIQt2BXD4m3 ESftw2lfpfd1QLC8l5E9gJlSgAkg+31VmiC6vTJDHdd4aL+xcGyQ/jdVs0Qbh3qxEK4G xoZ82JVxsrGmu4mhOibleL0zwZVpUwVZ6DR1Zkh8JZJx8zHkEz+05UVVrxv9eWepBSzZ 7E22V00OuW4WmNPjyxiwoCYO6unqap3K0P4Ow77P0zQmghl6sgSzr5qiyHJYcx5kzN1r fQZTvApBBnRFS96g3tLfCOI2rklmBgkLit1X6GLloLlxmqt42vUvLEQ2WOm2WgrelzLM HaXw== 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:cc; bh=nHtfG7qO6daULzjXU5AoL9PJ4pxvONR/5Wz9GzhYKlI=; b=HIy0o52RRF0hac8OMw4BKmJlNZT3Hk27OfPUH4XnMS3WHRXgZn5PPM4fXtyMoO07ky j0Ij0+PQPztDt42NuSutR3/tRoRWi4lbaH65r1heL5KDJBfJP1vtEknr7/c0Gswb9Sl1 qLXyrFuUEmgcLrmNinUUXxVTD+T7RSfrCuN+rALDaxvjY7PNK7SK2sZfbuEAqaQr4rhq UJFQDskP2vtF2sVe+IQtZp3TIzQ0DtS1eQriEG/a2n6NlsgI+xVaYqeE4n6q9Icro6uK pXo4qqZQDJzF8VK9R+VAd7blsYy0oj4xGxo30w0+OackU46xf0H4KZhSOyXA20ZEv/xu whfw== X-Gm-Message-State: AOAM53246Qkx+8yicam7m4XLzjBe9Ce6Or69TU7N0uV+awyCqHw807pu 6dZa6w05zI9SgvhvFz2O8KYfZ4hMU8/n4SP+Qvs= X-Google-Smtp-Source: ABdhPJxNQubcZEmILEw3K/AOGL1oBcNx6FazjtkKeTLhaGN97SjaIwei3JsAQagAKflc3VjExTy8qch/RVf0B8Avh7I= X-Received: by 2002:a19:4901:: with SMTP id w1mr1212356lfa.323.1629180750614; Mon, 16 Aug 2021 23:12:30 -0700 (PDT) MIME-Version: 1.0 References: <871r75dnai.fsf@nicolasgoaziou.fr> In-Reply-To: <871r75dnai.fsf@nicolasgoaziou.fr> From: Zachary Kanfer Date: Tue, 17 Aug 2021 02:12:19 -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: Nicolas Goaziou Content-Type: multipart/alternative; boundary="000000000000ea55d905c9bb3380" Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=zkanfer@gmail.com; helo=mail-lf1-x12c.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: , Cc: emacs-orgmode list 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=1629180780; 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=nHtfG7qO6daULzjXU5AoL9PJ4pxvONR/5Wz9GzhYKlI=; b=OkQdt6PdIUTC2THp9MLbsRSRgfgPPX/r7F2w4q5FtAp1xeipoaaEQBPBLnvsfxACdc698d WHTtaEvOBElUcwmKlslwcthLHzqb7ZN3VVBvamotLRqz1BFhHnDh5rCWA65QT/OLbNkOpd U+Hp1R0RCDA7PttZim+/XcJDHE8X0NloOmnaf46165YagVzAYQXM/KwhgmzcCCNdoFS+iw +siTEGMn9yRtNcQCSUkk+NqYfZVBFg37Qj2S913ncmVcYEriRZ7VFRJ+QHmjrW+5q4cxJZ 48lkKcKQdm4LKqJS17gswIlTj2IiBcRoGnuDtID4wUIIRS2LixQoi2s8R2Jfsw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629180780; a=rsa-sha256; cv=none; b=n0MaWPPcX2mYjDiRc9QflEOf0Eh/xuhNZZl5yHVJmx8OBiBlAEtzd2ehnSspNwup9gaH8K WSbI2bqmeXWaFWHh+9xJewSCxSxStRxyzgs0Na0FFCJ0Kq8poA8hfuqwK9mmmjEUyEOXXH 7Lriumb6xXKJTMe0EtoyHg5RwPGxUc7rYy/huaZ+3seA5fmnLS2x1+ycyaysIc27cIU3vr UyiR4RSYslNT122RQ4R7HSzRPCFit22TTlqnH1HA0QwzCOAmCOJP1PqHeKgcup/3qbTHyk o6OPjlj69gN82Pzoj6ssgaJb6fplpeR0KKd4K2JO+qD2EZEx+5leNtMy+xZNxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JEXbXeYc; 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.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JEXbXeYc; 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: C5AF01C2EB X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: fEx8cUX2lceP --000000000000ea55d905c9bb3380 Content-Type: text/plain; charset="UTF-8" Awesome, thank you! :) On Sat, Aug 7, 2021 at 4:15 PM Nicolas Goaziou wrote: > Hello, > > Zachary Kanfer writes: > > > 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. > > Fixed. Thank you. > > Regards, > -- > Nicolas Goaziou > --000000000000ea55d905c9bb3380 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Awesome, thank you! :)

On Sat, Aug 7, 2021 at 4:15 PM N= icolas Goaziou <mail@nicolasgo= aziou.fr> wrote:
Hello,

Zachary Kanfer <z= kanfer@gmail.com> writes:

> 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 =C2=A0'(?l "Export to LaTeX"
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (?p "As PDF file" org-late= x-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 (org-late= x-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-ope= n-file
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(o= rg-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 f= ile"
> org-latex-export-to-pdf)).
> 2. There is an extra parenthesis at the end of the block.

Fixed. Thank you.

Regards,
--
Nicolas Goaziou
--000000000000ea55d905c9bb3380--