Function: tpu-check-match
tpu-check-match is a byte-compiled function defined in tpu-edt.el.gz.
Signature
(tpu-check-match)
Documentation
Return t if point is between tpu-match markers.
Otherwise sets the tpu-match markers to nil and returns nil.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/tpu-edt.el.gz
(defun tpu-check-match nil
"Return t if point is between tpu-match markers.
Otherwise sets the tpu-match markers to nil and returns nil."
;; make sure 1- marker is in this buffer
;; 2- point is at or after beginning marker
;; 3- point is before ending marker, or in the case of
;; zero length regions (like bol, or eol) that the
;; beginning, end, and point are equal.
(cond ((and
(equal (marker-buffer tpu-match-beginning-mark) (current-buffer))
(>= (point) (marker-position tpu-match-beginning-mark))
(or
(< (point) (marker-position tpu-match-end-mark))
(and (= (marker-position tpu-match-beginning-mark)
(marker-position tpu-match-end-mark))
(= (marker-position tpu-match-end-mark) (point))))) t)
(t
(tpu-unset-match) nil)))