Function: table--offset-coordinate

table--offset-coordinate is a byte-compiled function defined in table.el.gz.

Signature

(table--offset-coordinate COORDINATE OFFSET &optional NEGATIVE)

Documentation

Return the offset COORDINATE by OFFSET.

When optional NEGATIVE is non-nil offsetting direction is negative.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/table.el.gz
(defun table--offset-coordinate (coordinate offset &optional negative)
  "Return the offset COORDINATE by OFFSET.
When optional NEGATIVE is non-nil offsetting direction is negative."
  (cons (if negative (- (car coordinate) (car offset))
	  (+ (car coordinate) (car offset)))
	(if negative (- (cdr coordinate) (cdr offset))
	  (+ (cdr coordinate) (cdr offset)))))