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 IMeUH0ndrmBAHwAAgWs5BA (envelope-from ) for ; Thu, 27 May 2021 01:44:09 +0200 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 oDlRG0ndrmBrGQAAB5/wlQ (envelope-from ) for ; Wed, 26 May 2021 23:44:09 +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 1360016DBC for ; Thu, 27 May 2021 01:44:08 +0200 (CEST) Received: from localhost ([::1]:47268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lm3C3-0008FC-PG for larch@yhetil.org; Wed, 26 May 2021 19:44:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm3BB-0008A7-Qq for Emacs-orgmode@gnu.org; Wed, 26 May 2021 19:43:13 -0400 Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]:43639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lm3B7-00020L-DK for Emacs-orgmode@gnu.org; Wed, 26 May 2021 19:43:13 -0400 Received: by mail-vs1-xe2a.google.com with SMTP id n1so1602365vsr.10 for ; Wed, 26 May 2021 16:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=r0mYhdN5Wrw8gPKN1lIw4fw39z1H9jD+jBtyvTQ0VB4=; b=EiFMgTSLOJCw56uO9hPP+glAJ3PmxAIICXgaW6OAKVEgGuGnkZB1HcAJNgpXmY/NGA aN4gZG9w5v+R7n7HCMmcu1wtl+CrzSOPU2rglEFj+IZKpoTuLRT5kms4Jp4Ig7r2CBEf Q6URWM+Y9UJaixRfeJgkUhI9EOHGANgDgldmNDxRC3q3QHB8gfohmMp/fripnEq5Gk3X +nUd4RRc/+zOPMsKlvvkIp0E5BCky4r8MAJSqLBi5pthsaBBTu9DHPoyGtMytUrUgeXQ XJ4mfXoGpbDLrLYq9XKDADlO9b+wYmYRaDKVoDo8zdMIe+4YfJQEQV9Z/LIMHd3W6eH+ DONg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=r0mYhdN5Wrw8gPKN1lIw4fw39z1H9jD+jBtyvTQ0VB4=; b=HZ8/y392O/Wz00vQBk3zueFgkCUHXLO9BoFDKNwz+AeiN8QM3T/dMbAkNCLRGtVziN 3UhpQPzzbm72ddX88OqsV12r+5Risme2mHW77Fdj8/lZfPMj/MJsHopUs0k7bDgf3sgY filrv59zOQ+TCkzQsPQ55Yt3ywOKQIf6bHCpE7ILiZRK4UIhFdsmT1+XQdbV+Be6I7yQ JjsUSKtIVxUDh/EHKctMAxBftYUPfmaNTFa7Ci26mejXB7yTLU0kpmuT74pBq9EPoSYD NbRPSBorY83YFyLPPxBL0YH3wxAWI0wADkjk8d7Z62TBuVRqwb3epZTqiIe/t/q1ow9/ 0LtQ== X-Gm-Message-State: AOAM531SC0S/O9L2JukZTByghlsltwyFCC6o7uCGNWQ4hE11XthLW/HQ I5fyTwvdppFLPPI9S9Al9rzeRe1F2qqEWlcs3svJQ6baJLjTJw== X-Google-Smtp-Source: ABdhPJy6zYItMQE6H4yDXXJyT4HXoAUNHgYLTG+WNAnEpti+9ws9q64xly5HPWeg2ztiIzi1OBwIkTw5XvfMeN9vmH4= X-Received: by 2002:a05:6102:10d1:: with SMTP id t17mr604813vsr.0.1622072587428; Wed, 26 May 2021 16:43:07 -0700 (PDT) MIME-Version: 1.0 From: Radon Rosborough Date: Wed, 26 May 2021 16:42:30 -0700 Message-ID: Subject: [BUG] org-compile-prefix-format regexp change breaks eval forms [9.4.6 (9.4.6-gf72a65)] To: Emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=radon.neon@gmail.com; helo=mail-vs1-xe2a.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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=1622072649; 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=r0mYhdN5Wrw8gPKN1lIw4fw39z1H9jD+jBtyvTQ0VB4=; b=fzAlDlMXr1Qt1jS7b02wKiKwumX25cGordyWR9/Rhwxe4hM+vi7SjF6GKyD5/9jeKmJ1X2 +KvdRCMqwxRj2Y4xtVDESSapVFGG/xVM0Yhb9tUNqMS+fjhdbVR2YjEkzK90/nVypXYx7i +7VCEc+lTymt69Yr3buz8b9WZteuXreGXM224W7rJ86LIviJJJk63xnTxXvM9WASD16lSC QpsqP9oQsJxFt60sjPs7e+Fjwqv7kNBLpw1J0BJe+44HEZezRIzO4RvZq8qqIgMu9N0i/L VX86CSQO34X4FeMNYQ+ZSUe/isw5l3zsL+A0raYC597LMdzmbCAXWkcRs3w7Rw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622072649; a=rsa-sha256; cv=none; b=pIOF8R2c74nEEKbzde5XK6LDsxVuq4pHg1LRjsR33c8HDAGWStAD+Vf4mTx1RTS0f3FG7r l1ZxhsPZccvhPAzXr818tpsFpPW5i25vIXt39OvL+1o8xw8JJA0Mcnc/vnBwnAOIKtV1a9 p2SOiYOO49OxqzyHcuye4uQocOeyrwiA+uGWelJoNxu0SDhWKXX/JhAVk+mh99STJKKBDR K8vjbTFMuEDOsVYJAt3vsMDBmcH2Dy2iKgbsVLPRXZN+RbCQNJeBWBxUmFaCINOaxSJBnT n5ttiJRVEJYQyrvwWH8twhdjXvxgXLrpffFIg4chOxK0iOPqu5aF1oaWJDiLrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=EiFMgTSL; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=EiFMgTSL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 1360016DBC X-Spam-Score: -1.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4QrjjysZ1aZ1 Hello, In commit 0260d2fcf603f30210e2b95d37727edd832c12e9 of 2021-04-26, the regexp used in `org-agenda-prefix-format' was updated to use a non-greedy regexp, in order to allow multiple %(expression) instances in `org-agenda-prefix-format'. Unfortunately, this change breaks the ability to use nested forms in %(expression) instances. For example, I use the following setting for `org-agenda-prefix-format': (setf (alist-get 'agenda org-agenda-prefix-format) " %(format-time-string \"%a\" (org-get-deadline-time (point))) ") When running `org-agenda', I now receive the error `org-compile-prefix-format: End of file during parsing'. This is because of the updated regexp match, which stops at the first closing parenthesis: ELISP> myfmt " %(format-time-string \"%a\" (org-get-deadline-time (point))) " ELISP> (and (string-match "%\\(\\?\\)?\\([-+]?[0-9.]*\\)\\([ .;,:!?=|/<>]?\\)\\([cltseib]\\|(.+?)\\)" myfmt) (match-string 4 myfmt)) "(format-time-string \"%a\" (org-get-deadline-time (point)" With the previous regexp, it works fine: ELISP> (and (string-match "%\\(\\?\\)?\\([-+]?[0-9.]*\\)\\([ .;,:!?=|/<>]?\\)\\([cltseib]\\|(.+)\\)" myfmt) (match-string 4 myfmt)) "(format-time-string \"%a\" (org-get-deadline-time (point)))" Thanks, Radon Rosborough