Function: org-unescape-code-in-region

org-unescape-code-in-region is an interactive and byte-compiled function defined in org-src.el.gz.

Signature

(org-unescape-code-in-region BEG END)

Documentation

Un-escape lines between BEG and END.

Un-escaping happens by removing the first comma on lines starting with ",*", ",#+", ",,*" and ",,#+".

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defun org-unescape-code-in-region (beg end)
  "Un-escape lines between BEG and END.
Un-escaping happens by removing the first comma on lines starting
with \",*\", \",#+\", \",,*\" and \",,#+\"."
  (interactive "r")
  (save-excursion
    (goto-char end)
    (while (re-search-backward "^[ \t]*,*\\(,\\)\\(?:\\*\\|#\\+\\)" beg t)
      (save-excursion (replace-match "" nil nil nil 1)))))