diff options
| author | Xue Fuqiao | 2013-07-30 08:29:09 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-07-30 08:29:09 +0800 |
| commit | d2067333246b676fcf98567d34eec79ed4648d5f (patch) | |
| tree | ad6543d8e7f1db50226907f7278373eef544d252 /lisp/cedet | |
| parent | 7aa7fff0c8860b72a2c7cdc7d4d0845245754d43 (diff) | |
| parent | 86b192c1479d167c13edb9cdaa026c231c8a0442 (diff) | |
| download | emacs-d2067333246b676fcf98567d34eec79ed4648d5f.tar.gz emacs-d2067333246b676fcf98567d34eec79ed4648d5f.zip | |
Merge from mainline.
Diffstat (limited to 'lisp/cedet')
| -rw-r--r-- | lisp/cedet/ChangeLog | 35 | ||||
| -rw-r--r-- | lisp/cedet/cedet.el | 3 | ||||
| -rw-r--r-- | lisp/cedet/semantic/analyze/fcn.el | 5 | ||||
| -rw-r--r-- | lisp/cedet/semantic/bovine/el.el | 1 | ||||
| -rw-r--r-- | lisp/cedet/semantic/db-el.el | 39 | ||||
| -rw-r--r-- | lisp/cedet/semantic/decorate/mode.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic/edit.el | 5 | ||||
| -rw-r--r-- | lisp/cedet/semantic/wisent/python.el | 1 |
8 files changed, 71 insertions, 22 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index 705277c97a0..c39a8a700ef 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog | |||
| @@ -1,3 +1,38 @@ | |||
| 1 | 2013-07-29 David Engster <deng@randomsample.de> | ||
| 2 | |||
| 3 | * lisp/cedet/cedet.el (cedet-packages): Remove speedbar since its | ||
| 4 | development does no longer happens in CEDET upstream but in Emacs | ||
| 5 | proper. Also remove cedet-contrib and cogre since those are only | ||
| 6 | in upstream. | ||
| 7 | |||
| 8 | * semantic/analyze/fcn.el (semantic-analyze-type-to-name): If TYPE | ||
| 9 | has a parent, return a fully qualified name. | ||
| 10 | |||
| 11 | * semantic/decorate/mode.el | ||
| 12 | (semantic-decoration-on-includes-p-default) | ||
| 13 | (semantic-decoration-on-includes-highlight-default): Declare for | ||
| 14 | byte compiler. | ||
| 15 | |||
| 16 | * semantic/wisent/python.el (semantic/format): New require. | ||
| 17 | |||
| 18 | 2013-07-27 Eric Ludlam <zappo@gnu.org> | ||
| 19 | |||
| 20 | * lisp/cedet/semantic/edit.el (semantic-edits-splice-remove): Wrap | ||
| 21 | debug message removing middle tag in semantic-edits-verbose-flag | ||
| 22 | check. | ||
| 23 | |||
| 24 | 2013-07-27 David Engster <deng@randomsample.de> | ||
| 25 | |||
| 26 | * semantic/bovine/el.el (semantic/db-el): New require. | ||
| 27 | |||
| 28 | * semantic/db-el.el (semanticdb-normalize-one-tag): It might be | ||
| 29 | that a symbol comes from a file but cannot be found in its table. | ||
| 30 | This happens for instance when a symbol was dynamically created | ||
| 31 | through a macro like `defstruct'. In this case, return the | ||
| 32 | original tag. | ||
| 33 | (semanticdb-elisp-sym->tag): Deal with autoloaded functions, where | ||
| 34 | the argument list is not available until the file is loaded. | ||
| 35 | |||
| 1 | 2013-06-25 Stefan Monnier <monnier@iro.umontreal.ca> | 36 | 2013-06-25 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 37 | ||
| 3 | * data-debug.el, cedet-idutils.el: Neuter the "Version:" header. | 38 | * data-debug.el, cedet-idutils.el: Neuter the "Version:" header. |
diff --git a/lisp/cedet/cedet.el b/lisp/cedet/cedet.el index e8720bc6624..f34442996c1 100644 --- a/lisp/cedet/cedet.el +++ b/lisp/cedet/cedet.el | |||
| @@ -46,9 +46,6 @@ | |||
| 46 | (semantic "2.2" nil "semantic/doc") | 46 | (semantic "2.2" nil "semantic/doc") |
| 47 | (srecode "1.2" nil "srecode" ) | 47 | (srecode "1.2" nil "srecode" ) |
| 48 | (ede "1.2" nil "ede" ) | 48 | (ede "1.2" nil "ede" ) |
| 49 | (speedbar "1.0.4" nil "speedbar" ) | ||
| 50 | (cogre "1.2" nil "cogre" ) | ||
| 51 | (cedet-contrib "1.2" "contrib" nil ) | ||
| 52 | ) | 49 | ) |
| 53 | "Table of CEDET packages to install.") | 50 | "Table of CEDET packages to install.") |
| 54 | 51 | ||
diff --git a/lisp/cedet/semantic/analyze/fcn.el b/lisp/cedet/semantic/analyze/fcn.el index 4300c89c9df..7512b7ca15a 100644 --- a/lisp/cedet/semantic/analyze/fcn.el +++ b/lisp/cedet/semantic/analyze/fcn.el | |||
| @@ -165,7 +165,10 @@ SCOPE is the scope object with additional items in which to search for names." | |||
| 165 | The TYPE field in a tag can be nil (return nil) | 165 | The TYPE field in a tag can be nil (return nil) |
| 166 | or a string, or a non-positional tag." | 166 | or a string, or a non-positional tag." |
| 167 | (cond ((semantic-tag-p type) | 167 | (cond ((semantic-tag-p type) |
| 168 | (semantic-tag-name type)) | 168 | (if (semantic-tag-named-parent type) |
| 169 | (semantic-analyze-unsplit-name `(,(semantic-tag-named-parent type) | ||
| 170 | ,(semantic-tag-name type))) | ||
| 171 | (semantic-tag-name type))) | ||
| 169 | ((stringp type) | 172 | ((stringp type) |
| 170 | type) | 173 | type) |
| 171 | ((listp type) | 174 | ((listp type) |
diff --git a/lisp/cedet/semantic/bovine/el.el b/lisp/cedet/semantic/bovine/el.el index 0bbe3c61d76..c6f1ceb0f94 100644 --- a/lisp/cedet/semantic/bovine/el.el +++ b/lisp/cedet/semantic/bovine/el.el | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | (require 'semantic) | 26 | (require 'semantic) |
| 27 | (require 'semantic/bovine) | 27 | (require 'semantic/bovine) |
| 28 | (require 'semantic/db-el) | ||
| 28 | (require 'find-func) | 29 | (require 'find-func) |
| 29 | 30 | ||
| 30 | (require 'semantic/ctxt) | 31 | (require 'semantic/ctxt) |
diff --git a/lisp/cedet/semantic/db-el.el b/lisp/cedet/semantic/db-el.el index 1b0f3292ad3..3376389c7d5 100644 --- a/lisp/cedet/semantic/db-el.el +++ b/lisp/cedet/semantic/db-el.el | |||
| @@ -173,13 +173,17 @@ If Emacs cannot resolve this symbol to a particular file, then return nil." | |||
| 173 | (newtags (when tab (semanticdb-find-tags-by-name-method | 173 | (newtags (when tab (semanticdb-find-tags-by-name-method |
| 174 | tab (semantic-tag-name tag)))) | 174 | tab (semantic-tag-name tag)))) |
| 175 | (match nil)) | 175 | (match nil)) |
| 176 | ;; Find the best match. | 176 | ;; We might not have a parsed tag in this file, because it |
| 177 | (dolist (T newtags) | 177 | ;; might be generated through a macro like defstruct. |
| 178 | (when (semantic-tag-similar-p T tag) | 178 | (if (null newtags) |
| 179 | (setq match T))) | 179 | (setq match tag) |
| 180 | ;; Backup system. | 180 | ;; Find the best match. |
| 181 | (when (not match) | 181 | (dolist (T newtags) |
| 182 | (setq match (car newtags))) | 182 | (when (semantic-tag-similar-p T tag) |
| 183 | (setq match T))) | ||
| 184 | ;; Backup system. | ||
| 185 | (when (not match) | ||
| 186 | (setq match (car newtags)))) | ||
| 183 | ;; Return it. | 187 | ;; Return it. |
| 184 | (when tab (cons tab match)))))) | 188 | (when tab (cons tab match)))))) |
| 185 | 189 | ||
| @@ -196,15 +200,18 @@ TOKTYPE is a hint to the type of tag desired." | |||
| 196 | (when sym | 200 | (when sym |
| 197 | (cond ((and (eq toktype 'function) (fboundp sym)) | 201 | (cond ((and (eq toktype 'function) (fboundp sym)) |
| 198 | (require 'semantic/bovine/el) | 202 | (require 'semantic/bovine/el) |
| 199 | (semantic-tag-new-function | 203 | (let ((arglist (help-function-arglist sym))) |
| 200 | (symbol-name sym) | 204 | (when (not (listp arglist)) |
| 201 | nil ;; return type | 205 | ;; Function might be autoloaded, in which case |
| 202 | (semantic-elisp-desymbolify | 206 | ;; the arglist is not available yet. |
| 203 | (help-function-arglist sym)) ;; arg-list | 207 | (setq arglist nil)) |
| 204 | :user-visible-flag (condition-case nil | 208 | (semantic-tag-new-function |
| 205 | (interactive-form sym) | 209 | (symbol-name sym) |
| 206 | (error nil)) | 210 | nil ;; return type |
| 207 | )) | 211 | (semantic-elisp-desymbolify arglist) |
| 212 | :user-visible-flag (condition-case nil | ||
| 213 | (interactive-form sym) | ||
| 214 | (error nil))))) | ||
| 208 | ((and (eq toktype 'variable) (boundp sym)) | 215 | ((and (eq toktype 'variable) (boundp sym)) |
| 209 | (semantic-tag-new-variable | 216 | (semantic-tag-new-variable |
| 210 | (symbol-name sym) | 217 | (symbol-name sym) |
diff --git a/lisp/cedet/semantic/decorate/mode.el b/lisp/cedet/semantic/decorate/mode.el index ba06c73936b..cc5e9d9bec2 100644 --- a/lisp/cedet/semantic/decorate/mode.el +++ b/lisp/cedet/semantic/decorate/mode.el | |||
| @@ -541,6 +541,10 @@ Use a primary decoration." | |||
| 541 | 541 | ||
| 542 | ;;; Decoration Modes in other files | 542 | ;;; Decoration Modes in other files |
| 543 | ;; | 543 | ;; |
| 544 | (declare-function semantic-decoration-on-includes-p-default | ||
| 545 | "semantic/decorate/include") | ||
| 546 | (declare-function semantic-decoration-on-includes-highlight-default | ||
| 547 | "semantic/decorate/include") | ||
| 544 | (define-semantic-decoration-style semantic-decoration-on-includes | 548 | (define-semantic-decoration-style semantic-decoration-on-includes |
| 545 | "Highlight class members that are includes. | 549 | "Highlight class members that are includes. |
| 546 | This mode provides a nice context menu on the include statements." | 550 | This mode provides a nice context menu on the include statements." |
diff --git a/lisp/cedet/semantic/edit.el b/lisp/cedet/semantic/edit.el index a27eab5404c..91455cdb741 100644 --- a/lisp/cedet/semantic/edit.el +++ b/lisp/cedet/semantic/edit.el | |||
| @@ -882,8 +882,9 @@ pre-positioned to a convenient location." | |||
| 882 | ;; reparse | 882 | ;; reparse |
| 883 | (semantic-parse-changes-failed "Splice-remove failed. Empty buffer?") | 883 | (semantic-parse-changes-failed "Splice-remove failed. Empty buffer?") |
| 884 | )) | 884 | )) |
| 885 | (message "To Remove Middle Tag: (%s)" | 885 | (when semantic-edits-verbose-flag |
| 886 | (semantic-format-tag-name first))) | 886 | (message "To Remove Middle Tag: (%s)" |
| 887 | (semantic-format-tag-name first)))) | ||
| 887 | ;; Find in the cache the preceding tag | 888 | ;; Find in the cache the preceding tag |
| 888 | (while (and cachestart (not (eq first (car (cdr cachestart))))) | 889 | (while (and cachestart (not (eq first (car (cdr cachestart))))) |
| 889 | (setq cachestart (cdr cachestart))) | 890 | (setq cachestart (cdr cachestart))) |
diff --git a/lisp/cedet/semantic/wisent/python.el b/lisp/cedet/semantic/wisent/python.el index 719868f7635..2c0ed5868ce 100644 --- a/lisp/cedet/semantic/wisent/python.el +++ b/lisp/cedet/semantic/wisent/python.el | |||
| @@ -39,6 +39,7 @@ | |||
| 39 | (require 'semantic/find) | 39 | (require 'semantic/find) |
| 40 | (require 'semantic/dep) | 40 | (require 'semantic/dep) |
| 41 | (require 'semantic/ctxt) | 41 | (require 'semantic/ctxt) |
| 42 | (require 'semantic/format) | ||
| 42 | 43 | ||
| 43 | (eval-when-compile | 44 | (eval-when-compile |
| 44 | (require 'cl)) | 45 | (require 'cl)) |