From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oKaJIPvesV6nPQAA0tVLHw (envelope-from ) for ; Tue, 05 May 2020 21:47:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GCVzBAffsV4jEQAA1q6Kng (envelope-from ) for ; Tue, 05 May 2020 21:47:51 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 E8E029400A6 for ; Tue, 5 May 2020 21:47:48 +0000 (UTC) Received: from localhost ([::1]:60066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jW5Po-00039s-7A for larch@yhetil.org; Tue, 05 May 2020 17:47:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jW5P3-00039Z-O7 for emacs-orgmode@gnu.org; Tue, 05 May 2020 17:47:01 -0400 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:37158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jW5P0-0003nl-6d for emacs-orgmode@gnu.org; Tue, 05 May 2020 17:47:01 -0400 Received: by mail-qt1-x829.google.com with SMTP id k12so3424891qtm.4 for ; Tue, 05 May 2020 14:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:message-id:date:mime-version; bh=K/vizXfSP3MbUeGAf3d+EEYmgTZUO5ahZKSA/01w0wk=; b=EQVgQlLWaNQAlssD27bFdLaPTgY3pqumld1zmFTAqe1DZlO/Rl1bzL8oqybodQ0496 /vqz1dTuhqZEVrbyb+HAb9m7+5l1+aNkyYnHdwjM2bH7Vu7ltwBG9EwMrWrKlZwVDVXr Co6Od2Eb5TNGpnPHIQDsWbWZ80ZwOhT/gqf/vH2++vAGPLGyl+DQeQbrAuXmtt/AWkpu 2Qyc1HSL7nLl1M21yBZ1vIMzSZXKERDR8/lKUXq4zoNGzv3WwlgL4sxOueQiXbMrCtqq E2dXtIBwWlgQ+JVsS0syJqODjBkhScSLjoSnhhf/tiuFh3q8M9/GVVJLswhoaFop/B+x rrAw== 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:subject:message-id:date :mime-version; bh=K/vizXfSP3MbUeGAf3d+EEYmgTZUO5ahZKSA/01w0wk=; b=jSFoS9rI9Jm2khuJ+0BK/DMS3PZutSzSlwubF54rOIMVQUPFfg0GJW0nBTt2seA7bA 9BZuniKjUYUD6Mg8GyUl2meombese5MWq2WYS0T3R9B1hlkZBDJ45j4wq1cQy/V+znBJ 5J7gtIb//FQPm3vn/S43zUEMH2sLsygs6FoA6PlXcbSU8tmMQov9/rTOHJfBKtHzbfFN iChayA/P+pr3G0/21hzTs5C0bjxZ91RTLb/gmLfJNdpWSPqzqPG6ZylYXL1SNBhEz54T GwfbkjC/umD+lOGmXp7wQCvpyOM5xf8EnbZ2xWUNIp/GKuOHkzaTQKKQqkLYLXozb/2y Tr9g== X-Gm-Message-State: AGi0PubiFTICg1dBTMyXsI9iC/cXXTkGXfIdIfghiiK8GbA0gSXdbk8e s3crb9Z7XLKgtffZiU49s0s= X-Google-Smtp-Source: APiQypL5+rl/XYRK4u+bgOdJyFY70gzcEsU0cZaj9PN2Fn8NlZH8Tqek1hvtmb64S1IPj+yuxS4fTg== X-Received: by 2002:ac8:6f0d:: with SMTP id g13mr4892602qtv.328.1588715216306; Tue, 05 May 2020 14:46:56 -0700 (PDT) Received: from laptop ([2601:8b:c300:1024:86c6:b3c8:8509:5fff]) by smtp.gmail.com with ESMTPSA id s8sm2983702qtb.0.2020.05.05.14.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 14:46:55 -0700 (PDT) User-agent: mu4e 1.3.9; emacs 28.0.50 From: No Wayman To: emacs-orgmode@gnu.org, N V Subject: [Bug]: org-capture-place-plain-text error when template :unnarrowed Message-ID: <87h7wuawc1.fsf@gmail.com> Date: Tue, 05 May 2020 17:46:54 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qt1-x829.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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-Scanner: scn0 X-Spam-Score: -1.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=EQVgQlLW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [-1.71 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49569014025731]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_BLOCKED(0.00)[gmail.com:dkim,2001:470:142::17:from]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.12), country: US(-0.00), ip: 2001:470:142::17(-0.50)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gnu.org,gmail.com]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[iarchivedmywholelife@gmail.com,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: uF8jXLZKz9Xp org-capture-place-plain-text throws an error for templates which meet the following criteria: - entry type is 'plain - the template has a non-nil :unnarrowed option - the template string is not empty and does not explicitly include "%?" Seems to be thrown in this section of org-capture-place-plain-text: #+begin_src emacs-lisp (when (or (search-backward "%?" beg t) (search-forward "%?" end t)) #+end_src A minimal failing case: #+begin_src emacs-lisp (let ((org-capture-templates '(("t" "test" plain (file "/tmp/bug.org") "FAIL" :unnarrowed t)))) (org-capture nil "t")) #+end_src And a minimal passing case: #+begin_src emacs-lisp (let ((org-capture-templates '(("t" "test" plain (file "/tmp/bug.org") "PASS%?" :unnarrowed t)))) (org-capture nil "t")) #+end_src