From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2LqqHOq+XGREaQEASxT56A (envelope-from ) for ; Thu, 11 May 2023 12:09:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iCRkHOq+XGQRXAEAauVa8A (envelope-from ) for ; Thu, 11 May 2023 12:09:46 +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 1E5561322 for ; Thu, 11 May 2023 12:09:46 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1px3EV-0007OV-Rl; Thu, 11 May 2023 06:09:12 -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 1px3EU-0007O9-H5 for emacs-orgmode@gnu.org; Thu, 11 May 2023 06:09:10 -0400 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 1px3ES-0001g5-SM for emacs-orgmode@gnu.org; Thu, 11 May 2023 06:09:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0F0AC2401C8 for ; Thu, 11 May 2023 12:09:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683799747; bh=1NcitIKe/pudKsMB4hDGa5xIYtlx20vn/X/UM2EF0ks=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=GBG9N7dwsvI2E1pYKvvNsLdW/R0E5w1WnTLJfulRR6VG+Q56yywABsrQgxkgPFVKo zldZiYhGDXPkiyWSQpd5luMyJKjrUAe8FyyLM63xJfKk6i8MQfVvpPMyvVSYIPcFXc kwhsrhYO1SuduwUGypIGqmo/hOdm0kWl1FvTbzknNkPPDhLHj4UNyAlIfPcfMv/eWY RmtpyTHHIJ9+S5tLz5ryxvNPBLc856Tg6VAjvXv784OBNGFf5s0zZF4ouWyNuBgMYx cl6NXIizVkBwIrg4dC9GOZVlwDwJl6jJZpIT/H4lB15x8hZOikcD7ox7Wsqoq70pr0 2uyp0mbKbJ2eQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QH70L3Xg2z6twF; Thu, 11 May 2023 12:09:06 +0200 (CEST) From: Ihor Radchenko To: Ruijie Yu Cc: Oliver Epper , emacs-orgmode@gnu.org Subject: Re: refiling heading onto itself In-Reply-To: References: Date: Thu, 11 May 2023 10:12:33 +0000 Message-ID: <87zg6b41ny.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_H2=-0.001, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683799786; a=rsa-sha256; cv=none; b=Jv9ZkpyAq1DQJWjGysxY51TnUYWYPSu/SxE9U6y1ObRdQh8FMc2TnFJfHmkyd9eT99CYeL 8/FSnE39EORTf9jx1SfyrQd/AZaC2138OrDkhFkPyo1Uva+qASoVNGyNK1NqfyAkmUteac B56rAksTmUHED7HER3pLhfajWCv9jH0hxUZZ+TQcUb6BrKVkG20LA5rbTjkc3a5aaFl8RF DbDodKCWowPJ0WFcVDyYypNcC8vtz9qHTJq5DgItouehj7mP9ZJGn4KPQb+GM+k9GS2jJa DJRJgYVmYmNqJkSV1sS+hRwTPFiMRi1MCyc694iA6GWxw/cPAjFIYEUqU0nxhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GBG9N7dw; dmarc=pass (policy=none) header.from=posteo.net; 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=1683799786; 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=7dNk7+utmFECcvOtqT62BB8ctga8tsIgTKFFkErTGFk=; b=NWvPHCYVzaeuLJP0zoiuqiz18x0G1UExz/kOPRVfykwpJE4CWewmxAoAqBxa6T0E6DmrQf e55ZL0McpbnV87pAZPxmHTNyG9rpMaAfLyqva8cUUTMv1ijzTCaLmwwDb0zUQx9+m7oT4y dyc4IYMDVJrt6bre0uP2mGa1VugmiWp3o3P3E0gha0+gBJ+h0e0FHLfIqBIAuLAFkp0Sgq i9dMjBq8W/gL8ITjO8/M5w3lmi30XbvgmrKrfeElrSVJ86kCEZYXM+2Zrnwj7AP0E1HCnH XVtNIAOISnKXIlDixo9aWDBWigU7z2VXZpFKLSykkn6R5BHfWwWgm7uS/Ve1Wg== X-Migadu-Spam-Score: -6.15 X-Spam-Score: -6.15 X-Migadu-Queue-Id: 1E5561322 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GBG9N7dw; dmarc=pass (policy=none) header.from=posteo.net; 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-TUID: jKylWmxtzAIx Ruijie Yu via "General discussions about Org-mode." writes: > ... (2) the completiong system shouldn't even provide > "two" as a completion candidate. Maybe. The current implementation of refile target selection is not aware about the context. One might try to temporarily extend `org-refile-target-verify-function', but we currently approach this differently and check (in `org-refile') the selected refile target only, throwing an error when attempting to refile into the child subtree. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at