From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MPnXFxGO+2DcQAEAgWs5BA (envelope-from ) for ; Sat, 24 Jul 2021 05:50:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id JkldExGO+2AgRQAAB5/wlQ (envelope-from ) for ; Sat, 24 Jul 2021 03:50:41 +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 CFC9A15E9D for ; Sat, 24 Jul 2021 05:50:40 +0200 (CEST) Received: from localhost ([::1]:49858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m78gQ-0005UF-W5 for larch@yhetil.org; Fri, 23 Jul 2021 23:50:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m78fs-0005Tv-Es for emacs-orgmode@gnu.org; Fri, 23 Jul 2021 23:50:04 -0400 Received: from mail-qv1-xf2b.google.com ([2607:f8b0:4864:20::f2b]:44818) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m78fq-0008Kb-Ua for emacs-orgmode@gnu.org; Fri, 23 Jul 2021 23:50:04 -0400 Received: by mail-qv1-xf2b.google.com with SMTP id p38so2316033qvp.11 for ; Fri, 23 Jul 2021 20:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:cc:subject:in-reply-to:date:message-id :mime-version; bh=UOT+Vy9x6IFRhe0QXF8DECgsOpMBBfF/DTA+Td+rWCA=; b=OV38pfPplejWmo/2qZCA9wpA3lqPG5EK/jDd85yhRFny8gugjpDIQAmghVm4qLraFu 6ys0KwpboQ7O9BRG9c8Tzn5l23xMkOZPPJDmW5FwIoN4xZRM9VHBS63UIjFnYVnfLNqw sOt3CWLGzYDGO9ZxfsVl9gQaXiGwd5oEcuifqSuH3WR/EZLzsjIaY1cyMYUppVCQy61s 2vMZm3j0cqRBgBVgpW8VV3Zgt2OHBQW0Z/cmEYhgb6Q1YoxomMGRO7If6RfiVH87ji73 QanICvkJkeu4U+df/2Y5XP4KfwLO6jAVUmlgknY2mcLUhnp8wXBkCUrCSskHxePIgG+T rnqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=UOT+Vy9x6IFRhe0QXF8DECgsOpMBBfF/DTA+Td+rWCA=; b=IveFDBHTGSbxTruNlvUtKUvexDRH6DewL91CypSTux1MmygkHf5uJS31trdo0IJeCb aO6fjn6RxrATFrTqAvSIysMEB8UjIO0Qz0HSvayHILJ/TqMLbbKdgVd8kkNuZutDWIiT 3kLx8ce6OsaFPnqAVsbn2YuXcxQDB476lOsZBMnSEvYi4F+evXSyxbXxLUwQpJw/rxFw 4/IYx7j+P0qV/voaxuV+ZcAnS1YkP5ASkHgrQB82m+LrJsGQ0faAchHKdxQEx/cmz3ZL nCiSH9EZoNncFtnE+CJIxvg3IchbOBuOJBMjyE+D3kPhEUkoe5Vu22zRNTdDi2ABIiXe 7XPg== X-Gm-Message-State: AOAM532pqtys7Yyv+I2hPxDNnyM2Xot7Cl0y0gU28b4EHT4SqLxa+WgL ix8fkHHxuBjHbfCRYTF5PDsz36qd/t4= X-Google-Smtp-Source: ABdhPJwOOarGMNveQLU1FgpGiGTDahK50iOjpL5tpn7PIFmHWovTT5DEmru+nF11KvzYUTliyMBzVw== X-Received: by 2002:a0c:f6c6:: with SMTP id d6mr7890310qvo.30.1627098601181; Fri, 23 Jul 2021 20:50:01 -0700 (PDT) Received: from arch ([2601:8b:c300:1024:1266:d0ff:1635:f964]) by smtp.gmail.com with ESMTPSA id z9sm6745875qtn.54.2021.07.23.20.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jul 2021 20:50:00 -0700 (PDT) User-agent: mu4e 1.5.14; emacs 28.0.50 From: No Wayman To: theophilusx@gmail.com Subject: Re: what would cause failure in template for org capture? In-Reply-To: <87v950r11m.fsf@gmail.com> Date: Fri, 23 Jul 2021 23:03:30 -0400 Message-ID: <87pmv82wwo.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::f2b; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qv1-xf2b.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=1627098641; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=UOT+Vy9x6IFRhe0QXF8DECgsOpMBBfF/DTA+Td+rWCA=; b=B5X8i8nnZ3qHQ0XOXLxkYTWqgxO9hH7CvrpMy9s+6PGK6LtLjiI6qT9aW6ePINmZ4BfXcx XyOO6gLkwuFXMvIaIh8I8kcPfmjzhtF8axl1kbB+EdBih1U3IdCuxHHVwHdMScsOGoU9AP Fe767/XnODm5VD8DsVNs9PP7w/Ccb0rcjhU9jAbSjR8oLdPaPbVNyeOWmCkTOiozhJthaM rue7GRmabnmg4Z9KKZMLOUCqhWMGroxCFXXZNKIbnkBrk6afObCXbXUhgQoHZlOdtnr9/Z 3sT5cB8hKlaHNzGExUMtv0WBGUhdiqKN3p4QX/rt5H2ljYf7CORsqUEDfwTwWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627098641; a=rsa-sha256; cv=none; b=jY/LJL9JoDji86UzwYEeTSlTKE8AGsQQHAzQdjb5znj2oYgfNzUFxWUgfECXBf5/y87Oq8 ddj+RJbNIaPy8snw1KPMakMVX2cEItcqO1vRcjVXn1dcU8BVaaj9dKFCspdEz2f0NKQWt8 pqyt9HD6oAeCfmloVCz9JoN23dueBGRIw4onZ7mZyRD6jOzQJoto7wyWCi7xGlnsT5wPsz Uy15eiHvrrR6TOzkaMcbtqE2HMJQF2Or4AliQQjjzzEOPouG86MA6tIftcZyeJKOWR3BP+ +LTH+X8t2AHF09ebiDfhmvDs/ccLSof2zgX+QY3QF/w1Jmy8MNAXbNZ3bciAUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=OV38pfPp; 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=OV38pfPp; 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: CFC9A15E9D X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: QwEafcTc69+R > 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