Commit graph

111 commits

Author SHA1 Message Date
Chong Yidong
e6e267fcba * cedet/srecode/srt-mode.el (srecode-template-mode): Doc fix.
* files.el (auto-mode-alist): Add .srt and Project.ede.

* cedet/semantic.el (semantic-mode): Handle
srecode-template-mode-hook as well.

* cedet/srecode/template.el: Remove hook variable.

* cedet/ede/proj-comp.el: Require ede/pmake when compiling.

* cedet/ede.el (ede-target-forms-menu): Don't enable if no
projects exist.

* cedet/srecode/map.el (srecode-map-base-template-dir): Look for
templates in data-directory.

* cedet/ede/srecode.el (ede-srecode-setup): Use default templates
directory.

* cedet/semantic/util-modes.el (semantic-highlight-func-mode): Doc
fix.

* cedet/ede/proj-comp.el (ede-proj-makefile-insert-variables):
Only insert each variable once.

* cedet/ede/pmake.el (ede-pmake-insert-variable-once): New macro.
(ede-pmake-insert-variable-shared): Use it.

* cedet/ede/cpp-root.el (ede-preprocessor-map): Do not deref table
for lexical table iff table is nil.
2009-10-03 19:28:05 +00:00
Glenn Morris
619392fc97 (data-debug-insert-tag-list): Comment out declaration, currently false. 2009-10-03 02:11:59 +00:00
Miles Bader
3999968a73 Add arch tagline 2009-10-02 10:53:34 +00:00
Glenn Morris
9bf6c65c2f Doc/message fixes. 2009-10-01 04:54:05 +00:00
Glenn Morris
2551831f20 Fix comment typo. 2009-10-01 04:48:12 +00:00
Glenn Morris
e2309735ba Fix comment typos. 2009-10-01 04:47:55 +00:00
Glenn Morris
8af8468f8b Fix comment typo. 2009-10-01 04:31:40 +00:00
Glenn Morris
8d0ef65698 Fix comment typo. 2009-10-01 04:24:04 +00:00
Glenn Morris
45af56db26 Fix comment typo. 2009-10-01 04:16:13 +00:00
Glenn Morris
57b0083abb (semantic-c-reset-preprocessor-symbol-map): Fix declaration.
(semantic-gcc-get-include-paths, semantic-gcc-setup-data): Doc fixes.
2009-10-01 02:19:38 +00:00
Juanma Barranquero
0376249de8 * cedet/semantic/wisent/javat-wy.el (wisent-java-tags-wy--keyword-table):
Use \000 instead of literal ^@.
2009-10-01 01:06:18 +00:00
Glenn Morris
d16d4acd04 Fix comment typos.
(semantic-mrub-completing-read, semantic-mrub-switch-tags): Fix doc typos.
2009-09-30 07:55:35 +00:00
Glenn Morris
40f9bf9437 (data-debug-new-buffer, data-debug-insert-thing): Remove unneeded
declarations (one broken).
(semanticdb-enable-gnu-global-databases): Fix prompt typo.
2009-09-30 07:50:48 +00:00
Glenn Morris
d275a5ed7b (semantic-scope-find): Fix declaration. 2009-09-30 07:24:04 +00:00
Glenn Morris
9280709b47 (semantic-gcc-setup): Replace runtime use of CL function `remove-if-not'. 2009-09-30 02:26:12 +00:00
Glenn Morris
3d9e6ffc42 Remove duplicate author header. 2009-09-30 02:25:43 +00:00
Glenn Morris
aef8fbf13d Fix format of Authors: header. 2009-09-30 02:25:27 +00:00
Glenn Morris
8beeeabbbb Add 2009 to copyright years. 2009-09-29 07:38:42 +00:00
Glenn Morris
d037e45a86 Relicense under GPLv3+. 2009-09-29 07:31:22 +00:00
Glenn Morris
b242580243 Add 2009 to copyright years. 2009-09-29 07:28:30 +00:00
Glenn Morris
cb75810193 Add 2009 to copyright years. 2009-09-29 07:21:14 +00:00
Glenn Morris
84c23041ea Mark declarations not understood by check-declare. 2009-09-29 04:09:19 +00:00
Chong Yidong
b90caf50d0 CEDET (development tools) package merged.
* cedet/*.el:
* cedet/ede/*.el:
* cedet/semantic/*.el:
* cedet/srecode/*.el: New files.
2009-09-28 15:15:00 +00:00
Chong Yidong
a2095e2edb * cedet/ede/system.el (ede-upload-html-documentation)
(ede-upload-distribution, ede-edit-web-page)
(ede-web-browse-home): Autoload.

* cedet/ede/proj-elisp.el: Add autoload for
semantic-ede-proj-target-grammar.

* cedet/semantic.el (navigate-menu): Show menu items only if
semantic-mode is enabled.

* cedet/ede.el: Remove comments.

* cedet/cedet.el (cedet-menu-map): Minor doc fix.

* cedet/semantic/grammar.el:
* cedet/semantic/grammar-wy.el:
* cedet/semantic/ede-grammar.el: New files.

* cedet/semantic/db-mode.el (global-semanticdb-minor-mode): Define
using define-minor-mode, so that the usual mode variable exists.
2009-09-27 21:35:46 +00:00
Chong Yidong
78f9c78d2d * cedet/semantic/symref/list.el: Require semantic/complete.
(semantic-symref-symbol): Use
semantic-complete-read-tag-buffer-deep.

* cedet/semantic/ia.el (semantic-ia-complete-symbol-menu): Remove.
(semantic-ia-complete-symbol): Use semantic-complete-symbol.
2009-09-27 03:59:51 +00:00
Chong Yidong
abe6fcf141 Minor comment tweak. 2009-09-27 03:42:03 +00:00
Chong Yidong
8bf997efee * cedet/semantic/idle.el (semantic-idle-scheduler-work-timer):
Change timeout to 1.  Doc fix.

* cedet/semantic/edit.el (semantic-change-hooks): Add
semantic-edits-change-function-handle-changes directly.

* cedet/semantic/util.el (semantic--completion-cache): Move to
semantic.el.
(semantic-symbol-start): Remove unneeded function.

* cedet/semantic.el (semantic--completion-cache): Move here from
semantic/util.el
(semantic-clear-toplevel-cache, semantic--set-buffer-cache)
(semantic-fetch-tags): Reset semantic--completion-cache.
(semantic-force-refresh): New function
(semantic-mode-map): New variable.

* cedet/semantic/senator.el: New file.

* cedet/ede.el: Fix autoload.
(ede-customize-forms-menu): Handle null projects.
2009-09-27 03:36:58 +00:00
Chong Yidong
b733e9bc68 * cedet/semantic/edit.el
(semantic-edits-incremental-reparse-failed-hook): Rename from
semantic-edits-incremental-reparse-failed-hooks.
(semantic-edits-incremental-fail): Use new var name.

* cedet/semantic/util-modes.el
(semantic-show-parser-state-mode-setup): Use new hook names.
2009-09-26 18:30:17 +00:00
Chong Yidong
7cf918c6f2 * cedet/semantic/util-modes.el
(semantic-show-parser-state-mode-setup): Use new hook names.
2009-09-26 18:23:56 +00:00
Chong Yidong
57f4d2f89c * cedet/semantic/db-file.el (semanticdb-save-database-hooks): Revert
last change, as this is an abnormal hook.
2009-09-26 18:09:29 +00:00
Chong Yidong
1ac9ebc859 Fix last change to use semantic-varalias-obsolete. 2009-09-26 18:03:54 +00:00
Chong Yidong
29e1a603c0 * cedet/semantic/lex.el (semantic-lex-reset-hooks): Doc fix.
* cedet/semantic/idle.el
(semantic-before-idle-scheduler-reparse-hook)
(semantic-after-idle-scheduler-reparse-hook): Rename from *-hooks.
Make old name an obsolete alias.

* cedet/semantic/edit.el (semantic-after-partial-cache-change-hook)
(semantic-change-hooks, semantic-edits-new-change-hooks)
(semantic-edits-delete-change-hooks)
(semantic-edits-move-change-hook)
(semantic-edits-reparse-change-hooks)
(semantic-edits-incremental-reparse-failed-hooks): Doc fixes.

* cedet/semantic/debug.el (semantic-debug-mode): Rename hook
symbols.

* cedet/semantic/db-mode.el (semanticdb-mode-hook): Rename from
semanticdb-mode-hooks.
(global-semanticdb-minor-mode): Use the new name.
(semanticdb-hooks): Use semantic-init-db-hook instead of obsolete
alias semantic-init-db-hooks.

* cedet/semantic/db-global.el (semanticdb-enable-gnu-global-databases):
Use semantic-init-hook instead of obsolete alias
semantic-init-hooks.

* cedet/semantic/db-file.el (semanticdb-save-database-hook):
Rename from semanticdb-save-database-hooks.  Make old name an
obsolete alias.

* cedet/semantic/decorate/mode.el
(semantic-decorate-pending-decoration-hook): Rename from
semantic-decorate-pending-decoration-hooks.  Make old name an
obsolete alias.

* cedet/srecode/map.el (srecode-map-validate-file-for-mode): Use
semantic-init-hook instead of obsolete alias semantic-init-hooks.

* cedet/semantic/fw.el (semantic-find-file-noselect): Use
semantic-init-hook instead of obsolete alias semantic-init-hooks.

* cedet/ede/project-am.el (project-am-with-makefile-current): Use
semantic-init-hook instead of obsolete alias semantic-init-hooks.

* cedet/semantic/util.el (semantic-describe-buffer): Use
semantic-init-hook and semantic-init-db-hook instead of obsolete
aliases.

* cedet/semantic/util-modes.el (semantic-mode-line-update)
(semantic-toggle-minor-mode-globally): Use semantic-init-hook
instead of obsolete alias semantic-init-hooks.


Synch to Eric M. Ludlam's upstream CEDET repository:

* cedet/semantic/bovine/c.el (semantic-c-parse-token-hack-depth):
New var.
(semantic-c-parse-lexical-token): Save match data when setting up
the secondary parse buffer.  Allow recursion.  Protect against
initializing the major mode from throwing errors, ie user hooks.

* cedet/semantic/lex-spp.el (semantic-lex-spp-lex-text-string):
Protect installing a major mode from throwing errors.
2009-09-26 17:47:11 +00:00
Chong Yidong
17e1f4bc65 * cedet/semantic.el (semantic-parser-working-message): Use a less
technical parsing message.
(semantic-mode): Require semantic/db-ebrowse if we need to.

* cedet/semantic/util-modes.el (semantic-highlight-func-mode): Doc fix.
2009-09-21 19:05:56 +00:00
Chong Yidong
5bebb33249 * cedet/semantic/db.el (semanticdb--inhibit-make-directory): New var.
(semanticdb-save-all-db): Use it.

* cedet/semantic/db-file.el (semanticdb-default-save-directory):
Save in user-emacs-directory instead of the home directory.
(semanticdb-file-directory-exists-p): Avoid prompting the user
multiple times.
2009-09-21 18:20:50 +00:00
Chong Yidong
16feddc402 * help-fns.el (describe-function-1): Call
overload-docstring-extension for mode-local functions.

* cedet/mode-local.el:
* cedet/semantic/mru-bookmark.el:
* cedet/pulse.el: Remove advice.

* cedet/semantic.el: Add autoloads for semantic/idle functions.
2009-09-21 17:49:07 +00:00
Chong Yidong
af7b5a91b2 * cedet/semantic.el: Add autoloads for semantic/idle functions.
* cedet/semantic/util.el (semantic--completion-cache): New var.
(semantic-symbol-start, semantic-find-tag-for-completion)
(semantic-complete-symbol): New functions, adapted from Senator.

* bindings.el (complete-symbol): Try semantic-complete-symbol if
no tag table is active.

* cedet/semantic/idle.el (define-semantic-idle-service): Doc fix.
2009-09-21 15:59:48 +00:00
Chong Yidong
602a8d7e4f lisp/cedet/semantic/mru-bookmark.el: New file. 2009-09-21 02:26:07 +00:00
Chong Yidong
b82525f29a * menu-bar.el: Remove ediff-misc from Tools menu.
* cedet/semantic.el (semantic-init-hook)
(semantic-init-mode-hook, semantic-init-db-hook): Rename
from *-hooks, to follow hook naming conventions.
(semantic-submode-list, semantic-default-submodes): New vars.
(semantic-mode): New mode.
(semantic-parser-working-message): Add ellipses to parse message.

* cedet/semantic/bovine/c.el:
* cedet/semantic/bovine/make.el:
* cedet/semantic/bovine/scm.el:
* cedet/semantic/wisent/java-tags.el:
* cedet/semantic/wisent/javascript.el: Don't set hooks directly.
This is now done in semantic-mode.

* cedet/semantic/decorate/mode.el (global-semantic-decoration-mode):
Autoload.

* cedet/srecode/compile.el:
* cedet/srecode/insert.el:
* cedet/srecode/mode.el: Fix require statements.
2009-09-21 02:14:58 +00:00
Chong Yidong
4d902e6f13 lisp/cedet/srecode.el:
lisp/cedet/srecode/*.el:
test/cedet/srecode-tests.el: New files

lisp/files.el (auto-mode-alist): Use srecode-template-mode for .srt files.
lisp/cedet/semantic/bovine/scm.el: Add local vars section for autoloading.
2009-09-20 21:06:41 +00:00
Chong Yidong
acc332318e * cedet/ede.el, cedet/ede/*.el: New files.
* cedet/cedet.el: Require ede.

* cedet/semantic/symref/filter.el (semantic-symref-hits-in-region):
  Require semantic/idle.
2009-09-20 15:06:05 +00:00
Chong Yidong
00999a2ef0 * files.el (auto-mode-alist): Use emacs-lisp-mode for Project.ede.
* cedet/semantic/bovine/gcc.el (semantic-gcc-test-output-parser)
(semantic-gcc-test-output-parser-this-machine):
* cedet/semantic/symref/filter.el (semantic-symref-test-count-hits-in-tag):
* cedet/semantic/db-global.el (semanticdb-test-gnu-global):
* cedet/semantic/tag-write.el (semantic-tag-write-test)
(semantic-tag-write-list-test):
* cedet/semantic/lex-spp.el (semantic-lex-spp-write-test)
(semantic-lex-spp-write-utest):
* cedet/semantic/lex.el (semantic-lex-test-region)
(semantic-lex-test-full-depth):
* cedet/semantic/idle.el (semantic-idle-pnf-test):
* cedet/semantic/fw.el (semantic-test-data-cache)
(semantic-test-throw-on-input):
* cedet/semantic/format.el (semantic-test-all-format-tag-functions):
* cedet/semantic/complete.el (semantic-complete-test):
* cedet/semantic/db-ebrowse.el (semanticdb-ebrowse-run-tests)
(semanticdb-ebrowse-dump): Test functions moved to
semantic-tests.el in the test/ directory.

* cedet/semantic/db-ref.el (semanticdb-ref-test): Doc fix.
2009-09-20 03:44:02 +00:00
Chong Yidong
1eac105a70 Synch to Eric M. Ludlam's upstream CEDET repository.
* cedet/semantic/db.el (semanticdb-get-buffer): Wrap find-file in
save-match-data.

* cedet/semantic/db-global.el (semanticdb-test-gnu-global): Wrap
find-file in save-match-data.

* cedet/semantic/util.el (semantic-file-tag-table)
(semantic-recursive-find-nonterminal-by-name): Wrap find-file in
save-match-data.

* cedet/semantic/tag.el (semantic-tag-buffer): Wrap find-file in
save-match-data.

* cedet/semantic/tag-file.el (semantic-go-to-tag): Wrap the "goto"
part with save-match-data.

* cedet/semantic/lex-spp.el (semantic-lex-spp-lex-text-string):
Save match data around calling the major mode to enable.

* cedet/semantic/format.el (semantic-format-tag-short-doc-default):
Wrap find-file in save-match-data.

* cedet/semantic/fw.el (semantic-find-file-noselect): Wrap
find-file in save-match-data
2009-09-19 17:25:30 +00:00
Chong Yidong
5c5bbb19dc * cedet/semantic/tag-write.el (semantic-tag-write-list-slot-value):
Autoload.
2009-09-13 16:18:01 +00:00
Chong Yidong
00676d68f4 * cedet/semantic/analyze/fcn.el (semantic-analyze-dereference-metatype-1)
(semantic-analyze-type): Require semantic/scope.
(semantic-analyze-select-best-tag): Require semantic/db-typecache.
(semantic-analyze-dereference-metatype): Move up to avoid compiler warning.

* cedet/semantic/analyze.el (semantic-adebug-analyze): Require data-debug.
2009-09-13 16:12:23 +00:00
Chong Yidong
a964f5e552 Synch to Eric M. Ludlam's upstream CEDET repository.
* cedet/semantic/wisent/java-tags.el:
* cedet/semantic/wisent/javat-wy.el: New files.

* cedet/semantic/wisent/java.el:
* cedet/semantic/wisent/java-wy.el: Files removed.

* cedet/semantic/java.el (semantic-java-prototype-function)
(semantic-java-prototype-variable, semantic-java-prototype-type):
Doc fix
(java-mode::semantic-format-tag-prototype): Renamed from
semantic-format-prototype-tag, which didn't match the overloadable
function.

* cedet/semantic/bovine/c.el (semantic-c-dereference-namespace-alias):
Deal correctly with nested namespaces.  Make sure type actually
exists in original namespace.

* cedet/semantic/lex-spp.el (semantic-lex-spp-hack-depth): New.
(semantic-lex-spp-lex-text-string): Use above to enable recursion.

* cedet/semantic/format.el: Whitespace cleanup.
(semantic-test-all-format-tag-functions): Move to end.
(semantic-format-tag-prototype, semantic-format-tag-name)
(semantic-format-tag-name-default): Revert to original upstream
positions.

* cedet/semantic/elp.el: File removed.

* cedet/semantic/analyze.el (semantic-adebug-analyze): New
function, moved here from semantic/adebug.

* cedet/semantic/adebug.el: Declare external semanticdb functions.
(semantic-adebug-analyze, semantic-adebug-edebug-expr): Deleted.

* emacs-lisp/eieio.el (eieio-unbound): Default value is now robust
to recompile.

* emacs-lisp/eieio-datadebug.el: Add eieio objects to the list of
data debug things to recognize.

* emacs-lisp/eieio-comp.el: Synch to upstream.

* cedet/data-debug.el: Don't require eieio and semantic/tag.
If eieio is loaded, require eieio-datadebug.
(data-debug-insert-ring-button): Do not be specific about the ring
contents.
(data-debug-thing-alist): Remove eieio and semantic specific
entries.
(data-debug-add-specialized-thing): New function.

* cedet/cedet.el: Update commentary.

* cedet/cedet-edebug.el: Require edebug and debug.
2009-09-13 15:58:30 +00:00
Chong Yidong
0a3b3f9e13 lisp/cedet/semantic/scope.el (semantic-analyze-show): Fix require. 2009-09-11 01:17:46 +00:00
Chong Yidong
2182c2cca5 lisp/cedet/semantic/symref.el: Revert last change.
lisp/cedet/semantic/symref/cscope.el:
lisp/cedet/semantic/symref/global.el:
lisp/cedet/semantic/symref/grep.el:
lisp/cedet/semantic/symref/idutils.el: Add local vars for autoloading.
Autoload tool classes.
2009-09-07 18:00:19 +00:00
Chong Yidong
dac49f4ee9 lisp/cedet/semantic/db-file.el: Add local vars for autoloading.
(semanticdb-project-database-file): Autoload.
2009-09-07 17:59:16 +00:00
Chong Yidong
4fd27ea52b lisp/cedet/semantic/db.el: Revert last change. 2009-09-07 17:54:28 +00:00
Chong Yidong
ccd7dc02cc lisp/cedet/semantic/db-typecache.el (semanticdb-typecache)
(semanticdb-database-typecache): Autoload classes.
2009-09-07 17:54:07 +00:00