Function: bubbles--mark-direct-neighbors
bubbles--mark-direct-neighbors is a byte-compiled function defined in
bubbles.el.gz.
Signature
(bubbles--mark-direct-neighbors ROW COL CHAR)
Documentation
Mark direct neighbors of bubble at ROW COL with same CHAR.
Source Code
;; Defined in /usr/src/emacs/lisp/play/bubbles.el.gz
(defun bubbles--mark-direct-neighbors (row col char)
"Mark direct neighbors of bubble at ROW COL with same CHAR."
(save-excursion
(let ((count 0))
(when (and (bubbles--goto row col)
(eq char (char-after (point)))
(not (get-text-property (point) 'active)))
(add-text-properties (point) (1+ (point))
'(active t face 'bubbles--highlight-face))
(setq count (+ 1
(bubbles--mark-direct-neighbors row (1+ col) char)
(bubbles--mark-direct-neighbors row (1- col) char)
(bubbles--mark-direct-neighbors (1+ row) col char)
(bubbles--mark-direct-neighbors (1- row) col char))))
count)))