aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Engster2012-10-07 20:29:07 +0200
committerDavid Engster2012-10-07 20:29:07 +0200
commit0aada74e88baf554a1bf95bce9373d9ac76429ad (patch)
treeed781e2bd57ac01c36bc2583948ae4375e83eaa3
parentfcacb55843700a851e10402c2274d71d5b522349 (diff)
parent740877cd2346da5fa3e2085185cd51912eebf0a0 (diff)
downloademacs-0aada74e88baf554a1bf95bce9373d9ac76429ad.tar.gz
emacs-0aada74e88baf554a1bf95bce9373d9ac76429ad.zip
Merge changes from CEDET upstream.
-rw-r--r--lisp/cedet/ChangeLog17
-rw-r--r--lisp/cedet/semantic.el1
-rw-r--r--lisp/cedet/semantic/ede-grammar.el10
-rw-r--r--lisp/cedet/semantic/wisent/python.el16
4 files changed, 37 insertions, 7 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index ff5b603833d..0aeeeebc562 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,3 +1,20 @@
12012-10-07 David Engster <deng@randomsample.de>
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
10 * semantic/ede-grammar.el (project-compile-target): Fix grammar
11 compilation after introduction of %provide statement.
12
132012-10-07 David Engster <deng@randomsample.de>
14
15 * semantic.el (semantic-new-buffer-setup-functions): Remove setup
16 function for `f90-mode', since the parser only exists upstream.
17
12012-10-06 Glenn Morris <rgm@gnu.org> 182012-10-06 Glenn Morris <rgm@gnu.org>
2 19
3 * semantic/complete.el (semantic-displayor-tooltip-max-tags): Doc fix. 20 * semantic/complete.el (semantic-displayor-tooltip-max-tags): Doc fix.
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el
index 5182a38327c..e02790cbfa8 100644
--- a/lisp/cedet/semantic.el
+++ b/lisp/cedet/semantic.el
@@ -273,7 +273,6 @@ setup to use Semantic."
273 (js-mode . wisent-javascript-setup-parser) 273 (js-mode . wisent-javascript-setup-parser)
274 (python-mode . wisent-python-default-setup) 274 (python-mode . wisent-python-default-setup)
275 (scheme-mode . semantic-default-scheme-setup) 275 (scheme-mode . semantic-default-scheme-setup)
276 (f90-mode . semantic-default-f90-setup)
277 (srecode-template-mode . srecode-template-setup-parser) 276 (srecode-template-mode . srecode-template-setup-parser)
278 (texinfo-mode . semantic-default-texi-setup) 277 (texinfo-mode . semantic-default-texi-setup)
279 (makefile-automake-mode . semantic-default-make-setup) 278 (makefile-automake-mode . semantic-default-make-setup)
diff --git a/lisp/cedet/semantic/ede-grammar.el b/lisp/cedet/semantic/ede-grammar.el
index c92fcabecb1..16cf0ca96a2 100644
--- a/lisp/cedet/semantic/ede-grammar.el
+++ b/lisp/cedet/semantic/ede-grammar.el
@@ -143,12 +143,10 @@ Lays claim to all -by.el, and -wy.el files."
143 (utd 0)) 143 (utd 0))
144 (mapc (lambda (src) 144 (mapc (lambda (src)
145 (with-current-buffer (find-file-noselect src) 145 (with-current-buffer (find-file-noselect src)
146 (save-excursion 146 (let* ((package (semantic-grammar-create-package))
147 (semantic-grammar-create-package)) 147 (fname (progn (string-match ".*/\\(.+\\.el\\)" package)
148 ;; After compile, the current buffer is the compiled grammar. 148 (match-string 1 package)))
149 ;; Save and compile it. 149 (src (with-current-buffer fname (buffer-file-name)))
150 (save-buffer)
151 (let* ((src (buffer-file-name))
152 (csrc (concat (file-name-sans-extension src) ".elc"))) 150 (csrc (concat (file-name-sans-extension src) ".elc")))
153 (if (< emacs-major-version 24) 151 (if (< emacs-major-version 24)
154 ;; Does not have `byte-recompile-file' 152 ;; Does not have `byte-recompile-file'
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