From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YHEdAiZzUGZrhQEAe85BDQ:P1 (envelope-from ) for ; Fri, 24 May 2024 12:59:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YHEdAiZzUGZrhQEAe85BDQ (envelope-from ) for ; Fri, 24 May 2024 12:59:50 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Piz1gv4A; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716548390; 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=I4GYzZ7zrM7SnpRGEESuLhAfSdtUxOCYTydzTD7xTnk=; b=m78DRe72kdRX4TgNvadJZpCGQd+NDo3zvm9H6BHiocqzXI8dS8UDe8XJTfKDFSiuAMcs/K VchWq76vpbTyWn//OS8gTMppSDTUF+yTIsSBPkkWeb4OdSa4MIULCdDslZm7dyJYLzagnM bGY35c1WJvLP6yvM1jtCBZz26URLwsSrfvBt4jnK14PMOuL8XSeqQpGipN8BTFbWqZpGBu U+Jw6MQdLJOonhfb/QFkpwKoc7VfqqU6GL08B6Lgchm49C/Nl0zAixBrTqUuOV9y+Y709r yDRzgFpe2ibEYfdHGoyMyYVuhwPTwATRtPGgW4GKmKj/NxWVeAe2/ZgZfyUncw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Piz1gv4A; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716548390; a=rsa-sha256; cv=none; b=O7Oaabqun6S2vJj14cGvHloDgw/zXWxpiobqUiBWvHuLnk/KSvPQ196Uw5yoMsoX7t96Rf OJCIGkVaJMVt4ZNPeVSEexFASpkgCFlO+2vxitdPV/dzLsY1LgpeoO7kOnmWT9utg2SoQG dyQ3FJPlxZmydZ+madnK5KlKGmsIeX5MrjG3Ox2EYIjU+F1svsWGTjwnGLnWVtV/wrSIqq 1KbKG/PgLA66/M97RPeyXIso+F+EI1ZJfzlCIuUJ84KOUNRdM2MmyA+C0RLT+m9fcJTA4R gJRELZ41K/7VWm7rkrxAwekFTDLTc5upd4ECwE90POxP+RacfHqU+Q1lzd6bhQ== 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 A20FE564A5 for ; Fri, 24 May 2024 12:59:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sASdc-0008T1-Uo; Fri, 24 May 2024 06:59:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAFZN-0000e4-Kr for emacs-orgmode@gnu.org; Thu, 23 May 2024 17:01:50 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAFZA-0004eE-98 for emacs-orgmode@gnu.org; Thu, 23 May 2024 17:01:46 -0400 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2e72b8931caso56214681fa.0 for ; Thu, 23 May 2024 14:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716498090; x=1717102890; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=I4GYzZ7zrM7SnpRGEESuLhAfSdtUxOCYTydzTD7xTnk=; b=Piz1gv4ApXwmXICN/SD4I7uh+nKWLIeEMn3HTTNGhyiA24tMQYH3TDrg+hP6AKl2Xn u9ZnWzaEiKMdFO4ZtexadWKx28tC9c6gJ28XJFwu1/ju5bRjdk4nFLvPAVls3f5uW0CI i3uFRHIr5AJh0cyQC9UmYbJ/7A0daNLsKWcmX+V5IjTCB1TYNvzbEz1M92nGIOZD1SZ8 bqVunRjxiiaslo9eAqfePzV02lLSvT50aZY4Bga5dKe4ra3Zok9Lt/aFNPCgW7CGOAMI m4v/Jc1t8p96KlwqB1xYRx637Cqe/AlsGJ/TocCPfjBHvqxM7fw5go75poBVxOdAOngi MtDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716498090; x=1717102890; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I4GYzZ7zrM7SnpRGEESuLhAfSdtUxOCYTydzTD7xTnk=; b=IMtpnsJOZ4spEhukQ+NTFd1taaP3T0Pr2B0XBRJ3jV7omQ1QX2XK9zt5qijMlZE/m3 0Lt29obUZBAwbEq3xXF2wmm/ELFk8O58By5rtDtJdOljps5t3Xwugv7qo1OLVTfYe0m1 Vlw9A9EGvIEW0g735+30Ma0/swTc/+N+cyZb0pzdWiAKB3DhNolrV3j27eUTJtqFDXFV aMV0q6rl13ofSpvZ+etGuX7B1uYyjFNndaTjy1bRayD3j8Oo7BSdnXKxE53/iv8f6TPk zwaThKx8JRXXSHenZoF6Gv0lRYjkuh0f9xOqWmf06u9OpSY+OD4NVxunWm9zjaVLUlYF 0IXQ== X-Forwarded-Encrypted: i=1; AJvYcCXcaXtqnOz7mAzm0zdjPPVtuwyOMabY67zC4t/AlvmpDAmMV7eATl/JHykWsczmsnTjxXJXjRak/VcQZBTkZUeSrDz6rQ8= X-Gm-Message-State: AOJu0YywBy56ZJ+wWTiBWW8KqbEZrpqa4ObV4NsC2VhGiXio47BD8Eim mGggOs7mgEUDGW/IKhTiU8zyDUKAKwZaO2A/qwYXIyeOR3pjqYpECjr1PaHJnD7eWvEpRhzGTe3 1SdvnuKvXN+uj+uLjZwJ6D6aGP8s= X-Google-Smtp-Source: AGHT+IEFpCrSnG4kr/F9vxKzDq+r7BhicsvdL3xJ0RlUSzOHo//vF44QeYNu5hN8IXVplOiYfZo5VxPzGLIJq9APEX0= X-Received: by 2002:a2e:9793:0:b0:2e0:9646:8512 with SMTP id 38308e7fff4ca-2e95b0c091bmr1534061fa.31.1716498089728; Thu, 23 May 2024 14:01:29 -0700 (PDT) MIME-Version: 1.0 References: <87o793tmk8.fsf@localhost> <87ttiowa6e.fsf@localhost> In-Reply-To: <87ttiowa6e.fsf@localhost> From: =?UTF-8?Q?Cl=C3=A9ment_Payard?= Date: Thu, 23 May 2024 18:01:18 -0300 Message-ID: Subject: Re: Bug: org-capture does not work if called from minibuffer (Org mode version 9.6.10 (9.6.10-n/a-g902975) To: Ihor Radchenko Cc: Cletip Cletip , Org Mode List Content-Type: multipart/alternative; boundary="000000000000e566dc0619255a1c" Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=payard.clement63@gmail.com; helo=mail-lj1-x232.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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-Mailman-Approved-At: Fri, 24 May 2024 06:59:04 -0400 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.68 X-Spam-Score: -9.68 X-Migadu-Queue-Id: A20FE564A5 X-Migadu-Scanner: mx13.migadu.com X-TUID: mQWSLypCdZmd --000000000000e566dc0619255a1c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, of course: init.el configuration : --------- (add-to-list 'load-path =E2=80=9C/home/.../org-mode/lisp=E2=80=9D) (require 'org-capture) (setq org-capture-templates '((=E2=80=9Ct=E2=80=9D =E2=80=9CTodo=E2=80=9D entry (file+headline =E2=80=9C/home/user/Testdedossier/src/.emacs.d/test.org=E2=80=9D =E2=80=9CT= asks=E2=80=9D) =E2=80=9C* TODO %^{Name task}\n %i\n %a=E2=80=9D))) (global-set-key (kbd =E2=80=9CC-c c=E2=80=9D) 'org-capture) --------- Now, call org-capture, select "t". IN creating the "title" =3D "Name Task" = of the first capture, call up a second capture. Finish the second capture. Return to the first capture's title/=E2=80=9CName task=E2=80=9D. End the fi= rst capture's =E2=80=9CName task=E2=80=9D, and note the error: condition-case: Capture abort: Selecting deleted buffer Expected behaviour: correct completion of first capture. Le jeu. 23 mai 2024 =C3=A0 17:20, Ihor Radchenko a = =C3=A9crit : > Cl=C3=A9ment Payard writes: > > > Version: Org mode version 9.7-pre (9.7-pre-n/a-g1c5492) > > (I hope it's the last, I use elpaca). > > > > No, the behavior is not actually the same: for me (hoping my > configuration > > doesn't interfere), everything goes =E2=80=9Cas expected=E2=80=9D, exce= pt that the second > > capture cancels the first. > > > > In other words, I can insert, in the title of the first one (using > > org-roam-node-insert): > > > > [[id:idOfTheSecondCaptureAlreadyDid][aDescription, the second capture]] > > > > BUT, when I finish the first one, I get the error: > > Error running timer 'org-capture': (error =E2=80=9CCapture abort: Selec= ting > deleted > > buffer=E2=80=9D). > > > > So you can't stack captures? > > You can stack captures. > Also, org-capture does not start any timers. > May you provide steps to reproduce the problem you are seeing starting > from clean Emacs? > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --000000000000e566dc0619255a1c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, of course:

