Mercurial > emacs
diff lisp/cedet/ede.el @ 105652:51bc239bdc37
* 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.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 17 Oct 2009 04:18:31 +0000 |
parents | 0f5992576338 |
children | 3fe6da4a95a9 |
line wrap: on
line diff
--- a/lisp/cedet/ede.el Sat Oct 17 03:59:45 2009 +0000 +++ b/lisp/cedet/ede.el Sat Oct 17 04:18:31 2009 +0000 @@ -239,6 +239,9 @@ (and ede-object (obj-of-class-p ede-object ede-target)) ] ) + [ "Run target" ede-run-target + (and ede-object + (obj-of-class-p ede-object ede-target)) ] :documentation "Menu specialized to this type of target." :accessor ede-object-menu) ) @@ -373,7 +376,8 @@ :group (settings) :documentation "Project local variables") (keybindings :allocation :class - :initform (("D" . ede-debug-target)) + :initform (("D" . ede-debug-target) + ("R" . ede-run-target)) :documentation "Keybindings specialized to this type of target." :accessor ede-object-keybindings) (menu :allocation :class @@ -565,6 +569,7 @@ (define-key pmap "c" 'ede-compile-target) (define-key pmap "\C-c" 'ede-compile-selected) (define-key pmap "D" 'ede-debug-target) + (define-key pmap "R" 'ede-run-target) ;; bind our submap into map (define-key map "\C-c." pmap) map) @@ -1142,6 +1147,11 @@ (interactive) (ede-invoke-method 'project-debug-target)) +(defun ede-run-target () + "Debug the current buffer's assocated target." + (interactive) + (ede-invoke-method 'project-run-target)) + (defun ede-make-dist () "Create a distribution from the current project." (interactive) @@ -1381,6 +1391,10 @@ "Run the current project target OBJ in a debugger." (error "debug-target not supported by %s" (object-name obj))) +(defmethod project-run-target ((obj ede-target)) + "Run the current project target OBJ." + (error "run-target not supported by %s" (object-name obj))) + (defmethod project-make-dist ((this ede-project)) "Build a distribution for the project based on THIS project." (error "Make-dist not supported by %s" (object-name this)))