Function: semantic-find-tag-by-overlay-in-region

semantic-find-tag-by-overlay-in-region is an autoloaded and byte-compiled function defined in find.el.gz.

Signature

(semantic-find-tag-by-overlay-in-region START END &optional BUFFER)

Documentation

Find all tags which exist in whole or in part between START and END.

Uses overlays to determine position. Optional BUFFER argument specifies the buffer to use.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/find.el.gz
;;;###autoload
(defun semantic-find-tag-by-overlay-in-region (start end &optional buffer)
  "Find all tags which exist in whole or in part between START and END.
Uses overlays to determine position.
Optional BUFFER argument specifies the buffer to use."
  (save-excursion
    (if buffer (set-buffer buffer))
    (let ((ol (overlays-in start end))
	  (ret nil))
      (while ol
	(let ((tmp (overlay-get (car ol) 'semantic)))
	  (when (and tmp
		     ;; See above about position
		     (semantic-tag-p tmp))
	    (setq ret (cons tmp ret))))
	(setq ol (cdr ol)))
      (sort ret (lambda (a b) (< (semantic-tag-start a)
				 (semantic-tag-start b)))))))