init.el configuration :
-------= --
(add-to-list 'load-path =E2=80=9C/home/.../org-mode/lisp=E2=80=9D= )

(require 'org-capture)

(setq org-capture-templates
= =C2=A0 =C2=A0 =C2=A0 '((=E2=80=9Ct=E2=80=9D =E2=80=9CTodo=E2=80=9D entr= y (file+headline =E2=80=9C/home/user/Testdedossier/src/.emacs.d/test.org=E2=80=9D =E2=80=9CTasks=E2=80=9D)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0=E2=80=9C* TODO %^{Name task}\n %i\n %a=E2=80=9D= )))

(global-set-key (kbd =E2=80=9CC-c c=E2=80=9D) 'org-capture)<= br>---------

Now, call org-capture, select "t". IN creatin= g the "title" =3D "Name Task" of the first capture, cal= l up a second capture. Finish the second capture.
Return to the first ca= pture's title/=E2=80=9CName task=E2=80=9D. End the first capture's = =E2=80=9CName task=E2=80=9D, and note the error:
condition-case: Capture= abort: Selecting deleted buffer

Expected behaviour: correct complet= ion of first capture.

Le=C2=A0jeu. 23 mai 2024 =C3=A0=C2=A017:20, Ihor R= adchenko <yantar92@posteo.net= > a =C3=A9crit=C2=A0:
Cl=C3=A9ment Payard <payard.clement63@gmail.com> writes:

> Version: Org mode version 9.7-pre (9.7-pre-n/a-g1c5492)
> (I hope it's the last, I use elpaca).
>
> No, the behavior is not actually the same: for me (hoping my configura= tion
> doesn't interfere), everything goes =E2=80=9Cas expected=E2=80=9D,= except that the second
> capture cancels the first.
>
> In other words, I can insert, in the title of the first one (using
> org-roam-node-insert):
>
> [[id:idOfTheSecondCaptureAlreadyDid][aDescription, the second capture]= ]
>
> BUT, when I finish the first one, I get the error:
> Error running timer 'org-capture': (error =E2=80=9CCapture abo= rt: Selecting deleted
> buffer=E2=80=9D).
>
> So you can't stack captures?

You can stack captures.
Also, org-capture does not start any timers.
May you provide steps to reproduce the problem you are seeing starting
from clean Emacs?

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--000000000000e566dc0619255a1c--