From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6M1aHIWhvWEAtQAAgWs5BA (envelope-from ) for ; Sat, 18 Dec 2021 09:53:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yGsiGIWhvWENXAAAB5/wlQ (envelope-from ) for ; Sat, 18 Dec 2021 08:53:25 +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 1A32F1C53A for ; Sat, 18 Dec 2021 09:53:25 +0100 (CET) Received: from localhost ([::1]:48312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myVT2-0000tk-4J for larch@yhetil.org; Sat, 18 Dec 2021 03:53:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myVS4-0000tZ-5v for emacs-orgmode@gnu.org; Sat, 18 Dec 2021 03:52:24 -0500 Received: from [2a00:1450:4864:20::12c] (port=34734 helo=mail-lf1-x12c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myVRz-0004CF-5J for emacs-orgmode@gnu.org; Sat, 18 Dec 2021 03:52:20 -0500 Received: by mail-lf1-x12c.google.com with SMTP id br40so7182185lfb.1 for ; Sat, 18 Dec 2021 00:52:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=mxssDbHbTorgOAEjqkD9+NV335Gg0lSO1jvSAD60eoo=; b=U1iWJMbBAWpyCcMZ2Xn72uywuKB3g+9yURnYt7J7+9fXh/T/tBDdwEIvxL5CeCIhbM zWpeNkYcWrG1HS7EMFTrs8e1BSz/wNNsimEX0Zx6PAeUPiezccTH4rNtR819WUjEIQQS ejN7wyMBDy16HTGEnUi1T/8zkg/CPufg4s5wsc7oFG7VLWZyxR4J4AuzC2hPY4znI8Dm cqzx2VrcWMWynj9UUQLLvId3Uv0miJzy4lQrSn6f+kubqhKRzHV3zRfuoP0KIgKDV//x FsMjomQyYlmsfeqqg4T86YeXzaHYF4BykeY8KCE0XfXGLGJdM3dgHM/bhQQlmZHsmSnd Xiww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=mxssDbHbTorgOAEjqkD9+NV335Gg0lSO1jvSAD60eoo=; b=WPUY/JddMWRMlX0hoJu4g+RVB8CmZBBaR0TwOb2OYo54dnm1sBX1ps1nB+XSuhj2iv lrjJmdqGQyF/GLdxU8JTyb7LixJWTkR2084/yIojYj6najnctacgPh8p7hk/6sALdTwT x3mgB4sKu5TkwMz/+/zR9NnCT7RgDLhwVRBjz2T+LB3vLIX79NaCGmnkBQoQybtpYZkq kZQE+o/PnGN+WSZ4Z1psHyCzqKImCZcsluTLXr291Ashz+vhbrrb66/h54CoXq+Yitrw EWKonGddXW15ymBL80n9g3nkb5wmyPpNLTbEQGN4ZFcnCSVj1Ko3XvAxuXWKByBHSCb2 6MjQ== X-Gm-Message-State: AOAM533hIbhAwnUuF8SFwmfjHy0OGyy0jmrizExnCn11QJjCCoueA6d5 ecJ2q7/fT+ZcgXt9n7g6eWjksE7eRmCEKeeWZDkj0stjX9InQw== X-Google-Smtp-Source: ABdhPJx2U+aS+MpivjrJ1c7+IEK4VnMF441Yexp4gJcYZBrUcRU/8+nLQwyT8LiHVAd7WuvHnKUj5CtVAIvKu0JoMm0= X-Received: by 2002:a19:dc51:: with SMTP id f17mr6578359lfj.555.1639817536855; Sat, 18 Dec 2021 00:52:16 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6504:1491:0:0:0:0 with HTTP; Sat, 18 Dec 2021 00:52:16 -0800 (PST) In-Reply-To: References: From: Samuel Wales Date: Sat, 18 Dec 2021 01:52:16 -0700 Message-ID: Subject: Re: 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::12c (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=samologist@gmail.com; helo=mail-lf1-x12c.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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639817605; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mxssDbHbTorgOAEjqkD9+NV335Gg0lSO1jvSAD60eoo=; b=GKSfgkyhuI5ziFsmK/mC2neOPHRq3iRVF2/F9Rr5RZDRoLDXBdjY5CNbZUbuMSKsqRqJu7 Q/lThC6HZZJ59K/cwHTlqu8tuKMcxYdadDmBHCuRlcL27EVr/D4UqqWFwY5nT/Kg7A8gAy 3gha7gqgVlJsyCpH0Hl+bVEczOYmgVOCzTheUp3pfSJCCMGM9rkIHWLwZaE+OaF23OFwrM rDZEMVNfZHYqu6lsNxq5b/xFZ3i6MkHQ6EmYYCIkQ5Aqw7BY3B5opLn/rfo1lw4YWHByPM 4pD1/ZwUA4nqEGUPOLJ//JbmSMmHGmA92LWp4hKPFgnDd4m3bCglRhomlnEchg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639817605; a=rsa-sha256; cv=none; b=WmP6H7rWJ083fglWokOtjvrnBT3c9OWy7IHr53MuIHq4Y/kUxUTZ71U4yrqS2693EIGRmE NDSWuMDRjrgmI+j/8mgt9gbTPawi+gCgu6MCKkO0VckAiIXT6yDkebhJYRFnVjK9z6Ufvg NaKq+NRJRzwtlkdPDsHfuErrUgqtJq745qQaI1gO+cT8UYjJkFMqUilY07yxJlwCK70mte KXkua4dq/rmRIKz5/8wHZhINW07RQTdY5kNlvsxp3ukSKGON0vuEXay7uacPvuEgRZPjIF XCQH2tLjmh0V7iBkS/tFkmTTcF5o6yAPVjmu2HhJYYbj120zgaw+SOfZoCWleQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=U1iWJMbB; 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: -9.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=U1iWJMbB; 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: 1A32F1C53A X-Spam-Score: -9.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: KWBNbcOUXm+W [following on my most recent post] or for example this one, perhaps it is too obscure but i wonder if these emaiuls will be seen again. not really asking for anything. just want to know if they go anyplace. thank.s On 12/12/21, Samuel Wales wrote: > 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 > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com