diff options
author | David Engster <dengste@eml.cc> | 2012-10-07 20:23:50 +0200 |
---|---|---|
committer | David Engster <dengste@eml.cc> | 2012-10-07 20:23:50 +0200 |
commit | 740877cd2346da5fa3e2085185cd51912eebf0a0 (patch) | |
tree | 47a0d2c8dbcfe9dea7bd50730e3418cda124c636 /lisp/cedet/semantic/wisent/python.el | |
parent | 31e4cc2a189ef7b0de5057a90580d80634bd3d06 (diff) | |
download | emacs-740877cd2346da5fa3e2085185cd51912eebf0a0.tar.gz |
* semantic/wisent/python.el (semantic-ctxt-current-function)
(semantic-ctxt-current-assignment): New overrides, simply returning
nil. The defaults do not work correctly and can send the parser in
an inifinite loop (bug#12458).
Diffstat (limited to 'lisp/cedet/semantic/wisent/python.el')
-rw-r--r-- | lisp/cedet/semantic/wisent/python.el | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lisp/cedet/semantic/wisent/python.el b/lisp/cedet/semantic/wisent/python.el index ea603f251bb..a0ea488f0fe 100644 --- a/lisp/cedet/semantic/wisent/python.el +++ b/lisp/cedet/semantic/wisent/python.el @@ -478,6 +478,22 @@ To be implemented for Python! For now just return nil." (let ((name (semantic-tag-name tag))) (concat (mapconcat 'identity (split-string name "\\.") "/") ".py"))) +;; Override ctxt-current-function/assignment defaults, since they do +;; not work properly with Python code, even leading to endless loops +;; (see bug #xxxxx). +(define-mode-local-override semantic-ctxt-current-function python-mode (&optional point) + "Return the current function call the cursor is in at POINT. +The function returned is the one accepting the arguments that +the cursor is currently in. It will not return function symbol if the +cursor is on the text representing that function." + nil) + +(define-mode-local-override semantic-ctxt-current-assignment python-mode (&optional point) + "Return the current assignment near the cursor at POINT. +Return a list as per `semantic-ctxt-current-symbol'. +Return nil if there is nothing relevant." + nil) + ;;; Enable Semantic in `python-mode'. ;; |