Function: bubbles--goto

bubbles--goto is a byte-compiled function defined in bubbles.el.gz.

Signature

(bubbles--goto ROW COL)

Documentation

Move point to bubble at coordinates ROW and COL.

Source Code

;; Defined in /usr/src/emacs/lisp/play/bubbles.el.gz
(defun bubbles--goto (row col)
  "Move point to bubble at coordinates ROW and COL."
  (if (or (< row 0)
          (< col 0)
          (>= row (bubbles--grid-height))
          (>= col (bubbles--grid-width)))
      ;; Error! return nil
      nil
    ;; go
    (goto-char (point-min))
    (forward-line (1+ row))
    (forward-char (1+ col))
    (point)))