From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QDX1HIA8cF/IaQAA0tVLHw (envelope-from ) for ; Sun, 27 Sep 2020 07:17:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CPngGIA8cF8dXgAA1q6Kng (envelope-from ) for ; Sun, 27 Sep 2020 07:17:20 +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 05D129403C7 for ; Sun, 27 Sep 2020 07:17:19 +0000 (UTC) Received: from localhost ([::1]:34454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMQvt-0002jH-SV for larch@yhetil.org; Sun, 27 Sep 2020 03:17:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMQvJ-0002j8-4x for emacs-orgmode@gnu.org; Sun, 27 Sep 2020 03:16:41 -0400 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]:35739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMQvH-00080z-LJ for emacs-orgmode@gnu.org; Sun, 27 Sep 2020 03:16:40 -0400 Received: by mail-qt1-x843.google.com with SMTP id o21so5347296qtp.2 for ; Sun, 27 Sep 2020 00:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=oKvjVZtElPrZ52H/0MkQsvZ2aW6jmu0MAIDSDo19Z00=; b=SRX+gMum70cBoVsprC1EwZtLuk29KRHujafz6uJuci6yHR/P/8/s5OHQFAqHuExITq 5BTYRvwRXxG9WZKcbC5TRclSb+2qMJr+YQjw5PBk9seiKZb6SbjfP7KijH+qMPCtvQPm Z1sn+xEAi6FmYnpTnqjYPGWMHapNUFynjlYmmyvsdDBhqtnvWr1OjULJV5sBx4HP1bY9 kBbWCXO8E0tGFYbHszEvd3q6Hqf3fQZI19T4HmPj2cIGh759JQrvp38vT7VB/Oz+PiOn NCvfc8Y9RvBgH79V4CoVM9U4mnmLrkAHEq6VezzI9hs2fpLpPQC54gbLvVfhKr164m4U 8UZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=oKvjVZtElPrZ52H/0MkQsvZ2aW6jmu0MAIDSDo19Z00=; b=dBeMKveb0MZ45U9wC2ZLDgI1asca+S9xXeF2CMBLvWrTA/iO97tQHfnPfzA0eyVL3i 80HNqoUd4V+RX+C0HLBdIqqIHjsfGxXPnsq5pzQyTdfH7lpMdqkdZiJoostR6wDzzRmv zANRiMCN+B8di/hDyJWgg7FCkmvmGNSxWwAOLdd/g0UH9qlzkoN7lZ4zG48GZjVrtEsj WDDtXhZ5OnRPPAelXm3jIBRkRAR7//AEDKz4FDkJIRe9zvlUPIhBGZa+AwMl3g1FD+Bl gerEeYYFzvi/RJDnx6FEIAYbC/EP0LON6NHqtYCKvGrf+FKotVCc8/Ws1iuXaIzshWIr UHJA== X-Gm-Message-State: AOAM533t2JXFatDLsmRjVldH+6AIgiyfGDAQDV7k5l/aQfEJlo1VaIH+ Jb6KxJiMf1LE/YSgAEfAJ4k= X-Google-Smtp-Source: ABdhPJy6oB/csgiR1Z9/1pzpJnvZiogbVQXFdiHf/Aw1nX21wgKce3Oza+6NH49C4x6xyh82/7VS+Q== X-Received: by 2002:ac8:3597:: with SMTP id k23mr7282823qtb.238.1601190997804; Sun, 27 Sep 2020 00:16:37 -0700 (PDT) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id f64sm5673205qkj.124.2020.09.27.00.16.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Sep 2020 00:16:36 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id AEE1827C0054; Sun, 27 Sep 2020 03:16:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 27 Sep 2020 03:16:35 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdefgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffffkgggtsehttdertd dttddtnecuhfhrohhmpeftihgthhgrrhguucfnrgifrhgvnhgtvgcuoeifhihlvgihrdhr sehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpefhveeuveeiueetvefghfehfe fhudfgveevueeijeevjeehgeeffefgffetlefhfeenucffohhmrghinhepnhhothgvshdr ohhrghenucfkphepjeekrdegfedrgedtrdduieefnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheprhiflhdomhgvshhmthhprghuthhhphgvrhhs ohhnrghlihhthidqkeegkeekvdelkeegqdduledtvdejleeggedqrhiflheppehfrghsth hmrghilhdrtghomhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: from aquinas (hsi-kbw-078-043-040-163.hsi4.kabel-badenwuerttemberg.de [78.43.40.163]) by mail.messagingengine.com (Postfix) with ESMTPA id 551B83280059; Sun, 27 Sep 2020 03:16:35 -0400 (EDT) Received: from rwl by aquinas with local (Exim 4.92) (envelope-from ) id 1kMQvB-00007u-C7; Sun, 27 Sep 2020 09:16:33 +0200 From: Richard Lawrence To: Samuel Wales , emacs-orgmode@gnu.org Subject: Re: newline or no newline at end of capture: expected behavior In-Reply-To: References: Date: Sun, 27 Sep 2020 09:16:33 +0200 Message-ID: <878scvbsfi.fsf@aquinas> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::843; envelope-from=wyley.r@gmail.com; helo=mail-qt1-x843.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=SRX+gMum; dmarc=pass (policy=none) header.from=gmail.com; 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: 3.79 X-TUID: gswQCqRQJJ3J Hi Samuel, > On 9/23/20, Samuel Wales wrote: >> i have the same question for headline-only capture >> buffers. i.e. what is the expected result with and without trailing >> newline. Just to clarify: are you aware of the :empty-lines, :empty-lines-before and :empty-lines-after keys that you can set in org-capture-templates? Are your questions about the default values of these keys? I just tried a simple setup in emacs -Q with Org 9.4, namely: (setq org-capture-templates '(("s" "simple" entry (file+headline "~/org/notes.org" "Foo") "* %?" :empty-lines 1))) and Org seems to correctly respect the value of these keys when they are specified explicitly. That is, with :empty-lines 0, no newlines are added; with :empty-lines 1, a blank line appears on each side of the captured entry; with :empty-lines-after 1, a blank line appears after, but not before, the new entry; and so on. Can you use these keys to get the behavior you are looking for? Or is your question about something else? -- Best, Richard