From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id lkOUAGcO014KGQAA0tVLHw (envelope-from ) for ; Sun, 31 May 2020 01:54:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UH2MN2YO015aJwAAB5/wlQ (envelope-from ) for ; Sun, 31 May 2020 01:54:46 +0000 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 8EDB09402A2 for ; Sun, 31 May 2020 01:54:46 +0000 (UTC) Received: from localhost ([::1]:41524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfDBV-0004Sx-EC for larch@yhetil.org; Sat, 30 May 2020 21:54:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfDB7-0004Sk-Q2 for emacs-orgmode@gnu.org; Sat, 30 May 2020 21:54:21 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21195) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jfDB7-0002lR-4E for emacs-orgmode@gnu.org; Sat, 30 May 2020 21:54:21 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1590890057; cv=none; d=zohomail.com; s=zohoarc; b=OZzsxx0FND4669XyTBpIxZ6A2n5djjXueBhVYfOeg/fZ3yZaziixcH+WO6a5FVfghNQ6x/Y8DyWaJ+9ocbhOD3bKg4FsVH9GclHslCFZmkF1HlP2BtlqpW/tGLz93DPrjV6b4YkXJgaKewbnwSXzRWYzIAM8MZoROioYyll7E/E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590890057; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=cAP4ayU2vMu5k2g4IPNIbhF9stGjOttEPnkG1JwXbkk=; b=XHr0uK6DasNH5HzYeyjEwm5GpVFoodVVwLaQdRzjIdJz0hzq5QHpL+XgrV7BBPKHapFly3JflEHsqqyvY76gnOT8nDVkcyzMs0TrCn92UdgLyt1BbSmoYEsDaxMM25sLhuzf2D+tX7XJLnAiSc4frbJFxwqJLP5cvXD8vVL4qD4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=nivekuil.com; spf=pass smtp.mailfrom=kevin@nivekuil.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590890057; s=mail; d=nivekuil.com; i=kevin@nivekuil.com; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type; bh=cAP4ayU2vMu5k2g4IPNIbhF9stGjOttEPnkG1JwXbkk=; b=llu9NE8aFVI5KWgL6UN0rBdyb2rAlMeUAB4xaIVk6A9hqEZ2837gDKbU1M1Vpnbh 7F4rFGLq9Hw6gwNrS6AXHh/Zg3QnVu4WsOO2HoiWUI/n3mFv46KVPwSlOej1KGAtytz kCJBsb7RJ7UWn+69R8e7E84CymOGOBpfR76fQz0s= Received: from machina (71.212.158.154 [71.212.158.154]) by mx.zohomail.com with SMTPS id 1590890056880575.381502054173; Sat, 30 May 2020 18:54:16 -0700 (PDT) References: <87d06lpn3o.fsf@nivekuil.com> <877dwtpmum.fsf@nivekuil.com> <87zh9pmmqx.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.5.1; emacs 27.0.91 From: Kevin Liu To: Nicolas Goaziou Subject: Re: [PATCH] Fix org-narrow-to-subtree smaller than subtree In-reply-to: <87zh9pmmqx.fsf@nicolasgoaziou.fr> Date: Sat, 30 May 2020 18:54:16 -0700 Message-ID: <87h7vw27jr.fsf@nivekuil.com> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: none client-ip=136.143.188.51; envelope-from=kevin@nivekuil.com; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/30 21:52:31 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, T_DKIM_INVALID=0.01, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none (invalid DKIM record) header.d=nivekuil.com header.s=mail header.b=llu9NE8a; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -2.01 X-TUID: HK/BH8I54NgT > There is a good reason for this. If you insert text at (point-max), you > break the following headline. > > OTOH `org-mark-element' should pay attention to buffer boundaries. Good point. `org-mark-element` uses (org-element-property); I wonder if it makes sense to have the actual :end property of a subtree be the same as its narrowed boundary?