From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 0LfWD7C7qmKFqwAAbAwnHQ (envelope-from ) for ; Thu, 16 Jun 2022 07:12: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 mp12.migadu.com with LMTPS id +Cm1D7C7qmJvIQAAauVa8A (envelope-from ) for ; Thu, 16 Jun 2022 07:12: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 E13A62BFBA for ; Thu, 16 Jun 2022 07:12:15 +0200 (CEST) Received: from localhost ([::1]:49928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1hni-0007mC-W5 for larch@yhetil.org; Thu, 16 Jun 2022 01:12:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1XLd-0006RN-CW for emacs-orgmode@gnu.org; Wed, 15 Jun 2022 14:02:33 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:36648) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1XLb-0007kg-M3 for emacs-orgmode@gnu.org; Wed, 15 Jun 2022 14:02:32 -0400 Received: by mail-pg1-x529.google.com with SMTP id r5so5354427pgr.3 for ; Wed, 15 Jun 2022 11:02:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=cpaIM5SgWoihC9udRj9cVSz+QqSYqpi0dV/DVEbyQ/I=; b=kzdW1MVM2v/YIEqQ41M4mWJEHI+cSrab1QsqvPo8HWx3nyemDfkWuY5VY5vMgvxYta DpTERr02t1Tys5aLJRJzDCMbIkWLZPumcbIvgdurw0IxIb4QWJk5wqwRA7K7C5zUKDeI r8ZRzx+jMToqjOuhWIY3LU7kuLt4sdKOlniylNtqms9/3ULAfWADciTpb0EdYkLuQj50 f5Y7+NuyVA1o+5cQM1PoF73C7U64M/g6IdAzHIWEP6HLyjtISl9/MQ4+8jwj43RnlGmr NfTlsnyCXvtiUH4y28LLpMQwJLlsRj5RxPvSM2imVCyLj6NqSuYzIi3y23hhJTehn3rn heOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=cpaIM5SgWoihC9udRj9cVSz+QqSYqpi0dV/DVEbyQ/I=; b=t/omqZz4zymA5kLAOmFVl0wZ3F0Qhwz1MUTpzSbqO4pD2Rmf6WX8qLEnPEoK56qsfg RcP9H98B5Vk4dlLLzjtPI2HDG5nboZogff5e5gm46Hc16brekq9aPucOU0pvRAVmZopZ z+NNWmBxFMlm3h6ZXpfQR68+utkSREfMyas7IDLfTK/0KRo8cJmiHP2OAyzaM8EqvmNp udop7sabCPEtkY8hPzhP8DqS0ytGzy7rnXVOXjtfovxlf5tn5p2j3hUlIsuPua2mSJob FmclNV3Oxvh7upGew7xraeAY94CUggdkZs0dMf9VgtJ8ofWrgWD6w+dInodcBOg43UJf RFhg== X-Gm-Message-State: AJIora/dhkez0FyjzaPjN3ph0dAJtX7Jeb1KK4Hmj7VxLS170MRIqoN7 63wSyM70CvJCiiQWWGnEatda/jHkWSE= X-Google-Smtp-Source: AGRyM1s+dp+dol3mXBdQ8PbOh48pevNkQZHVR6OPFI/T3jqx4NuAbmC1MyENRAOQK9luoU8lAZJFTA== X-Received: by 2002:a63:5722:0:b0:405:28e3:2eb6 with SMTP id l34-20020a635722000000b0040528e32eb6mr879489pgb.544.1655316149520; Wed, 15 Jun 2022 11:02:29 -0700 (PDT) Received: from peanut ([74.3.135.213]) by smtp.gmail.com with ESMTPSA id s194-20020a6377cb000000b003fd1111d73csm10690897pgc.4.2022.06.15.11.02.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 11:02:28 -0700 (PDT) User-agent: mu4e 1.6.10; emacs 28.1 From: Asilata Bapat To: emacs-orgmode@gnu.org Subject: [BUG] org-agenda-skip fails in batch mode because comment-start-skip is nil Date: Wed, 15 Jun 2022 11:44:38 -0600 Message-ID: <87fsk5955a.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=asilata@gmail.com; helo=mail-pg1-x529.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-Mailman-Approved-At: Thu, 16 Jun 2022 01:09:53 -0400 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=1655356335; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cpaIM5SgWoihC9udRj9cVSz+QqSYqpi0dV/DVEbyQ/I=; b=BBlEmmOuAPnqR75/RQwVisoATt1mfkgELurc4Hp7jbu9t9cF7cL+w724nDF38fWe6/KXAu hsw/PZ2XwuWo9eKQYQgkZK0WujDMsH16GPlE4TsHV8HDuoupd8cdKsCeDRIxwtNvBcl3PY wmGPXwGXCfefJuNaH4wU/kfnkds2TOKxNu5l+LdKZjL8DMBmtTT30yQFAQJyg0HOMivYMc q3sxJe1M9cmYA6B6M/YRZXNSwClPsZh4sCW59/dMONOzd57zTlUA3GxBMFPbwfG2SMXTBy mo3974w0QdOkLz5Uk6Qhg6qrpbiYxzSnE0eeeA6tGG3QdwXRiZfvAQEoKrq9aQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655356335; a=rsa-sha256; cv=none; b=e7qwqms3qJKVpeTdWSQtNLIyhOMuAnZeJWM6j6TT1IyCWq9scXZlMwCla0XNbbHGf0SRUF eYljETrW/RWUszDOS6TciQG1Hh5hOQJTzT7rLoEYknxSboZLGhi+tjkwa/s83hUxBsIfE9 8xraGev4dkzgRpmdNWbNucNqU1DIMDgpKISCpvwQ4APN0jyqCAsd9U2T44zQMeKAJ67XsZ w+OgCwgJwP9DYfm9vdgAyMewFi/NkVYKIFIRKG0+c+Iv34p/StdpOT2P1YxL6lCaL5tAJY xVUxwnXDownjWE6LLRmo7bIjPdNFRQveeSs6WjJyKGNZ8QCA1JlzGERnwVkB+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kzdW1MVM; 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: -3.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kzdW1MVM; 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: E13A62BFBA X-Spam-Score: -3.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: 633KWse5ayAK When org-scan-tags runs in a batch mode invocation, the value of the variable comment-start-skip is nil even while scanning an org file. The function org-scan-tags calls (org-agenda-skip), which in turn calls (looking-at comment-start-skip). Since the value of comment-start-skip is nil, it triggers the error (wrong-type-argument stringp nil). To fix this, the function org-agenda-skip should ensure that the variable comment-start-skip is set to the appropriate value. Two comments: 1. The issue was not present in Org version 9.4.4. The issue comes up when I build my webpage using Emacs 28.1 and Org 9.5.2, but not when I build it using Emacs 27.2 and Org 9.4.4. 2. The issue can indeed be fixed, e.g., by changing the source of org-agenda-skip to invoke (org-mode) immediately before the let statement. Doing this presumably sets the variable comment-start-skip to the expected value, and the invocation succeeds. Emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-27 Package: Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)