From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SD+VLsea4mLzfQAAbAwnHQ (envelope-from ) for ; Thu, 28 Jul 2022 16:18:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aHueLcea4mLAsQAAG6o9tA (envelope-from ) for ; Thu, 28 Jul 2022 16:18:47 +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 644A938E9C for ; Thu, 28 Jul 2022 16:18:47 +0200 (CEST) Received: from localhost ([::1]:52252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oH4Ld-0007I8-Im for larch@yhetil.org; Thu, 28 Jul 2022 10:18:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oH4K8-0007Gz-BD for emacs-orgmode@gnu.org; Thu, 28 Jul 2022 10:17:12 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:33440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oH4K3-00089O-IH for emacs-orgmode@gnu.org; Thu, 28 Jul 2022 10:17:11 -0400 Received: by mail-pf1-x429.google.com with SMTP id 17so2096809pfy.0 for ; Thu, 28 Jul 2022 07:17:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=h3NzvCTq1u+CVQioBoK5wHFIw5lCO9g8VNuO2xvt4Uc=; b=AdzN8ac5rcZkuX+DYQmGqhZtqIwe35C4XekMaCPT0ceC61daiLYkr9e5KcuJ8UJdWx 8Ly0TAmiEA7e/eqQ7sJysABHPt3AXbdkZYMKZHZyOoDTdsifxvOsgPRBzm4f1CNata1l Yz9RhcEDqNVA/Bhe5rqIQiL3AjQ4ksN1IRB59J129pSOyOUU4MFadxgtM1EnDuh7S2Lc guz/VQiwei1t7/LcL50N4KY43mXmiuPMkHz/sz3xKUT7oMGpb94VYoYAcSvlWpdoPoYV UbJh3NiEJp1QDh6L6nnrUIQ0gNi7LFU+h3D18MNr2PbEh95UxrmQV5PHAlN2lTb0HNv3 rbfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=h3NzvCTq1u+CVQioBoK5wHFIw5lCO9g8VNuO2xvt4Uc=; b=2NpZo2AX/jPa0q+J0JAZ6jZPdiXv/TXXF2N2zMshJWl/pSvR6Edk9O8xXbke0EPYOo dgMUcmt1dd/dIZXrZbb02MnnzW7vl0knd8hZ9nHg43pG1Xv0WNvKqClywFq2Ii6EQc4d 61oIb6O7NelwA/mq5WTAIraesL0BebZUtuTt/tnnbai0GNgJlZoJz4NtW1MO9+Jc1dIi QhpN0TADVybAS7EAzekLJ46lg4XU1G5UaPIYrhBUQCFdoSvYKsxdRlSXS1YPBheLIb5b A63Cx9SwCJxDXW4xQxL5iEsSKLm9JikLAnu2fIhB1x98MXsrYoUuwTntBXY7oG+0aOTc QdjQ== X-Gm-Message-State: AJIora+PVHyjo5loptmoQus/gFwtd31nsdMRjKOLH6My27rsmBv8Tx4q NK2+iXkMnNeBjb+7KlRvCmLtyVSKJLE= X-Google-Smtp-Source: AGRyM1uVq3BFpUuLRn1NAp8y8nij2CjmW8H9g5ThoOKQmLPZBs+tVoS/qv7NCZyUnRt4V/Bty+hq4Q== X-Received: by 2002:a05:6a00:148c:b0:52b:160f:728f with SMTP id v12-20020a056a00148c00b0052b160f728fmr27169059pfu.84.1659017825712; Thu, 28 Jul 2022 07:17:05 -0700 (PDT) Received: from localhost ([2409:8a70:217:4f80:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id d13-20020a656b8d000000b004088f213f68sm981973pgw.56.2022.07.28.07.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 07:17:04 -0700 (PDT) From: Ihor Radchenko To: Tor Kringeland Cc: "emacs-orgmode@gnu.org" Subject: Re: [BUG] inserting notes at end In-Reply-To: References: <87a68vb4tb.fsf@localhost> Date: Thu, 28 Jul 2022 22:17:58 +0800 Message-ID: <87ilnh9v8p.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=yantar92@gmail.com; helo=mail-pf1-x429.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659017927; 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=h3NzvCTq1u+CVQioBoK5wHFIw5lCO9g8VNuO2xvt4Uc=; b=WmQfuYX60bkUWanug1Kz/hW+WP1ohdyDKBhFLdrzB/67voDZHebK3pIwX+gBVhz83GRX+L 3c1gUiiu33MW1jMj1aUubWXaibPc3F8clwNQU/M4FWhmcutbAoYs9GdebCnH9ap9tDvabM kOsOJYn/S8s1hq7CJ1WkHATbH1xPuiN4LP5qVlRom7osFx6jDKMbvYHnLZyP/njLnNU2X7 cGhBvgP3zPrQMj7QriqhVojvBUaOpVyL54lhCUSb8x3yPCw+7B8DUQOEyBkpRMtaptBOaQ r+b/4/jMSBlNYzT6jwIVgRGx1mjT7rbEhzD8TG5NQ9rgKbt+jBWEZZWfw9rKPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659017927; a=rsa-sha256; cv=none; b=tosUf0nPs6690uz08ra21CaqNXCwWMik1kk/cQ5jfE20n5ogHBmgYNKGjGqvdY7oPdjRo3 ZWmklkm6eybay0buDhXBz4N5k2uPfX+OzKBL05ihcAQjigU4mHBkHHXyVxZeKrmT5+l13r 3U4H4wMHSTLTZwa+GpeOUbDBQuRZSPme+ZIBp8fjpkGkiKbsR1CltF0WXRhmzn1v0SrZc7 yRdJOx5/GeNSm46Yn5ASTvBDepVSNehpKmpGAVGaRQSnwR1ayByG8ziiliJfm1sMfVtdE2 dzQMlTJFGD0ukCrhK8/rHm8kKuoxIrN1X+OTtj+lycvQtkAMPBa9/fKdNTPF4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=AdzN8ac5; 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: -8.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=AdzN8ac5; 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-Queue-Id: 644A938E9C X-Spam-Score: -8.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: dGj61aBCyd89 Tor Kringeland writes: > Ihor Radchenko writes: > >> I get note after empty lines below the headline in both the cases. >> This behavior is intentional according to org-log-beginning. > > I see. Maybe this could be noted in the docstring for org-add-note? If > org-log-into-drawer is non-nil, then the behavior is different (the > drawer is always placed at the first newline below the heading). The reason why empty lines are skipped when inserting the first note in a headline is purely technical. It may or may not be changed in future. The behaviour is essentially undefined - there is not much point "freezing" the current behaviour in the docstring. IMHO, there is not much point changing the current behaviour to not skipping empty lines. I personally prefer to keep empty lines after the headline and before notes. So, opinions can differ. A proper implementation that would satisfy all users should do something similar to :empty-lines in org-capture-templates, but it will be a fair bit of work with no clear interest from Org users. Of course, if anyone thinks that such feature is going to be useful, please chime in and reply to this email. Best, Ihor