all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* BUG: Org subtree immediately following a #+RESULTS: line gets deleted [org master]
@ 2017-11-27 21:28 Kaushal Modi
  2017-11-27 22:35 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Kaushal Modi @ 2017-11-27 21:28 UTC (permalink / raw)
  To: emacs-org list

[-- Attachment #1: Type: text/plain, Size: 1246 bytes --]

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
=====

My Org version: Org mode version 9.1.3 (release_9.1.3-187-g5cd7eb @
/home/kmodi/usr_local/apps/6/emacs/emacs-26/share/emacs/site-lisp/org/)


[1]:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=1d8126385cf979cfaade0e6a82040884bd6af56b
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 1702 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-27 23:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-27 21:28 BUG: Org subtree immediately following a #+RESULTS: line gets deleted [org master] Kaushal Modi
2017-11-27 22:35 ` Nicolas Goaziou
2017-11-27 23:04   ` Kaushal Modi

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.