diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2009-10-17 04:18:31 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2009-10-17 04:18:31 +0000 |
commit | 67d3ffe4989e99079a69e1f7358b758c14cb519a (patch) | |
tree | ef5228be15780a5eae1d81245c0b136e1101e123 /lisp/cedet/semantic | |
parent | 2df48a87291564f460b159f94f622f88f6c40bfb (diff) | |
download | emacs-67d3ffe4989e99079a69e1f7358b758c14cb519a.tar.gz |
* cedet/srecode/srt.el:
* cedet/srecode/compile.el:
* cedet/semantic/mru-bookmark.el:
* cedet/semantic/debug.el:
* cedet/semantic/complete.el:
* cedet/semantic/analyze.el: Require CL when compiling.
* cedet/semantic/scope.el
(semantic-analyze-scoped-inherited-tag-map): Wrap calculation of
tmpscope so that the regular scope will continue to work.
* cedet/semantic/idle.el (semantic-idle-tag-highlight): Use
semantic-idle-summary-highlight-face as the highlighting.
* emacs-lisp/eieio-base.el (eieio-persistent-save): If buffer
contains multibyte characters, choose first applicable coding
system automatically.
* cedet/ede/project-am.el (project-run-target): New method.
(project-run-target): New method.
* cedet/ede.el (ede-target): Add run target menu item.
(ede-project, ede-minor-keymap): Add ede-run-target binding.
(ede-run-target): New function.
(ede-target::project-run-target): New method.
* cedet/ede/proj.el (project-run-target): New method.
* cedet/ede/proj-shared.el (ede-gcc-libtool-shared-compiler)
(ede-g++-libtool-shared-compiler): Remove SHELL. Remove COMMANDS.
Add :rules.
(ede-proj-target-makefile-shared-object): Only libtool compilers
now available. Add linkers for libtool.
(ede-cc-linker-libtool, ede-g++-linker-libtool): New.
(ede-proj-makefile-target-name): Always use .la extension.
* cedet/ede/proj-prog.el (project-run-target): New method.
* cedet/ede/proj-obj.el (ede-cc-linker): Rename from
ede-gcc-linker.
(ede-g++-linker): Change Change link lines.
* cedet/ede/pmake.el (ede-pmake-insert-variable-shared): When
searching for old variables, go to the end of the buffer and
search backward from there.
(ede-proj-makefile-automake-insert-subdirs)
(ede-proj-makefile-automake-insert-extradist): New methods.
(ede-proj-makefile-create): Use them.
* cedet/ede/pconf.el (ede-proj-configure-test-required-file):
Force FILE to expand to the current target. Use file-exists-p to
check that it exists.
* cedet/ede/linux.el (ede-linux-version): Don't call "head".
(ede-linux-load): Wrap dir in file-name-as-directory. Set
:version slot.
* cedet/ede/files.el (ede-get-locator-object): When enabling
locate, do so on "top".
* cedet/ede/emacs.el (ede-emacs-file-existing): Wrap "dir" in
file-name-as-directory during compare.
(ede-emacs-version): Return Emacs/XEmacs differentiator. Get
version number from different places. Don't call egrep.
(ede-emacs-load): Set :version slot. Call file-name-as-directory
to set the directory.
* cedet/ede/shell.el: New file.
* cedet/inversion.el (inversion-decoders): Allow for stray . in
alpha/beta variants.
Diffstat (limited to 'lisp/cedet/semantic')
-rw-r--r-- | lisp/cedet/semantic/analyze.el | 1 | ||||
-rw-r--r-- | lisp/cedet/semantic/complete.el | 1 | ||||
-rw-r--r-- | lisp/cedet/semantic/debug.el | 1 | ||||
-rw-r--r-- | lisp/cedet/semantic/idle.el | 2 | ||||
-rw-r--r-- | lisp/cedet/semantic/mru-bookmark.el | 1 | ||||
-rw-r--r-- | lisp/cedet/semantic/scope.el | 45 |
6 files changed, 28 insertions, 23 deletions
diff --git a/lisp/cedet/semantic/analyze.el b/lisp/cedet/semantic/analyze.el index 98c0665f842..a4d5664f226 100644 --- a/lisp/cedet/semantic/analyze.el +++ b/lisp/cedet/semantic/analyze.el @@ -64,6 +64,7 @@ ;; constant. These need to be returned as there would be no ;; other possible completions. +(eval-when-compile (require 'cl)) (require 'semantic) (require 'semantic/format) (require 'semantic/ctxt) diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el index 6744e2cd336..154defb417a 100644 --- a/lisp/cedet/semantic/complete.el +++ b/lisp/cedet/semantic/complete.el @@ -107,6 +107,7 @@ ;; `semantic-complete-inline-tag-engine' will complete text in ;; a buffer. +(eval-when-compile (require 'cl)) (require 'semantic) (require 'eieio-opt) (require 'semantic/analyze) diff --git a/lisp/cedet/semantic/debug.el b/lisp/cedet/semantic/debug.el index 6d88e9962a8..ac8b4b1314e 100644 --- a/lisp/cedet/semantic/debug.el +++ b/lisp/cedet/semantic/debug.el @@ -36,6 +36,7 @@ ;; Each parser must implement the interface and override any methods as needed. ;; +(eval-when-compile (require 'cl)) (require 'semantic) (require 'eieio) (eval-when-compile (require 'semantic/find)) diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el index 83ac3b27e7d..45f804b62a7 100644 --- a/lisp/cedet/semantic/idle.el +++ b/lisp/cedet/semantic/idle.el @@ -905,7 +905,7 @@ Call `semantic-symref-hits-in-region' to identify local references." target (lambda (start end prefix) (when (/= start (car Hbounds)) (pulse-momentary-highlight-region - start end)) + start end semantic-idle-summary-highlight-face)) (semantic-throw-on-input 'symref-highlight) ) (semantic-tag-start tag) diff --git a/lisp/cedet/semantic/mru-bookmark.el b/lisp/cedet/semantic/mru-bookmark.el index d57aa194b98..da508a67553 100644 --- a/lisp/cedet/semantic/mru-bookmark.el +++ b/lisp/cedet/semantic/mru-bookmark.el @@ -45,6 +45,7 @@ ;;; Code: +(eval-when-compile (require 'cl)) (require 'semantic) (require 'eieio-base) (require 'ring) diff --git a/lisp/cedet/semantic/scope.el b/lisp/cedet/semantic/scope.el index 99d410a6b3e..b7833e30a5f 100644 --- a/lisp/cedet/semantic/scope.el +++ b/lisp/cedet/semantic/scope.el @@ -602,28 +602,29 @@ whose tags can be searched when needed, OR it may be a scope object." ;; for recycling later? Should this become a helpful ;; extra routine? (when (and parents (semantic-tag-with-position-p type)) - ;; If TYPE has a position, go there and get the scope. - (semantic-go-to-tag type) - - ;; We need to make a mini scope, and only include the misc bits - ;; that will help in finding the parent. We don't really need - ;; to do any of the stuff related to variables and what-not. - (setq tmpscope (semantic-scope-cache "mini")) - (let* (;; Step 1: - (scopetypes (semantic-analyze-scoped-types (point))) - (parents (semantic-analyze-scope-nested-tags (point) scopetypes)) - ;;(parentinherited (semantic-analyze-scope-lineage-tags parents scopetypes)) - (lscope nil) - ) - (oset tmpscope scopetypes scopetypes) - (oset tmpscope parents parents) - ;;(oset tmpscope parentinheritance parentinherited) - - (when (or scopetypes parents) - (setq lscope (semantic-analyze-scoped-tags scopetypes tmpscope)) - (oset tmpscope scope lscope)) - (oset tmpscope fullscope (append scopetypes lscope parents)) - )) + (save-excursion + ;; If TYPE has a position, go there and get the scope. + (semantic-go-to-tag type) + + ;; We need to make a mini scope, and only include the misc bits + ;; that will help in finding the parent. We don't really need + ;; to do any of the stuff related to variables and what-not. + (setq tmpscope (semantic-scope-cache "mini")) + (let* ( ;; Step 1: + (scopetypes (semantic-analyze-scoped-types (point))) + (parents (semantic-analyze-scope-nested-tags (point) scopetypes)) + ;;(parentinherited (semantic-analyze-scope-lineage-tags parents scopetypes)) + (lscope nil) + ) + (oset tmpscope scopetypes scopetypes) + (oset tmpscope parents parents) + ;;(oset tmpscope parentinheritance parentinherited) + + (when (or scopetypes parents) + (setq lscope (semantic-analyze-scoped-tags scopetypes tmpscope)) + (oset tmpscope scope lscope)) + (oset tmpscope fullscope (append scopetypes lscope parents)) + ))) ;; END creating tmpscope ;; Look up each parent one at a time. |