From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6IpXDQ/qDmEsGQAAgWs5BA (envelope-from ) for ; Sat, 07 Aug 2021 22:16:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AHfLCA/qDmGvBgAAbx9fmQ (envelope-from ) for ; Sat, 07 Aug 2021 20:16:15 +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 84AC33FDB for ; Sat, 7 Aug 2021 22:16:14 +0200 (CEST) Received: from localhost ([::1]:55680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCSjt-0001ur-KO for larch@yhetil.org; Sat, 07 Aug 2021 16:16:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCSj6-0001uG-5J for emacs-orgmode@gnu.org; Sat, 07 Aug 2021 16:15:27 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:36435) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCSj4-00034M-B9 for emacs-orgmode@gnu.org; Sat, 07 Aug 2021 16:15:23 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 617C320002; Sat, 7 Aug 2021 20:15:19 +0000 (UTC) From: Nicolas Goaziou To: Zachary Kanfer 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/)] References: Date: Sat, 07 Aug 2021 22:15:17 +0200 In-Reply-To: (Zachary Kanfer's message of "Tue, 3 Aug 2021 00:36:15 -0400") Message-ID: <871r75dnai.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@nicolasgoaziou.fr; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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=1628367374; 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; bh=xN2wRocsU4Ap6s0lGoiVc3zsvyxh6RRXNXnX5yO/g+o=; b=UKPHE6LhvCSnG5FnH99maZIRxE77UNEqH5cqvfYk9Yq0foNq9Bw34U8kMHARQd0kmXLlom GrSof/JE72rrcBD/GPR7XqkwDNaCYxCpb9ehpDOQW9rIdU0tK9aufjGTQJMPukGfcNU+wK 0ofzBiQiOuSOzsv9k/R97NyZHZ/c6N51ln4vU+nFumwBn3cpWkXZ66y1wWTbNUzXOdia4K cML23w051+tHC0wXTznIZLcKZUapI4Dyq86zB9gouhNQSSmQ5FcA/slf0+w+90QnRU9f5X uOxWLyIUIw4vvz1ams2VOZJDQ6GfmI7Hfj4JzXXszwZW3XZrAZOtFj+TdR9v7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628367374; a=rsa-sha256; cv=none; b=ireTk9INZeuNnxWaILAHCtJAPIr3d1Phmziwgge8PPTvWnIlRQLxT4Q2GaPa5QWvf0Lg1r iEclRQKRiw/hxBkxDHmbuwYVV7832UX9QaD/lsnTDKScGwr2NCSNQaRr2oL6BuJhpdYidH gB/CUlrXUonc3LBUcQrsbBGweQkhiUesVg5O1aMLph0Tw2ZchMi6uC9o+0z1DEWT0BCHaW o+Egcj4oR6nBYa83Sfjg3luAmppdLp9BLikBlwcbltM1kjbBGHRwBw/V2/gfeoNvECYtZx S194D4IwV2ARCpNXZuYIlW25p4/RlV3uadZfMXBwGj029UZDb9WhsGNHmDzSGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 84AC33FDB X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: cOiaZ07s31gr 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