Function: semantic-idle-breadcrumbs--format-tag

semantic-idle-breadcrumbs--format-tag is a byte-compiled function defined in idle.el.gz.

Signature

(semantic-idle-breadcrumbs--format-tag TAG &optional FORMAT-FUNCTION)

Documentation

Format TAG using the configured function or FORMAT-FUNCTION.

This function also adds text properties for help-echo, mouse highlighting and a keymap.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/idle.el.gz
(defun semantic-idle-breadcrumbs--format-tag (tag &optional format-function)
  "Format TAG using the configured function or FORMAT-FUNCTION.
This function also adds text properties for help-echo, mouse
highlighting and a keymap."
  (let ((formatted (funcall
		    (or format-function
			semantic-idle-breadcrumbs-format-tag-function)
		    tag nil t)))
    (add-text-properties
     0 (length formatted)
     (list
      'tag
      tag
      'help-echo
      (format
       "Tag %s
Type: %s
mouse-1: jump to tag
mouse-3: popup context menu"
       (semantic-tag-name tag)
       (semantic-tag-class tag))
      'mouse-face
      'highlight
      'keymap
      semantic-idle-breadcrumbs-popup-map)
     formatted)
    formatted))