Function: table--untabify-line

table--untabify-line is a byte-compiled function defined in table.el.gz.

Signature

(table--untabify-line &optional FROM)

Documentation

Untabify current line.

Unlike save-excursion this guarantees preserving the cursor location even when the point is on a tab character which is to be removed. Optional FROM narrows the subject operation from this point to the end of line.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/table.el.gz
(defun table--untabify-line (&optional from)
  "Untabify current line.
Unlike `save-excursion' this guarantees preserving the cursor location
even when the point is on a tab character which is to be removed.
Optional FROM narrows the subject operation from this point to the end
of line."
  (let ((current-coordinate (table--get-coordinate)))
    (table--untabify (or from (progn (beginning-of-line) (point)))
		     (progn (end-of-line) (point)))
    (table--goto-coordinate current-coordinate)))