Function: table--probe-cell-right-bottom
table--probe-cell-right-bottom is a byte-compiled function defined in
table.el.gz.
Signature
(table--probe-cell-right-bottom)
Documentation
Probe right bottom corner pattern of a cell.
If it finds a valid corner returns a position otherwise returns nil. The position is the location after the last cell character. Focus only on the corner pattern. Further cell validity check is required.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/table.el.gz
(defun table--probe-cell-right-bottom ()
"Probe right bottom corner pattern of a cell.
If it finds a valid corner returns a position otherwise returns nil.
The position is the location after the last cell character.
Focus only on the corner pattern. Further cell validity check is required."
(save-excursion
(let ((vertical-str (regexp-quote (char-to-string table-cell-vertical-char)))
(intersection-str (regexp-quote (char-to-string table-cell-intersection-char)))
(v-border (format "[%c%c]" table-cell-vertical-char table-cell-intersection-char))
(h-border (format "[%s%c]" table-cell-horizontal-chars table-cell-intersection-char))
(limit (line-end-position)))
(catch 'end
(while t
(catch 'retry-horizontal
(if (not (search-forward-regexp v-border limit t))
(throw 'end nil))
(save-excursion
(forward-char -1)
(let ((column (current-column)))
(while t
(catch 'retry-vertical
(while (and (looking-at vertical-str)
(= column (current-column)))
(if (and (zerop (forward-line 1)) (zerop (current-column))) nil (throw 'end nil))
(move-to-column column))
(cond
((/= column (current-column))
(throw 'end nil))
((save-excursion (forward-char -1) (looking-at (concat h-border intersection-str)))
(save-excursion
(and (zerop (forward-line -1))
(move-to-column column)
(looking-at v-border)
(throw 'end (point))))
(forward-char 1)
(throw 'retry-horizontal nil))
((looking-at intersection-str)
(if (and (zerop (forward-line 1)) (zerop (current-column))) nil (throw 'end nil))
(move-to-column column)
(throw 'retry-vertical nil))
(t (throw 'retry-horizontal nil)))))))))))))