From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gustavo Barros Subject: Re: Bug: canceled capture operation results in demoted following heading when template ends with newline [9.2.4 (9.2.4-11-g1c3eae-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190722/)] Date: Sat, 10 Aug 2019 16:34:06 -0300 Message-ID: <878ss06ci9.fsf@gmail.com> References: <87sgqqq7gw.fsf@gmail.com> <87blwx5m0e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44586) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwX82-0004id-GC for emacs-orgmode@gnu.org; Sat, 10 Aug 2019 15:34:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwX81-0008My-CL for emacs-orgmode@gnu.org; Sat, 10 Aug 2019 15:34:14 -0400 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]:34995) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hwX81-0008MI-8e for emacs-orgmode@gnu.org; Sat, 10 Aug 2019 15:34:13 -0400 Received: by mail-qt1-x841.google.com with SMTP id d23so99214165qto.2 for ; Sat, 10 Aug 2019 12:34:12 -0700 (PDT) In-reply-to: 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: Carsten Dominik Cc: org-mode list Hi Carsten, On Sat, Aug 10 2019, Carsten Dominik wrote: > Hi Gustavo, > > I am also on Emacs 26.2, and I don't know where to look if I cannot > reproduce the problem. > > It would be useful if someone else tries your minimal example and=20 > reports > back. > > Carsten > I=E2=80=99ve tried to put my hands on possible intervening factors I could = think=20 of. I=E2=80=99ve reduced the setup further to: #+begin_src emacs-lisp (add-to-list 'load-path=20 "/home/gustavo/.emacs.d/elpa/org-plus-contrib-20190805") (load-library "org") (global-set-key (kbd "C-c c") 'org-capture) (setq org-agenda-files '("~/org/agenda.org")) (setq org-capture-templates '(("t" "TODO entry" entry (file+headline "~/org/agenda.org" "Capture") "* TODO %?\n"))) #+end_src I=E2=80=99ve tried to rebuilt Emacs from source with default =3D./configure= =3D=20 options and run =3Dsrc/emacs -Q=3D. I=E2=80=99ve tried to create the agenda file from the =3Demacs -Q=3D sessio= n in case=20 any encoding options of mine could intervene. I=E2=80=99ve also tried my different Linux flavors (Mint 19.2 Cinnamon and = MX=20 Linux 18 Xfce). And in every case the behavior was the same. The only way I could make it not happen was to remove the preexisting=20 line between "* Capture" and "* Following heading" headings. As mentioned, if anyone can think of anything else I can try to narrow=20 this down further, I=E2=80=99m at your disposal. Best regards, Gustavo.