From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6HhIEPup6WVoHQEAe85BDQ:P1 (envelope-from ) for ; Thu, 07 Mar 2024 12:50:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6HhIEPup6WVoHQEAe85BDQ (envelope-from ) for ; Thu, 07 Mar 2024 12:50:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709812219; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=LnvxX747f8Yg8keFclvJGKZcEUnh4BWsm6MRifQwyCc=; b=Zv7cwQlDJv/D0P7DUJxonX6hpCYj63m3vObd9wTohHks0CsFbEmQE+edQNsF6zktsoCF1I c4l5NerPHzk1k66VlhQv+zpr6YDIv7uBgFUmpNMjkIqI+N4//YQsasScLbUtDzQRPOOMWy a3rFLDMmRE0FhJq21DHrRELkllogRzbrKA9PzM6dbaiOsXQM28DIy4LefbxLGH6q3TOWy0 aXp9mUc+751xlCqXFTpS9NFWy9f0DsVQsF4eCFF7qkPrYQQPJym0ZdKRtNTbo1tPmVmJuR sNL6vfLRCVfjBf70go0JFV9cRV1XjqGTEJkjuiKA3EfhPpnrOr4UUUgyy2r/yw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709812219; a=rsa-sha256; cv=none; b=E0HgIZBzNDiQhUz5TgWqa5Xhg6JP5gybk1UNKbk/XexknPSM5lyqkK9cSi5XhEnWd14uEE QxCB/SAAC65xON4JiEqztSYumiDGiQDm7QIk2GCc88mgJkWA8YMvs6gGe1Z2QQ/bJNWDH4 JlYzdTlsLkC0lGd4LAIkmZTVrXzMNv39ueigfWgVWQfTlJPeJNmMUcXcuY+PtXjnIZspvN 2fAYk9lBFToKn1SP67KGh+Sz2JGWiVOjGCdYTB5PqU41J9ufw1G4p4Y9cfURDb3f7yKYFO VwglhDSHYXmLneNHuBvXWSd3bkZhp022z0k4o5V1jEfIE6W6WanPUfZdmxpa1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) 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 3F32A388AD for ; Thu, 7 Mar 2024 12:50:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riCFX-0005H7-NY; Thu, 07 Mar 2024 06:49:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riCFV-0005GC-DI for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 06:49:21 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riCFU-0008RE-41 for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 06:49:21 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1riCFR-0004S7-Ty for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 12:49:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: [BUG] obscure error for invalid :exports Date: Thu, 7 Mar 2024 18:49:10 +0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird Content-Language: en-US, ru-RU Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.69 X-Spam-Score: -4.69 X-Migadu-Queue-Id: 3F32A388AD X-Migadu-Scanner: mx11.migadu.com X-TUID: 3U1TaSISF77N Hi, Trying to export (to HTML buffer) src_elisp[:exports source]{a} I have got an obscure error org-export-as: Wrong type argument: char-or-string-p, nil I believe, some meaningful error should be signaled. I was quite surprised since the following is exported with no error #+begin_src elisp :exports source a #+end_src So source blocks are more liberal in respect to user errors. `org-lint' warns 2 low Unknown value "source" for header ":exports" Reproducible with Org main HEAD and 9.5.5 Of course, it should be src_elisp[:exports code]{a} but I was going to test org-element parser on a more tricky input and by mistake typed wrong keyword. It took some time to figure that it is not a parser error.