Function: org-src--contents-for-write-back

org-src--contents-for-write-back is a byte-compiled function defined in org-src.el.gz.

Signature

(org-src--contents-for-write-back WRITE-BACK-BUF)

Documentation

Populate WRITE-BACK-BUF with contents in the appropriate format.

Assume point is in the corresponding edit buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defun org-src--contents-for-write-back (write-back-buf)
  "Populate WRITE-BACK-BUF with contents in the appropriate format.
Assume point is in the corresponding edit buffer."
  (org-src--contents-for-write-back-1
   write-back-buf
   ;; CONTENTS
   (org-with-wide-buffer (buffer-string))
   ;; INDENTATION
   (if org-src--preserve-indentation 0
     (+ (or org-src--block-indentation 0)
	(if (memq org-src--source-type '(example-block src-block))
	    org-src--content-indentation
	  0)))
   ;; PRESERVE-FL
   (eq org-src--source-type 'latex-fragment)
   ;; TAB-WIDTH
   org-src--tab-width
   ;; WRITE-BACK
   org-src--allow-write-back))