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 ms13.migadu.com with LMTPS id +DNkOLz6XmdV9wAAe85BDQ:P1 (envelope-from ) for ; Sun, 15 Dec 2024 15:50:21 +0000 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 +DNkOLz6XmdV9wAAe85BDQ (envelope-from ) for ; Sun, 15 Dec 2024 16:50:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ldbAAHi0; 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=1734277820; 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=dYOu4I0CYnP+9Vxj1EkwYiY/fl1dOJvZZZfBpuFtXRE=; b=kylWXEn45uPLq3yw9xz88PjTzQNmQGwijTkxFWRj26DaoIaLauFJpbuomdrhZyjnWhuM/m L1sX9WhPxTcAqpBRUbr7VtzU9f63SOHoHANmfAjaS9g91c7hkSPa5VXdU0a46bxY+GH+wq 1EjHN8m3Gqhu0LhIB8+aEixeCK0dnuBNPgX2UAJBz8Zr0qb/5rTb+0g9+dwKXktbhwk6F4 XyoLGwvvg+tBuTQNeBU3E+ypxzp2qxUogwVs2Dr/SL2eN+QKy11sffErgC1jhYcPyh7Djp x0ArsQJoSwMqfILtMkWvSaAhrNvkyQMY4pOnOUYyEmVYT8tXgfEjVyGITFMRIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ldbAAHi0; 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=1734277820; a=rsa-sha256; cv=none; b=ALpEyeoToDqAt57c2Pl03UYpZ2JOq4CxT/kLH+rgWnhgLmWFLlnRXyffbhC/H5wWT1vLqX Z6tmaMtvT7oj0nYiaP2q5E8U5mydBSfXCaekjuqPTmgnzfMR5cf72QxFtx7yN42a6rE+L7 9MfHaHU/DlSlOEjN5XBbrM32oaamEmr96glolRYifzXYj2vk7D09S9/A4OQiHPAGoWPDUk 6tO++yGhR0Qmwd9tz6aIUjyLk3G0R+QJbM+pM69asVNxqh1kleal6iQN7CKridpiBkXfaL 9Ff1od3QW6ndFDzAif4vySTb2+FMpU3WirayasKYfmsAFIj7J6GIUGlFi7vQXA== 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 768D9503F4 for ; Sun, 15 Dec 2024 16:50:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMqs4-0004aH-UV; Sun, 15 Dec 2024 10:49:28 -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 1tMqs3-0004ZC-FE for emacs-orgmode@gnu.org; Sun, 15 Dec 2024 10:49:27 -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 1tMqs0-0001W2-Bt for emacs-orgmode@gnu.org; Sun, 15 Dec 2024 10:49:26 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 54444240103 for ; Sun, 15 Dec 2024 16:49:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734277759; bh=LJFudeKssTUAQbNB7m6E4lTnYcRiuEeIY8io9JsTZRk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=ldbAAHi0aDwKCd4qGztv+1AJ9eRQYcATXn9KvzP2akkKOOl+MFwcIuzUqXDQEol9o +S7Yg2hPrR7zKLixgW13wT1dLlZK7yh1PbNBrh4o4wedmW2tH6obc3oFZXCRkx8D91 KKjIcXznZL2JvSH7GWwdMzS82vEDxn/ceODEp9nAi3rPaQ+9BVUTWZ8e4u1AGUWnP6 wX9DN76CnsWSzScodzug0BsdE+5dBLbEpoa2dOPG7uQ8efLpZAAIAM5DrVggRkdMMY MYPhGB24D0ByA1h+B2D3gsniEWwr6oFTu40MqVVCLRZyVl2fb+VaL+2aP3q9vDeUnP ybCEscZVh0LMw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YB6vL2pTgz9rxK; Sun, 15 Dec 2024 16:49:18 +0100 (CET) From: Ihor Radchenko To: Visuwesh Cc: org-mode-email Subject: Re: Bad interaction between org-capture entry type and file+function target? In-Reply-To: <875xogbtkh.fsf@gmail.com> References: <87h681b0l6.fsf@gmail.com> <875xogbtkh.fsf@gmail.com> Date: Sun, 15 Dec 2024 15:50:47 +0000 Message-ID: <87ed297xns.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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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.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-Queue-Id: 768D9503F4 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.17 X-Spam-Score: -7.17 X-TUID: PW66gWsOW8j5 Visuwesh writes: > I just thought of a situation where this behaviour would be desired: a > template could use FUNCTION-FINDING-LOCATION to ask the user to choose a > heading (from a list, using org-ql, etc.) to capture the entry to go > _under_ it. Here, the function would simply move the point to be on the > heading. > [ I am actually in the process of writing such a capture template. ] > > So perhaps an indicator to tell org-capture that I want to insert the > heading exactly _at_point_ is required instead? That's what :insert-here is for. By default, capture location is an entry/list/table line where we want to put capture template. Usually, it means _under_ entry, at the begin/end of a list, begin/end of a table, etc. Clearly, it is not documented well enough. We should improve the docs. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at