[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug: invalid example for org-export-define-backend's :menu-entry arg

From: Nicolas Goaziou
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: Sat, 07 Aug 2021 22:15:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)


Zachary Kanfer <zkanfer@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)
>     '(?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.

Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]