emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Zachary Kanfer <zkanfer@gmail.com>
To: emacs-orgmode list <emacs-orgmode@gnu.org>
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/)]
Date: Tue, 3 Aug 2021 00:42:52 -0400	[thread overview]
Message-ID: <CAFXT+RObbnFDT41_UohKHAqRqwfRvK6C+h6zZaPpOgv4Pf3MzQ@mail.gmail.com> (raw)
In-Reply-To: <CAFXT+ROhtdx05Aqs0-7tNiLo8Ya1eBGQ3F2CLDzG+nxtzuvSog@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]

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 <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)
>     '(?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/)

[-- Attachment #2: Type: text/html, Size: 1989 bytes --]

  reply	other threads:[~2021-08-03  4:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-03  4:36 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/)] Zachary Kanfer
2021-08-03  4:42 ` Zachary Kanfer [this message]
2021-08-07 20:15 ` Nicolas Goaziou
2021-08-17  6:12   ` Zachary Kanfer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFXT+RObbnFDT41_UohKHAqRqwfRvK6C+h6zZaPpOgv4Pf3MzQ@mail.gmail.com \
    --to=zkanfer@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).