aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDavid Engster2012-10-07 20:23:50 +0200
committerDavid Engster2012-10-07 20:23:50 +0200
commit740877cd2346da5fa3e2085185cd51912eebf0a0 (patch)
tree47a0d2c8dbcfe9dea7bd50730e3418cda124c636 /lisp
parent31e4cc2a189ef7b0de5057a90580d80634bd3d06 (diff)
downloademacs-740877cd2346da5fa3e2085185cd51912eebf0a0.tar.gz
emacs-740877cd2346da5fa3e2085185cd51912eebf0a0.zip
* 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')
-rw-r--r--lisp/cedet/ChangeLog7
-rw-r--r--lisp/cedet/semantic/wisent/python.el16
2 files changed, 23 insertions, 0 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index 453939e6ce1..0aeeeebc562 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,5 +1,12 @@
12012-10-07 David Engster <deng@randomsample.de> 12012-10-07 David Engster <deng@randomsample.de>
2 2
3 * semantic/wisent/python.el (semantic-ctxt-current-function)
4 (semantic-ctxt-current-assignment): New overrides, simply
5 returning nil. The defaults do not work correctly and can send
6 the parser in an inifinite loop (bug#12458).
7
82012-10-07 David Engster <deng@randomsample.de>
9
3 * semantic/ede-grammar.el (project-compile-target): Fix grammar 10 * semantic/ede-grammar.el (project-compile-target): Fix grammar
4 compilation after introduction of %provide statement. 11 compilation after introduction of %provide statement.
5 12
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.
486The function returned is the one accepting the arguments that
487the cursor is currently in. It will not return function symbol if the
488cursor 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.
493Return a list as per `semantic-ctxt-current-symbol'.
494Return 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