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 EKSUEXqU+2CCRwEAgWs5BA (envelope-from ) for ; Sat, 24 Jul 2021 06:18:02 +0200 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 oP4cDXqU+2DlLwAAbx9fmQ (envelope-from ) for ; Sat, 24 Jul 2021 04:18:02 +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 84719161AA for ; Sat, 24 Jul 2021 06:18:01 +0200 (CEST) Received: from localhost ([::1]:56814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m796t-0003L2-Ae for larch@yhetil.org; Sat, 24 Jul 2021 00:17:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m796N-0003Kt-VT for emacs-orgmode@gnu.org; Sat, 24 Jul 2021 00:17:28 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:46048) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m796M-00063j-DQ for emacs-orgmode@gnu.org; Sat, 24 Jul 2021 00:17:27 -0400 Received: by mail-pl1-x62b.google.com with SMTP id k1so5268614plt.12 for ; Fri, 23 Jul 2021 21:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=zx4kEF4VGGPsi+FxRN+kB8ZylHFPIl0zR4Y1786bMqQ=; b=lgDSS2FN6WtsPWHe0cPMT/hrTlQkRAFtxyXNobkJqIK2j8UUxSrMegDP6Y4ZhkWa1Q sDNMLpChGpLZ0B4J8smwNSkVzKicjzqRQd/J1CU2YlxsfXKJNfxZNrkJQQyXf2gDB1Q+ TwYdGeGu8KUCe9hTIL5SZIpl/KEO07ldyHr7qq6FLGpY5t7T8UcVgyNC2Kwc9Pigm5rN 3JWHtoQ1PR1JzkPWyzPsENKeF5oMdwK7Wl8CtDcEYMK/NZIjzxJ+WfZ8PuEXlkIZgiaJ SxKR+cuXCJXPztZgZEmYdgvX93QqN7v/3kcbZGZlahStEYXCtd+AJ/rs7oV+RzEi5t9f vZbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=zx4kEF4VGGPsi+FxRN+kB8ZylHFPIl0zR4Y1786bMqQ=; b=HpPX1z7FfxbwuL3kS/R/r3GCAOif25I9eSQatZ4XcVF2L7ZMUdQPRgPfrB3qlWlp+H dupSZTGz2FiNxSuVGO6oxjo4dhNlUlFQMgdXGXNllO3m+tpktbuScwyVai18xF875CUl Zxy3zQXGIC5+6e9nq/kFDtx3XbRUAGJ9bHzwC8tq/h8J+rEtC8elQkJaOXA6JFgMYCzB lG8whEV9y3D2lh8SvDCaY9d9bKupleENnipf3e8dkmmExFmGUyX4J/KLt+jgd9jCJxHK jliptu7SBNHdrxtWUMDkjS7UotFGF3EGbSGH9xXvxvfTsVcQ+Edxe5Ctbcqd+SVkkBam URQA== X-Gm-Message-State: AOAM531/eoKDJqzyB3bkQBssetx30Ht5FeeV8GxyDsZw7rwziwdlgWRV fFTMJSdPXvt6SYyVRjYz+pICXkxNMDc= X-Google-Smtp-Source: ABdhPJxE4UBxtBXuIDgNqEhv6hVpxoosuBXd6rN91oiY2y8GCoj7Ntl0gXdUEseDsXmuMYv8x5K8Dw== X-Received: by 2002:a17:90a:6a01:: with SMTP id t1mr7407560pjj.10.1627100244485; Fri, 23 Jul 2021 21:17:24 -0700 (PDT) Received: from tim-desktop (106-69-82-1.dyn.iinet.net.au. [106.69.82.1]) by smtp.gmail.com with ESMTPSA id k193sm57753pfd.128.2021.07.23.21.17.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jul 2021 21:17:24 -0700 (PDT) References: <87v950r11m.fsf@gmail.com> <87pmv82wwo.fsf@gmail.com> User-agent: mu4e 1.5.14; emacs 28.0.50 From: Tim Cross To: No Wayman Subject: Re: what would cause failure in template for org capture? Date: Sat, 24 Jul 2021 14:13:37 +1000 In-reply-to: <87pmv82wwo.fsf@gmail.com> Message-ID: <87k0lgqran.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x62b.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: , Cc: emacs-orgmode@gnu.org 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=1627100281; 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=zx4kEF4VGGPsi+FxRN+kB8ZylHFPIl0zR4Y1786bMqQ=; b=XhU/pFI7P9+ZqDiNkZ5vXW6aPBccc2+gQpGYlol62EjD87kxaNiwIFnWsHbyvBDYtshK5r PuWXBJCiimXxvkZJe1S8/ehreQ7VlZsQIhYzJIUrV4W8OIqP0JQ3PQhSB/KZqQvqH3aOCz D5vAJz5GdidDAWW786CVCoslbGy0ldbfBtXZ//KkmYwPZQuCU+zaJVGsenDzbfe7E5X1FX vHanf/6qadgXaO4WYXwzC7z0CtXyRYmU4GvtzCywtM1wrj8sIDjnCahMCy8VUn9iCEkumC fkvJb6F+r9OPeH6HC5PHLxl34kbWAOsuHVsojyx+ry2fGolatNjR81VXOlsW8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627100281; a=rsa-sha256; cv=none; b=ALgd+RpvM1TywpxpMnsGklJY+whZw/saAT3CuhO54D0P1l00GqXG1KRp8Yqkq7Vy4en4BP KDBw882eW5M0ITcobZlwBU+Z2KISWrjkRcg7b2KbQehjH4tO+FehAwyx3JEzvtwpk/t1be 503/fYaj1MXITbYswTV14VfcJLJ/DQQtUhoATo+UPjt+Wm8HUL/NvMPWLfjfn7yf6zxrv+ Non2nheV9xQ0IZmlmEmkU5r8ovSZU6YKPVul+Tx/QLx7fIA8CY2qh6pxnUNRWTRdVhLaS4 TMvDor6lJXeVU830Yzd3x/eSRichYgOlUF/QlEUPDW0fGpXCFGlLrIrAJn4YjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=lgDSS2FN; 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-Spam-Score: -2.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=lgDSS2FN; 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: 84719161AA X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: zuwwBvb/xiIv No Wayman writes: >> from an earlier thread, I recall you mentioned you were using native >> compilation? This is almost certainly the cause of your problem. > > This does smell like a byte-compilation problem. > Seems to be a failure with any interactive, single-character %-escaped patterns > in a template string (e.g. %^g, %^C, %^t). > I've narrowed it down to a call to pcase in `org-capture-fill-template'. > As Eric mentions, the problem disappears if the function is > re-evaluated/instrumented. > I have disabled native compilation and the problem persists with just a freshly > byte-compiled elc of org-capture. > Tested this with the following recipe: > > 1. eval the following: > (org-capture-fill-template "%^t") ;fails with `unrecognized template > placeholder: %^t` > 2. eval org-capture-fill-template's definition, and then re-eval the above. > Works properly. User is prompted for a time. > 3. byte compile org-capture-fill-template: (byte-compile > #'org-capture-fill-template) > 4. eval (org-capture-fill-template "%^t") ; error is back > > > Running Emacs 28.0.50 > Repository revision: 903ecd7bea7d8f99a7dc84150728219283d79bf0 > Repository branch: master Need to see if this can be reproduced in emacs 27.2. If it cannot, I would suspect a bug in Emacs 28 and possibly something which should be reported as an emacs bug (rather than an org bug).