From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KBAQK17FtmF5FQEAgWs5BA (envelope-from ) for ; Mon, 13 Dec 2021 05:00:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CHCOJl7FtmEDCAAAbx9fmQ (envelope-from ) for ; Mon, 13 Dec 2021 04:00:30 +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 568E629E45 for ; Mon, 13 Dec 2021 05:00:30 +0100 (CET) Received: from localhost ([::1]:33642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwcVo-0003yd-OM for larch@yhetil.org; Sun, 12 Dec 2021 23:00:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwcVA-0003yE-OO for emacs-orgmode@gnu.org; Sun, 12 Dec 2021 22:59:48 -0500 Received: from [2a00:1450:4864:20::12e] (port=39480 helo=mail-lf1-x12e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwcV8-0008Sb-PQ for emacs-orgmode@gnu.org; Sun, 12 Dec 2021 22:59:48 -0500 Received: by mail-lf1-x12e.google.com with SMTP id d10so28462781lfg.6 for ; Sun, 12 Dec 2021 19:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=gQjAeRlqIZyb/6nnBAFJyTw8PJm07NvEvOz+gPN1wx8=; b=p14K7J4odjLUTNraiI71S1p2yZIRV5p2UIMK1gZ7TjQlY3tzT362o/zH6i5XTsppx5 y5/MFCuvQX+68sPbzxaDRkb1Nnjfqtc2a+9fThn10rJU0GTGYV5R0gBgLsl2O7c81gdu kI/+OK1SvOIPr4wAGTs4DbrYY1Xsw8qXCJswvAnQLgRihw0hGP+lluxcvHR8vZryWMdU /iSF4gHJ/sHsd2uRg9nHHFmfE1SoRXFEi6xrg3OC6ntMpp0n4IGkLcqnGjldJnKgPvfL A7oBxQ1dtVkyFqyxMvGP1XVdckYJK8qzfDYVqQx+VSq7J7BjJr9bo+R6W9fZGqLewQKo ckqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=gQjAeRlqIZyb/6nnBAFJyTw8PJm07NvEvOz+gPN1wx8=; b=gBdWlw1JKnUQny1jCqAVRgDZIzFe3rIrbz37UHSq1jNM5KvD3hMbCKBmc2Zpwv+ucx cJb+wTNX+qAWTX1VPACnw81L+rk+0bS72jCmwukhIvhSt7t73vIrvyFSw8P4jPnODNMV Z5RQxCIJHVT0VQoXRcr8yW7YJnBza6vuIUMk4j22BtyxswzN9mI5GjlYXMktfvFp/6Wu XAiIT5wkXCNB7IbdaagzX/F7Z64YwViPO667wmd5mgaz9r3saMnJZ5QnGv20koTlqq8A Rj2m/lErQ9omY8QlQBatFuvM04ShNX+9CTZMx6FGTJAYg7cxrTzFDZHvIFcg9zzO4uDk FD7A== X-Gm-Message-State: AOAM530gMsRlRXBIfJX2OvElgYpeeBBYootBcoKucmZtXBmya2TpPLCB J5E6Fviro4Nc5ShXHxrf2u5i0cpvLYuaHnzodJlUDArd/ccLUQ== X-Google-Smtp-Source: ABdhPJzvcY5QYaYpRwTy+7xqFZAmGFB1BPO+wWnIn5UQ3zWPa9/OK3k+FKK82DZczJX370exjl4LakhCAdpnhZzgPPw= X-Received: by 2002:ac2:4d8d:: with SMTP id g13mr26642623lfe.49.1639367984550; Sun, 12 Dec 2021 19:59:44 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6504:1491:0:0:0:0 with HTTP; Sun, 12 Dec 2021 19:59:43 -0800 (PST) From: Samuel Wales Date: Sun, 12 Dec 2021 20:59:43 -0700 Message-ID: Subject: re created using regexp-opt fails in an org agenda command To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=samologist@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639368030; 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=gQjAeRlqIZyb/6nnBAFJyTw8PJm07NvEvOz+gPN1wx8=; b=UwoQFu3ly+aozdAd9fk2IMxvn21ZyiFAFe6xkiZTwcif5vPlYueZ1CK3xSd3SLnDoZE5fs j/KnYrUmqvKc/8M0shD6RAAyJYrBDX+sUGrimBRY1tR2F5Fmn+FWN4xlxd9yhY4QHsy2yr no/oWdxj3fE27kN+9VDS74RhTEGf1Reupn1sYM7hcJYf3Lo19662JGtRNjRm466amgxpNz ebMTxlIPLWaDgwHaVsJJakg/pcZmhoE2GvuiLrH7cxaNjeO+Ec6VB9kHLHiO2cNmjxp/OP kefKkfe+GR2Nturi+dZ/8fNM9ihYrqJvXLxN2zyi1MoCqvfEeSHEZBSE3BkjQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639368030; a=rsa-sha256; cv=none; b=gYTbV28+q40AkTYUbKw8zwTjeupxR7VC+mqebznrYxcFGWhRzUafGWXgtdmzIx4KUr1JQ7 iZS+uvHTRzuR9Pow0NP9gdAf+pNxS0VDmNI3tykPcITdIsGIpvm6P2ljOc+6X508P4ZQO7 m2JgTCDCjrSZAkiwVN8hDHZrFgEoY7/iyt1rrS1DJklciWPLFR2wcQnB8tT6DhGw9swhdW 1DeR/nUD40zCAYToGOJAjNamgvslwTMLqAD3RT1msLq3E9Qx4h7E22GpWak3AQDYmZAWcW VbmDgv0/UjzpOyQXckY7hdeZXgwhwDtUn9bKvQL0XIEntAds3jEIvTC62Wg/Lw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=p14K7J4o; 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: -4.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=p14K7J4o; 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: 568E629E45 X-Spam-Score: -4.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: pSecN3fc56OF this bug is strange because it appears as if regexp-opt is broken, but the only likely difference is an org upgrade via git clone. in an org agenda command, the same set of org todo kw works if a regexp was created using mapconcat, but not with regexp-opt. i expected that regexp-opt with 'words is identical to the mapconcat version in functionality in this context. === i am trying to upgrade to recent org 9.5 main. [goal is to eventually use bugfix branch with a couple of patches.] [on main, however, i intend to first try the batch agenda archive speedups. current is org 9.4.6. thank you very very much for those.] i am running 25.1.1 i used git clone from savannah to get the org repo i have not tried -Q yet as that woudl require a lot of setup i compiled with make which defaulted to make oldorg in my current versin of org, this bug does not exist, even though regexp-opt should not have changed. === here is the org-agenda-custom-commands command. i have provided some raw strings produced by the commands. this version errors with "and: Invalid regexp: "Unmatched ( or \\("". toggling backtrace on does not produce a backtrace. but if the regexp-opt is commented out and mapconcat is uncommented, it does not produce an error and it works. it also works with the string /produced by/ mapconcat. but it still fails with the string produced by regexp-opt. i confirmed that the string version of the regexp-opt works using re-search-forward, so idk why it would not work from one version of org. ("ne" "clean up by expired CLOSED" tags (concat ;; the + makes no difference seemingly "+CLOSED<\"<-1w>\"&TODO={^" ;; "DONE" ;; (alpha-org-todo-of--regexp :doneish) ;; (apply #'append (mapcar #'alpha-org-todo-of '(:doneish))) (regexp-opt '("DONEKA" "DONE" "MOSTKA" "MOST" "ANYWAY" "DUPLICATEKA" "DUPLICATE" "MOOTKA" "MOOT" "WAKARANAI") 'words) ;; "\\<\\(ANYWAY\\|D\\(?:ONE\\(?:KA\\)?\\|UPLICATE\\(?:KA\\)?\\)\\|MO\\(?:OT\\(?:KA\\)?\\|ST\\(?:KA\\)?\\)\\|WAKARANAI\\)\\>" ;; (re-search-forward "\\<\\(ANYWAY\\|D\\(?:ONE\\(?:KA\\)?\\|UPLICATE\\(?:KA\\)?\\)\\|MO\\(?:OT\\(?:KA\\)?\\|ST\\(?:KA\\)?\\)\\|WAKARANAI\\)\\>") ;; this line works ;; (mapconcat #'identity (apply #'append (mapcar #'alpha-org-todo-of '(:doneish))) "\\|") ;; this line works ;; "DONEKA\\|DONE\\|MOSTKA\\|MOST\\|ANYWAY\\|DUPLICATEKA\\|DUPLICATE\\|MOOTKA\\|MOOT\\|WAKARANAI" "$}") thanks. -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com