From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id MMIpOQ21vmWCvwAAqHPOHw:P1 (envelope-from ) for ; Sat, 03 Feb 2024 22:50:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MMIpOQ21vmWCvwAAqHPOHw (envelope-from ) for ; Sat, 03 Feb 2024 22:50:06 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nlXguXAT; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706997005; 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=cZUZn5V47UEbUrC3TYnKhwvQRhpthKpWEB8FnTuSNDg=; b=h8kZP8KZ7zwmO3FCR6Cq3ha29Sng4YMM6Vg61Qh8Zw4XbBFRNcPCqrksGbK800GqcJ7qoA e1QOtXQiOCmMLJe9PJnZpYalICVfZsgUJtAII61QL2BCe9PJU7epYuELckwypU3Fw/iVJR e3pBqqtJhU7vZQXDVGCTfBugUdNZ5WnL6VVYDjjCqfX+leNGktmJs+8pQWxM29ecZXrlpW DzQjULr1Gw35lPfP/M7wqLHv+vLb4Y7GNBoqa2h1/eVhD5dz2EmYpHDT5Qj27C8fu3lNwD y8GiVjbSE2PMyB1zO5Mnj6Jyr+X4uJDvjKBt4PBVmPn/vh4wvdilEPRUPBtCUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nlXguXAT; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706997005; a=rsa-sha256; cv=none; b=TlCjgW8JVEtaKtljGiEbESghOt/F9TTHQ8SX9dKpOAWLhHMPoldoStkGMq/ns41wRA/BK1 Pz12MTPn7kj/2NucYPfD/I34UClXFLSRpOu/8iEqn4rgo1y554zfgWlpxvypDr+jAbjfS3 wbIZSLXeTrSTBUOAP8ZvE+eXjCS3AlkDZchtvmksvpRMjNFU8j11DecQXfVGCf3USAymKX ohgMcu5+UNabXSMq+ihuOZQduNZL+xzriAGm+oIjijzgKQTQSCc12ogUIMCumAVPdU8xl3 AkCU1fq/B6A0wsAjvx4BFYATPzzygWsiN7OcjLcxK321gpnHwG5OvnJjEZtsxg== 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 6E93C6C445 for ; Sat, 3 Feb 2024 22:50:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWNt9-0006fh-2L; Sat, 03 Feb 2024 16:49:27 -0500 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 1rWNt7-0006fR-5D for emacs-orgmode@gnu.org; Sat, 03 Feb 2024 16:49:25 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWNt4-0003Aq-RI for emacs-orgmode@gnu.org; Sat, 03 Feb 2024 16:49:24 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A5A4F240103 for ; Sat, 3 Feb 2024 22:49:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706996960; bh=DmnFXoj75hnywoxOOEKPaXdrP2R7vuHd/V+vzE8FIsc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=nlXguXATdd6ATdNtNaZcwB4fgzt3A6tPfWAU6Oih6GoQ5SC7OqsiVuOrI8g88zH3w LWJHhrt+HcChJLedcNGMUIkfUBFFKv5nbYnLO/1BbNdfSoRaj82jXgvBOeN/xMnujN jjU9rWnteysFvFod/jea2RljbweAJ2uV8l0m6vu9gRaGwEqKrB0OaLrqQrBrv3S7K9 0YIFjmOzYMWDaEXF04Uw2NLziRbCcHJUllJJOQmc4OcvRIBP3DWwAjAn7jsqD4ykim ewmHjmxatNHr5R66Nx8sIiQ1yQGua5cCC2rusRSew8HBqLwT6CWS5UauuBd2oJuGqb utTxwUV2sKK1g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TS5rb4sm8z9rxL; Sat, 3 Feb 2024 22:49:19 +0100 (CET) From: Ihor Radchenko To: Uwe Brauer Cc: emacs-orgmode@gnu.org Subject: Re: problems with templates and ID in properties In-Reply-To: <87fry9gwuz.fsf@mat.ucm.es> References: <87wmrn6rsk.fsf@mat.ucm.es> <87plxfx9hr.fsf@localhost> <87o7cz6jzv.fsf@mat.ucm.es> <87a5oiu7x0.fsf@localhost> <87fry9gwuz.fsf@mat.ucm.es> Date: Sat, 03 Feb 2024 21:52:45 +0000 Message-ID: <87r0htxljm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01, 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 X-Migadu-Spam-Score: -9.22 X-Migadu-Queue-Id: 6E93C6C445 X-Spam-Score: -9.22 X-Migadu-Scanner: mx11.migadu.com X-TUID: X+VY/nueDqrs Uwe Brauer writes: >> It might be changed. Currently, we mimic the behavior of >> org-yank-subtree, so that we always insert captured entry under the >> correct level regardless of the capture target. For example, when you >> use OLP, the level will be adjusted. > >> May you please explain more why you need to use level 2 heading specifically? > > Sure. I use this template for extracting from emails sent by my students > their names and email addresses to have entries like this > --8<---------------cut here---------------start------------->8--- > * Grupos :noexport: > ... > ** !!TODO!! G1 <2023-01-24 12:51> :Annu24: Paul New > ... > #+TBLNAME: sheets > #+BEGIN: columnview :maxlevel 2... > ... > That however only works if the entries have level ** > > It my workflow now clearer? Yup. I recommend changing your capture template to (file+olp "~/grupos2024.org" "Grupos") >>> What command/variable could org-mode force to have always an UUID in the >>> ID property? > >> `org-id-method' I think. > > This variable sets the format, but as far as I can see, is not > reasonable for adding an ID. Do you mean that you want IDs to be always added any time your create a heading? If so, the common method is to add `org-insert-heading-hook'. However, this hook will not work for templates. You may add :ID: %(org-id-new) to your template to generate an ID. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at