From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qHb+HnuCbGTn5gAASxT56A (envelope-from ) for ; Tue, 23 May 2023 11:08:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YB7lHnuCbGSlwwAA9RJhRA (envelope-from ) for ; Tue, 23 May 2023 11:08:11 +0200 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 08876177CD for ; Tue, 23 May 2023 11:08:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1Nz5-0006gz-NO; Tue, 23 May 2023 05:07:11 -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 1q1Nz4-0006go-I5 for Emacs-orgmode@gnu.org; Tue, 23 May 2023 05:07:10 -0400 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1Nz0-0000he-Ie for Emacs-orgmode@gnu.org; Tue, 23 May 2023 05:07:10 -0400 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-96f53c06babso959162166b.3 for ; Tue, 23 May 2023 02:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684832823; x=1687424823; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=n9nAhJI1xFJeZryjJ5Rq2iNxyTe/fVcQDX6ZwJIVxMQ=; b=oxPaSGktVQc+tP26jAD+s/gf4h1CUn4RjNyFHKznTh5+tnlYG5tD8Is74oHvxcC3oM YTPjtp+svCWFbC8f2pFH4+CGaR908aDxLaW/nbKkH+mfFkDmnNDLs6QDYlY+PJ1QDRDa MEIYBtMh3fUgidar01qfkFR1NYmbU0Tf7/QjORw+QHeUTK2dxpCzbVzOxh0NReL6v4Bm 8u3e0hXb6Jc83zPgWjKrP13gkB5JSD0FIg/V7uyPhBmJR7a43hB9teDM5d5TqKyOkIbQ qPSxZ2RikIQb/mzhGjS8Pxbv+f9JBTD0LitjRmgxiN02ZsWx4nqct209TYI9IsoqbRdD n4aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684832823; x=1687424823; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n9nAhJI1xFJeZryjJ5Rq2iNxyTe/fVcQDX6ZwJIVxMQ=; b=X3ZzfPZ0XIv+BJrKkkjTHvZNssyCtl3JfFzrAcVyL4bmMRb6sHTRq2zDCw18mLlsh7 43FZ1Co7gXF/5k6Fd88FetutASNFJKBnBcHLu7RzlGEWQyvw7DGJ5IG43W9PuFWVE7xX n4lg9BPRb/hSGLxkDgnABpXN7qTmfjt5u+xLMF/L2/BaTCCFdsjODc4kBU3qsXWw8SPa 3c8QUjnj8rzySPJ+dNNdSvTflWe1hnsFOJaK2+1oXmR8W5UUcsL40/U4pU+TciF2eZOv Lzfc7HSlEo+Ci1xdI2Hai+/VH3Wyw0ZcNV5V3UBOTdmQRF9KseTuHhaKQ3r2u7eRubop sRvw== X-Gm-Message-State: AC+VfDyKo7Fkxewe/oGHhyxrt6xrEtUDkffnKnwGJKgdVAcsNvTa3DVd MAe4GPFy2nip5p5Z437kbJ5GfMmiHHJtxQ== X-Google-Smtp-Source: ACHHUZ5zclqTg+vx9x7v5K2EHU0EDGUqK5sQKVqXqSBNqZ3k1Y8eYKasChwptv57AEmW79oLehoavQ== X-Received: by 2002:a17:907:2d23:b0:965:b087:8002 with SMTP id gs35-20020a1709072d2300b00965b0878002mr14592070ejc.0.1684832822521; Tue, 23 May 2023 02:07:02 -0700 (PDT) Received: from ?IPV6:2001:7e8:f813:d601:8d09:f7a2:7eda:bc59? ([2001:7e8:f813:d601:8d09:f7a2:7eda:bc59]) by smtp.gmail.com with ESMTPSA id u10-20020a17090657ca00b00960005e09a3sm4181266ejr.61.2023.05.23.02.07.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 May 2023 02:07:02 -0700 (PDT) Message-ID: <48c357e4-7222-62f8-c214-67a3cde574a0@gmail.com> Date: Tue, 23 May 2023 11:07:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [BUG] org-capture, level-2 heading, org-set-tags-command [9.6.6 ( @ /Users/pu/.emacs.d/elpa/org-9.6.6/)] To: Ihor Radchenko Cc: Emacs-orgmode@gnu.org References: <003261a7-5860-6580-d1ad-5ffd6b36c028@gmail.com> <87o7mfoup8.fsf@localhost> <5c5f8319-0fbf-ad3b-4d41-fea7ab922a4f@gmail.com> <87lehipyan.fsf@localhost> Content-Language: en-US From: Patrick Useldinger In-Reply-To: <87lehipyan.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=uselpa@gmail.com; helo=mail-ej1-x62a.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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, NICE_REPLY_A=-0.091, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684832891; a=rsa-sha256; cv=none; b=P/bLnds+g7CRFNJ6pitlEV7C8qUMQCi9ZmU0nAhkuVT0qd2WXWY2BJobonyp2gCfDaDLkz FkzSGecRkO0SGCrqXQO4JcLpSjAf4vJ9yjWm3aXq1LuAwaUMcGu+lb2AKM08Lws/5rButE D5ttqDfRCqzVGELCgCHJIBSddYCMiCAoyYgipji8O/UOZXRU7jC+BTT3J4J+Biz0kWrrN7 cgAscSnrDGy3U0n3XIItgMZbODe/GR/hWr2tL3QY4NLeiSE0+7paiCLYI/2YeHeh9WQuiO /j2XO6IO9fRlby8NkdSLjG189gfqtPBEaO+Es1HE4cFdRtuz6R+K6talqwnn8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=oxPaSGkt; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684832891; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=n9nAhJI1xFJeZryjJ5Rq2iNxyTe/fVcQDX6ZwJIVxMQ=; b=i6iXymja5PvalQimJ9KP4vY6IaEtZpCHfq5slReH/ISlHik1pA7bf6dkHNmvP/dFw6jvxU A1Hwiz5f1p3OuvkraAltCvo9OIwYPTPPOZcBBHtcKkj7nSzr9hFWscJNBHS2xAnMhpKXw5 KhxSntM6ri9zFn4cULxyGpddbNALB9yfs0N9Bm+iBmBwRQ4Q46DJ9tAUW2TXoFiOq9e3ZM xLRaU+HUCDC5IMtIG1GZoRyAcgi5ItyAl55zkaEHtvujAuB2h+9wVbIte9nBpZ9C5Cw6MS lUP1vkY7IX8W6zvv/1mzxf/E9PSGQL8LoNj2iFfD1t7xnm/HzMCvGXJbPnn6cQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=oxPaSGkt; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -6.33 X-Spam-Score: -6.33 X-Migadu-Queue-Id: 08876177CD X-TUID: ny1UjDQU/9uh On 20/05/2023 22:01, Ihor Radchenko wrote: > You can try to bisect your config to identify which part is triggering > the problem. See > https://list.orgmode.org/orgmode/87ee2nlslt.fsf@localhost/ and > https://github.com/Malabarba/elisp-bug-hunter I have been able to create a minimal set of init.el and WORK.org which allows me to reproduce the problem: 1) start Emacs 2) F6 (shortcut for capture) 3) x 4) create a task in the capture buffer 5) press C-c C-q and enjoy the loop 6) C-g breaks the loop OTOH, using t at step 3 works well. As indicated, the only difference between the remplates x and t is that x uses 2 levels of heading, whereas t only uses one. HTH! --- WORK.org ;; -*- coding: utf-8 -*- #+TODO: WAIT(w) TODO(t) DELG(d) | DONE(x) #+STARTUP: show2levels hidestars nologrepeat #+ARCHIVE: %s_archive:: * CAPTURE ** Regulars *** TODO [#C] -- Empty CAP.org/CAPTURE SCHEDULED: <2023-05-26 Fri ++1w> ** Cap-X ** WAIT hello :test: ** DONE read "acceptable use" DEADLINE: <2023-05-19 Fri> --- init.el ;; custom variables (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(org-capture-templates '(("x" "Todo (test)" entry (file+olp "/Users/pu/Workcloud/org/WORK.org" "CAPTURE" "Cap-X") "* TODO %^{Task Description}" :prepend t) ("t" "Todo (work)" entry (file+olp "~/Workcloud/org/WORK.org" "CAPTURE") "* TODO %^{Task Description}" :prepend t) ("n" "Note (work)" entry (file+olp "~/Workcloud/org/WORK.org" "CAPTURE") "* %^{Note Description}" :prepend t)))) ;; system-specific (when (eq system-type 'darwin) (setq ns-alternate-modifier 'meta) (setq ns-right-alternate-modifier nil)) ;; package: org (add-hook 'org-load-hook (lambda () (define-key org-mode-map "\C-ca" 'org-agenda) (add-hook 'org-agenda-load-hook (lambda () (define-key org-agenda-mode-map "\M-p" 'org-agenda-backward-block) (define-key org-agenda-mode-map "\M-n" 'org-agenda-forward-block))) (global-set-key (kbd "") 'org-capture))) (defun pu/options () (interactive) (pu/option-org)) (add-hook 'window-setup-hook 'pu/options) (defun pu/option-org () (find-file "~/Workcloud/org/WORK.org"))