Function: semantic-format-tag-abbreviate-python-mode

semantic-format-tag-abbreviate-python-mode is a byte-compiled function defined in python.el.gz.

Signature

(semantic-format-tag-abbreviate-python-mode TAG &optional PARENT COLOR)

Documentation

Format an abbreviated tag for python.

Shortens code tags, but passes through for others. Override semantic-format-tag-abbreviate in python-mode buffers.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/wisent/python.el.gz
;;; Tag Formatting
;;
(define-mode-local-override semantic-format-tag-abbreviate python-mode (tag &optional parent color)
  "Format an abbreviated tag for python.
Shortens `code' tags, but passes through for others."
  (cond ((semantic-tag-of-class-p tag 'code)
	 ;; Just take the first line.
	 (let ((name (semantic-tag-name tag)))
	   (when (string-match "\n" name)
	     (setq name (substring name 0 (match-beginning 0))))
	   name))
	(t
	 (semantic-format-tag-abbreviate-default tag parent color))))