From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ADauINrJCGHm0gAAgWs5BA (envelope-from ) for ; Tue, 03 Aug 2021 06:45:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oDJhHNrJCGGsFQAAB5/wlQ (envelope-from ) for ; Tue, 03 Aug 2021 04:45:14 +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 C735E126F2 for ; Tue, 3 Aug 2021 06:45:13 +0200 (CEST) Received: from localhost ([::1]:56822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAmIi-0002V7-EL for larch@yhetil.org; Tue, 03 Aug 2021 00:45:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAmAJ-0005GW-KL for emacs-orgmode@gnu.org; Tue, 03 Aug 2021 00:36:32 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:35414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAmAH-0002n4-2c for emacs-orgmode@gnu.org; Tue, 03 Aug 2021 00:36:31 -0400 Received: by mail-lf1-x12b.google.com with SMTP id c16so8070187lfc.2 for ; Mon, 02 Aug 2021 21:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=291NvHxLJP4G7kkeDcdxAsaPxXduD3h1kouB95rcLEY=; b=UOkt8iI9d123KH7SzdnaSGlwZ/PRr/B28T8zGa3a5loTt3CXdyXZwd57/3pLxWw3Sm ApDmise5nksklqnwB6zc77Zs6/X++JohpwEqJTbQuMsKauj1w2RqnBvWSC3MC87wwkM7 xhFHLZwo7EKr7ufd/pt+fh/sSi9UgcbvI5cYYTNrtd1HnPTiJ5XT+Zo+Fl/oU0zZvnog R0Ao10fwuQq0HIbhvL/pW0JcmOKsuVLahwvVNK7of3+vDlImpPu3KZup7U0Iy7yYZVjU 4GAjJwYC7UNqvTntGb56MPwNCgYybU+zXNzHOgTDVAi6eQVUjXVoMtMwi/JoV1FOODq2 G75g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=291NvHxLJP4G7kkeDcdxAsaPxXduD3h1kouB95rcLEY=; b=WQo3lkr0j+/ryGRllc89xLRpTEqSvPX8hmBbBwsKNfsG0CcOSnnJ3caDmqNl0sApyS laE9kXhzZHo3hja52X9TAyezfRmT+Y5NlhFGAZDos3robyc6QHelYap6mSw1YrcrVfMw aGNvOtkxLn5kgGRVoMcA2sPGlYpT2+u9dhAutEHyKe1x219YwrlirG9A8FJmoobgQK3Y EM7FFulxQz6u9rZOZ/tjo+cgls/+zvoaLCyOYgSIhgXuTMVJTfnaJ3x8GflEx329aYpf bko1lUWpkD7wC/ClEQzuyruCMEyuoR9bDDg5Y1Ag6pA8fPQVs+m76OiwAx+2YPousW2G ZaAQ== X-Gm-Message-State: AOAM531loQj8Hdjq+2nqBf6jzcRtUmPnP5uRyftFeQdeH+l932P3RV5R AxUkpeE6ab7DwKZtJ+zFdMW36ilbVm8DoM8X7N2D53eMhKE= X-Google-Smtp-Source: ABdhPJx8U7IHu/tuT9WRtB/23AAZqeKMDVpIpfEgAqkfUA5JcTs4NkuDIViHk6UUf4B4AVUBsBS+8NY88uI/oh2nx3s= X-Received: by 2002:ac2:5e8e:: with SMTP id b14mr1471657lfq.165.1627965386638; Mon, 02 Aug 2021 21:36:26 -0700 (PDT) MIME-Version: 1.0 From: Zachary Kanfer Date: Tue, 3 Aug 2021 00:36:15 -0400 Message-ID: Subject: 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="00000000000093ca5405c8a03a89" Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=zkanfer@gmail.com; helo=mail-lf1-x12b.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=1627965914; 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=291NvHxLJP4G7kkeDcdxAsaPxXduD3h1kouB95rcLEY=; b=WjdVoq6WLgtZTjx2f5GkrylyJy1GRRXrJwKHrlNVaPUG4DYSE2TaFITzqQt3ITlTZvWtkZ MokGTaen2IEhmbsl2Jz9RuiZiGzjHVCBmokJW1+2UV3mAZZZezJFbSHIQRH8cZA+yemeQY hSUQdp5KDW0vxuFpQ4fOS6HYkd9PWtUnGXvOo5JyxnbYTHQBLSnlhIbiW99q8WS/+fubIa 9KsQYILazpsB/LWliJH0dKZd51A6vZF1s/lhNXnnaXcj0njOsc6Ik9YPeGLp+RrdFsUueg I8tbLaS/M5aTSmykDCtPTxyNVoCbNcxEEA4PMwRy4q/Xg3V1X7KvF+QqFsEgZw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627965914; a=rsa-sha256; cv=none; b=ZeP9ql0091thoOs7ygF3hBMSrS+1EgNVVmz0AAfXZLBd7fj0qV24BDdSIkq/gy0LT370dq fhSDVPywxXsqIJ/p1maS9/HuRPvaDNFjd1I2pcQX7DkOrbZU/0LxTFpfsOyNU6zvq86TPG F5mYMiehAeYzy5htCUwceyw9BtVaBjQLIUPxg3+HJQuENdWe3XTYt03O8uyRF6E6QdrRI6 cnwAOk4IBVpdCJnbd3J4XD1dzWsK34SfxAIbvcdEiJINAEiI7HKTsko3SSY8Mgrs9SkWl/ mv9nuCCNGMlXzG112dqUExwQ0X0FsSVQeV6Sx9b8wm2uP7j/RJelZPri9srX3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=UOkt8iI9; 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=UOkt8iI9; 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: C735E126F2 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: ztLT1J7qQALX --00000000000093ca5405c8a03a89 Content-Type: text/plain; charset="UTF-8" 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/) --00000000000093ca5405c8a03a89 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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)<= br>
=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 (org-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 inval= id for two reasons:

1. The ?p and ?o elements should be wrapped in a= n 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 someo= ne 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 version 9.4.4 (release= _9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)
--00000000000093ca5405c8a03a89--