From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8HT8JUAlsWLTZwEAbAwnHQ (envelope-from ) for ; Tue, 21 Jun 2022 03:56:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mDbzJEAlsWKKywAAG6o9tA (envelope-from ) for ; Tue, 21 Jun 2022 03:56:16 +0200 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 38A183D2E3 for ; Tue, 21 Jun 2022 03:56:16 +0200 (CEST) Received: from localhost ([::1]:39298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3T7m-0002Q3-JL for larch@yhetil.org; Mon, 20 Jun 2022 21:56:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3T70-0002Pc-UL for emacs-orgmode@gnu.org; Mon, 20 Jun 2022 21:55:26 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:43878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o3T6z-00030U-FH for emacs-orgmode@gnu.org; Mon, 20 Jun 2022 21:55:26 -0400 Received: by mail-pl1-x636.google.com with SMTP id r1so11217896plo.10 for ; Mon, 20 Jun 2022 18:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=b/9dg04ed/ywkSD5BRZ5waU9zIU1Sziv7goyMTF9qjQ=; b=ZvMYG8m0VERkSUmOprFsuD6GB6M5eygVF1oum7RjjGz9/4bScUVYaRG86xrdHndycK +W3r2qlIV+Z2GWmbxbpyO2lZdZTzkF1Ng/LWYkDim4eeYqYOsdZx/yzyNKyWW4KaHPDE pdKBRCGRGjlfT0xC8TwoZZuhg/nLzSEsx5mSeMA+8iyaF9Hb/6kU+4WpNyZ6l3WCiARE 2eDsUUlYTey5TPJU042VljOhwbdt1etQ85JTH0Ph5JbVjqsD0ncgwKZJgP6ag7cnE2gl 0m/b77CVVtByfFEPWDa4n1WkEBGajUv+ePSh/3ren/ss7aCmeQBanO879MX6wixz+q7o XU5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=b/9dg04ed/ywkSD5BRZ5waU9zIU1Sziv7goyMTF9qjQ=; b=LhvgkvpA6GABwanLrARKGMJUr0vqXGvkG82VjsC5240Ei9vxdVa8XsbFaDy6e8fGqm b4geZF9ZXDhmvWvr7VYceAgmWGp9MJlTDInzaKksH7MaHZ6kpbWbhe1Hi7QwP1b19bCe VPa1VXx/o1YTGBPTiQPA8IC1xyisAX8vZ5elljWN1zQws/22R/ky7RwRPPLUOsoK7RN6 UAWJa/QeMsiSKT/tScNXBMyFpJwh94aQP9U8s+iNaGwJf6ectlp7QOL4+jFdp1Hh6bTs HiE13j3GcaTV5vo4pCvg7NzgQENHDuLex2GPVdiWkLvR6BdFy38c/hvdo/mbDspy4g4h 8ppg== X-Gm-Message-State: AJIora83BYC8tkJ5OHQDzLUrEdsgFQlb5IRh6OcahuQT8Vhfcpxq9zvn 2Jwfw3kSIvoNjoruoJ4NxB7YWGTLn6o= X-Google-Smtp-Source: AGRyM1vp5u8drVqri7+MwQQxxoI5KFe+mYNX51EPVl9JngClBY2AgVc4sDE8jjGAs7zZpV1l1piwOQ== X-Received: by 2002:a17:902:7407:b0:16a:bd5:3ab0 with SMTP id g7-20020a170902740700b0016a0bd53ab0mr17921891pll.83.1655776522432; Mon, 20 Jun 2022 18:55:22 -0700 (PDT) Received: from amanuensis (tillamook.anu.edu.au. [150.203.32.217]) by smtp.gmail.com with ESMTPSA id 21-20020a170902c25500b001635a8f9dfdsm4088653plg.26.2022.06.20.18.55.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 18:55:21 -0700 (PDT) References: <87fsk5955a.fsf@gmail.com> <87edzl4e6t.fsf@localhost> User-agent: mu4e 1.6.9; emacs 28.1 From: Asilata Bapat To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-agenda-skip fails in batch mode because comment-start-skip is nil Date: Tue, 21 Jun 2022 11:42:55 +1000 In-reply-to: <87edzl4e6t.fsf@localhost> Message-ID: <87pmj2hj51.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=asilata@gmail.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655776576; 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:dkim-signature; bh=b/9dg04ed/ywkSD5BRZ5waU9zIU1Sziv7goyMTF9qjQ=; b=H+CB8QT8Ozg1sUtYH+y3cvgldh0q/vDYzVpsM4zJ9zLY6/VZV/RV6ubziN3ttJNt6xpb9W 5ns3VAavQ1AIIvIlbOEfQt+0iBWmA5+Llo+glAhHxID5/dbKnWDSKR9et3SfNSMH6wk3yj vOcD3sPeAaI+xCDKq5J69veLwbQMRXuSkDC0BQSmsnT256qR3XSxq6hceocPCiH6x6Qj0L lH3Pfm16Mt7gxNpRP2oZUBKyrtQOKAlAKLD3VUuIKkmAbTEu/e1whNTaqzZ5EyFaEZ0Vle fLJ1d6qbJS4TghQGoIRAS2iR5XV7f+ui3TjB7C//siSc4XF4qsJAOBOx//R56Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655776576; a=rsa-sha256; cv=none; b=EU0mL2WCjemsDppMREZYxxge/6bl/rpbn16tV7GS0RVYLG1BrZ7GtOTfiCUpB7RIBI579U CPBwK2z1hQcPQRWlLsSnMlK81+mgeqOfGEpoCP9+CP4f9wOC6DghKUzuTZzqS9/KstuNdS 1zuAIcJDz4/MdMFW04khAySDbDM0wiIbpyhjn2ppIu+9dXkqWv2S1vjkqrbCUrYSANrymd ndUgO6KL0KHTPKSmkY9gP24sQkfzQnHlxSvt9b3RFH5apHE/811MMxB/jPBM4APEVjEcdv FVsxKKPnSLtSctsia/17To7nsy7gW3125MDt/F2vPd7V08NZbZjkM9+kt69ozg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZvMYG8m0; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -6.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZvMYG8m0; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 38A183D2E3 X-Spam-Score: -6.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZDzRxBxy4uny --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Ihor Radchenko writes: > Could you please provide a detailed reproducer? Sure. I have attached the files "mwe-data.org" and "mwe-export.org". To reproduce, save both files in the same directory. Then open mwe-export.org, navigate to the "Export script" heading, and evaluate (Ctrl-C Ctrl-C) the shell source block. Expected output: a generated html file containing the fruits and vegetables from the mwe-data.org file. Actual output: Lisp error: (wrong-type-argument stringp nil), details as in my first message. Compare on the other hand if you navigate to the "Fruits and vegetables" heading and evaluate the emacs-lisp code block, it outputs a list of fruits and vegetables in a results drawer. > org-agenda-skip should be operating after org-agenda-prepare-buffers, > which, in turn, should call org-mode. org-mode calls > org-setup-comments-handling which must set comment-start-skip to > non-nil. OK, thanks for the insight. I haven't figured out where things are going wrong. But a possibly related issue is that lately, when I open an org file for the first time, org-mode does not load automatically. If I close the file and reopen, org-mode loads as expected. Best regards, Asilata --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=mwe-data.org * Fruits ** Apple ** Banana ** Cantaloupe * Vegetables ** Asparagus ** Broccoli ** Cabbage --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=mwe-export.org #+title: MWE for testing org-agenda-skip bug #+author: Asilata Bapat #+options: toc:nil * Fruits and vegetables #+begin_src emacs-lisp :results value drawer :exports results (defun show-title () (let ((title (org-entry-get nil "ITEM"))) (format "- %s" title))) (string-join (org-map-entries 'show-title "LEVEL=2" '("mwe-data.org")) "\n") #+end_src * Export script :noexport: #+begin_src shell :results silent emacs --batch --visit "mwe-export.org" --eval '(require (quote org))' --eval '(setq org-confirm-babel-evaluate nil)' --eval '(org-html-export-to-html)' #+end_src --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHAEARECADAWIQTZ8QFpKMvpU8fFMj/LcGHJ2T7R9QUCYrEl2hIcYXNpbGF0YUBn bWFpbC5jb20ACgkQy3Bhydk+0fWUvACaA2RCtK+EyipmXzgHUrKQXUEVEAsAoIeC 0Cb2NXjjOM/DvONmBzPAfUpb =yIdi -----END PGP SIGNATURE----- --==-=-=--