Function: org-babel-result-end

org-babel-result-end is a byte-compiled function defined in ob-core.el.gz.

Signature

(org-babel-result-end)

Documentation

Return the point at the end of the current set of results.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-core.el.gz
(defun org-babel-result-end ()
  "Return the point at the end of the current set of results."
  (cond ((looking-at-p "^[ \t]*$") (point)) ;no result
	((looking-at-p (format "^[ \t]*%s[ \t]*$" org-link-bracket-re))
	 (line-beginning-position 2))
	(t
	 (let ((element (org-element-at-point)))
	   (if (memq (org-element-type element)
		     ;; Possible results types.
                     '(drawer example-block export-block fixed-width
                              special-block src-block item plain-list table
                              latex-environment))
	       (save-excursion
		 (goto-char (min (point-max) ;for narrowed buffers
				 (org-element-property :end element)))
		 (skip-chars-backward " \r\t\n")
		 (line-beginning-position 2))
	     (point))))))