Function: org-table--rematch-and-replace

org-table--rematch-and-replace is a byte-compiled function defined in org-table.el.gz.

Signature

(org-table--rematch-and-replace N &optional DECR HLINE)

Documentation

Re-match the group N, and replace it with the shifted reference.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-table.el.gz
(defun org-table--rematch-and-replace (n &optional decr hline)
  "Re-match the group N, and replace it with the shifted reference."
  (or (match-end n) (user-error "Cannot shift reference in this direction"))
  (goto-char (match-beginning n))
  (and (looking-at (regexp-quote (match-string n)))
       (replace-match (org-table-shift-refpart (match-string 0) decr hline)
		      t t)))