From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: BUG: Org subtree immediately following a #+RESULTS: line gets deleted [org master] Date: Mon, 27 Nov 2017 23:35:33 +0100 Message-ID: <877eubs62y.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJS01-0000fK-1q for emacs-orgmode@gnu.org; Mon, 27 Nov 2017 17:35:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJS00-0002bA-9A for emacs-orgmode@gnu.org; Mon, 27 Nov 2017 17:35:37 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:46551) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJS00-0002ai-39 for emacs-orgmode@gnu.org; Mon, 27 Nov 2017 17:35:36 -0500 In-Reply-To: (Kaushal Modi's message of "Mon, 27 Nov 2017 21:28:19 +0000") 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: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi writes: > Hello, > > I believe this has to do with the recent change to #+RESULTS removal > without blank line [1] > > Here's a MWE: > > ===== > > #+TITLE: The disappearing act > > * Heading 1 > > #+BEGIN_SRC emacs-lisp > (message "Hello") > #+END_SRC > > > #+RESULTS: > * Heading 2 > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque et > quam metus. Etiam in iaculis mi, sit amet pretium magna. Donec ut dui > mi. Maecenas pharetra sapien nunc, ut mollis enim aliquam quis. Nam at > ultricies metus. Nulla tempor augue in vestibulum tristique. Phasellus > volutpat pharetra metus quis suscipit. Morbi maximus sem dolor, id > accumsan ipsum commodo non. > * Heading 3 > ===== > > With point on the code block, do C-c C-c, allow running of that elisp > snippet, and the * Heading 2 subtree will get wiped out! (git just saved me > from losing data from that Org file). > > After C-c C-c, you will get: > > ===== > > #+TITLE: The disappearing act > > * Heading 1 > > #+BEGIN_SRC emacs-lisp > (message "Hello") > #+END_SRC > > #+RESULTS: > : Hello > * Heading 3 > ===== Ouch! Fixed. Thank you. Regards, -- Nicolas Goaziou