From mboxrd@z Thu Jan 1 00:00:00 1970 From: Calvin Beck Subject: Bug: Capture problems with newlines [9.1.14 (9.1.14-9-g131531-elpa @ /home/calvin/.emacs.d/elpa/org-20181105/)] Date: Mon, 05 Nov 2018 16:07:31 -0500 Message-ID: <871s7zmdws.fsf@seas.upenn.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJm7G-0006Er-Jp for emacs-orgmode@gnu.org; Mon, 05 Nov 2018 16:08:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJm7F-000119-OC for emacs-orgmode@gnu.org; Mon, 05 Nov 2018 16:08:58 -0500 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]:38363) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJm7F-0000yE-Hh for emacs-orgmode@gnu.org; Mon, 05 Nov 2018 16:08:57 -0500 Received: by mail-qt1-x832.google.com with SMTP id p17so276938qtl.5 for ; Mon, 05 Nov 2018 13:08:56 -0800 (PST) Received: from lappy ([2607:f470:6:4001:5d8e:1b1a:c9ce:4e9]) by smtp.gmail.com with ESMTPSA id n30-v6sm26252882qte.37.2018.11.05.13.08.54 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Nov 2018 13:08:55 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ I have this problem where I have a capture template like this: > ("t" "Todo" entry (file+headline "~/org/todo.org" "Tasks") > "* TODO %?\n SCHEDULED: %t\n %a\n") And then if I have another heading under Tasks... > * Tasks > * HEADING2 Then when capturing a todo entry, if I delete the last line I get something like... > * Tasks > ** TODO > SCHEDULED: <2018-11-05 Mon> > link* HEADING2 And similarly, if I edit the last line in the capture template I get... > * Tasks > ** TODO > SCHEDULED: <2018-11-05 Mon> > link > the stuff that I added at the end of my capture template* HEADING2 This is counter intuitive, as you expect the capture to be isolated from the other headings. Additionally, it's not obvious that you are messing up other headings when you are using org-capture, so you can end up losing tasks and headings, which seems like a very bad behaviour! Furthermore, I feel like this conflicts with some editing habits. If I want to edit the last part of a buffer I hit `M->` and start typing. I think this is a pretty common idiom, but this conflicts badly with org-capture. Thanks! I hope there is some kind of fix possible. Emacs : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu) of 2018-09-29 Package: Org mode version 9.1.14 (9.1.14-9-g131531-elpa @ /home/calvin/.emacs.d/elpa/org-20181105/)