diff options
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." | |||
| 478 | (let ((name (semantic-tag-name tag))) | 478 | (let ((name (semantic-tag-name tag))) |
| 479 | (concat (mapconcat 'identity (split-string name "\\.") "/") ".py"))) | 479 | (concat (mapconcat 'identity (split-string name "\\.") "/") ".py"))) |
| 480 | 480 | ||
| 481 | ;; Override ctxt-current-function/assignment defaults, since they do | ||
| 482 | ;; not work properly with Python code, even leading to endless loops | ||
| 483 | ;; (see bug #xxxxx). | ||
| 484 | (define-mode-local-override semantic-ctxt-current-function python-mode (&optional point) | ||
| 485 | "Return the current function call the cursor is in at POINT. | ||
| 486 | The function returned is the one accepting the arguments that | ||
| 487 | the cursor is currently in. It will not return function symbol if the | ||
| 488 | cursor is on the text representing that function." | ||
| 489 | nil) | ||
| 490 | |||
| 491 | (define-mode-local-override semantic-ctxt-current-assignment python-mode (&optional point) | ||
| 492 | "Return the current assignment near the cursor at POINT. | ||
| 493 | Return a list as per `semantic-ctxt-current-symbol'. | ||
| 494 | Return nil if there is nothing relevant." | ||
| 495 | nil) | ||
| 496 | |||
| 481 | ;;; Enable Semantic in `python-mode'. | 497 | ;;; Enable Semantic in `python-mode'. |
| 482 | ;; | 498 | ;; |
| 483 | 499 | ||