Function: tag-exact-match-p

tag-exact-match-p is a byte-compiled function defined in etags.el.gz.

Signature

(tag-exact-match-p TAG)

Documentation

Return non-nil if current tag line matches TAG exactly.

Point should be just after a string that matches TAG.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/etags.el.gz
;; this / to detect we are after a directory separator is ok for unix,
;; is there a variable that contains the regexp for directory separator
;; on whatever operating system ?
;; Looks like ms-win will lose here :).

;; t if point is at a tag line that matches TAG exactly.
;; point should be just after a string that matches TAG.
(defun tag-exact-match-p (tag)
  "Return non-nil if current tag line matches TAG exactly.
Point should be just after a string that matches TAG."
  ;; The match is really exact if there is an explicit tag name.
  (or (and (eq (char-after (point)) ?\001)
	   (eq (char-after (- (point) (length tag) 1)) ?\177))
      ;; We are not on the explicit tag name, but perhaps it follows.
      (looking-at (concat "[^\177\n]*\177" (regexp-quote tag) "\001"))))