On Tue, Nov 28, 2017 at 4:58 PM Kaushal Modi wrote: > I think that this behavior is on a safe side and good, but there needs to > be a way for Org to figure out if the stuff following #+RESULTS is safe to > delete.. > > Can be probably have #+begin_results and #+end_results instead of > #+begin_example and #+end_example? And then process the > begin_results/end_results elements the same as example elements? > > That way, we can safely delete/overwrite the begin_results/end_results > blocks. > > In the above example, Org cannot know if that example block is babel > generated or user-typed. > > WDYT? > Or may be just do this: diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 00f0fe33ecf..f04392a96d2 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2465,7 +2465,7 @@ in the buffer." (if (memq (org-element-type element) ;; Possible results types. '(drawer export-block fixed-width item plain-list src-block - table)) + example-block table)) (save-excursion (goto-char (min (point-max) ;for narrowed buffers (org-element-property :end element))) -- Kaushal Modi