aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/semantic/wisent/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cedet/semantic/wisent/python.el')
-rw-r--r--lisp/cedet/semantic/wisent/python.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/cedet/semantic/wisent/python.el b/lisp/cedet/semantic/wisent/python.el
index 8ca398ef271..719868f7635 100644
--- a/lisp/cedet/semantic/wisent/python.el
+++ b/lisp/cedet/semantic/wisent/python.el
@@ -485,6 +485,20 @@ Return a list as per `semantic-ctxt-current-symbol'.
485Return nil if there is nothing relevant." 485Return nil if there is nothing relevant."
486 nil) 486 nil)
487 487
488;;; Tag Formatting
489;;
490(define-mode-local-override semantic-format-tag-abbreviate python-mode (tag &optional parent color)
491 "Format an abbreviated tag for python.
492Shortens 'code' tags, but passes through for others."
493 (cond ((semantic-tag-of-class-p tag 'code)
494 ;; Just take the first line.
495 (let ((name (semantic-tag-name tag)))
496 (when (string-match "\n" name)
497 (setq name (substring name 0 (match-beginning 0))))
498 name))
499 (t
500 (semantic-format-tag-abbreviate-default tag parent color))))
501
488;;; Enable Semantic in `python-mode'. 502;;; Enable Semantic in `python-mode'.
489;; 503;;
490 504