emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2021-08-03  4:36 Zachary Kanfer
  2021-08-03  4:42 ` Zachary Kanfer
  2021-08-07 20:15 ` Nicolas Goaziou
  0 siblings, 2 replies; 4+ messages in thread
From: Zachary Kanfer @ 2021-08-03  4:36 UTC (permalink / raw)
  To: emacs-orgmode list

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

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: 1441 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-17  6:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-08-07 20:15 ` Nicolas Goaziou
2021-08-17  6:12   ` Zachary Kanfer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).