emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r110429: Merge changes from CEDET ups


From: David Engster
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110429: Merge changes from CEDET upstream.
Date: Sun, 07 Oct 2012 20:29:07 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110429 [merge]
committer: David Engster <address@hidden>
branch nick: trunk
timestamp: Sun 2012-10-07 20:29:07 +0200
message:
  Merge changes from CEDET upstream.
modified:
  lisp/cedet/ChangeLog
  lisp/cedet/semantic.el
  lisp/cedet/semantic/ede-grammar.el
  lisp/cedet/semantic/wisent/python.el
=== modified file 'lisp/cedet/ChangeLog'
--- a/lisp/cedet/ChangeLog      2012-10-06 20:30:26 +0000
+++ b/lisp/cedet/ChangeLog      2012-10-07 18:23:50 +0000
@@ -1,3 +1,20 @@
+2012-10-07  David Engster  <address@hidden>
+
+       * 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).
+
+2012-10-07  David Engster  <address@hidden>
+
+       * semantic/ede-grammar.el (project-compile-target): Fix grammar
+       compilation after introduction of %provide statement.
+
+2012-10-07  David Engster  <address@hidden>
+
+       * semantic.el (semantic-new-buffer-setup-functions): Remove setup
+       function for `f90-mode', since the parser only exists upstream.
+
 2012-10-06  Glenn Morris  <address@hidden>
 
        * semantic/complete.el (semantic-displayor-tooltip-max-tags): Doc fix.

=== modified file 'lisp/cedet/semantic.el'
--- a/lisp/cedet/semantic.el    2012-10-01 18:10:29 +0000
+++ b/lisp/cedet/semantic.el    2012-10-07 18:12:46 +0000
@@ -273,7 +273,6 @@
     (js-mode . wisent-javascript-setup-parser)
     (python-mode . wisent-python-default-setup)
     (scheme-mode . semantic-default-scheme-setup)
-    (f90-mode . semantic-default-f90-setup)
     (srecode-template-mode . srecode-template-setup-parser)
     (texinfo-mode . semantic-default-texi-setup)
     (makefile-automake-mode . semantic-default-make-setup)

=== modified file 'lisp/cedet/semantic/ede-grammar.el'
--- a/lisp/cedet/semantic/ede-grammar.el        2012-10-01 18:10:29 +0000
+++ b/lisp/cedet/semantic/ede-grammar.el        2012-10-07 18:19:58 +0000
@@ -143,12 +143,10 @@
         (utd 0))
     (mapc (lambda (src)
            (with-current-buffer (find-file-noselect src)
-             (save-excursion
-               (semantic-grammar-create-package))
-             ;; After compile, the current buffer is the compiled grammar.
-             ;; Save and compile it.
-             (save-buffer)
-             (let* ((src (buffer-file-name))
+             (let* ((package (semantic-grammar-create-package))
+                    (fname (progn (string-match ".*/\\(.+\\.el\\)" package)
+                                  (match-string 1 package)))
+                    (src (with-current-buffer fname (buffer-file-name)))
                     (csrc (concat (file-name-sans-extension src) ".elc")))
                (if (< emacs-major-version 24)
                    ;; Does not have `byte-recompile-file'

=== modified file 'lisp/cedet/semantic/wisent/python.el'
--- a/lisp/cedet/semantic/wisent/python.el      2012-10-01 18:10:29 +0000
+++ b/lisp/cedet/semantic/wisent/python.el      2012-10-07 18:23:50 +0000
@@ -478,6 +478,22 @@
   (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'.
 ;;
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]