Function: org-table-row-get-visible-string

org-table-row-get-visible-string is a byte-compiled function defined in org-table.el.gz.

Signature

(org-table-row-get-visible-string &optional POS)

Documentation

Get the visible string of a table row.

This may be useful when columns have been shrunk.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-table.el.gz
;;; Org table header minor mode
(defun org-table-row-get-visible-string (&optional pos)
  "Get the visible string of a table row.
This may be useful when columns have been shrunk."
  (save-excursion
    (when pos (goto-char pos))
    (let* ((beg (line-beginning-position))
           (end (line-end-position))
           (str (buffer-substring beg end)))
      ;; FIXME: This does not handle intersecting overlays.
      (dolist (ov (overlays-in beg end))
        (when (overlay-get ov 'display)
          (put-text-property
           (- (overlay-start ov) beg) (- (overlay-end ov) beg)
           'display (overlay-get ov 'display)
           str)))
      str)))