Commit graph

233 commits

Author SHA1 Message Date
Andreas Schwab
639b2760f1 Merge from emacs-23 2010-06-10 00:08:50 +02:00
Eric M. Ludlam
988b91ce8f Fix to semantic-lex-spp-table-write-slot-value (Bug#6324).
* cedet/semantic/lex-spp.el
(semantic-lex-spp-table-write-slot-value): Instead of erroring on
invalid values during save, just save a nil (Bug#6324).
2010-06-03 13:17:50 -04:00
Stefan Monnier
fd67a7000e Merge from emacs-23 2010-05-31 22:34:49 -04:00
Jonathan Marchand
9b937f3761 * lisp/cedet/ede/cpp-root.el (ede-set-project-variables): Fix feature name.
Fixes: debbugs:6231
2010-05-31 16:26:56 -04:00
Stefan Monnier
672eb71041 Use a mode-line spec rather than a static string in Semantic.
* cedet/semantic/util-modes.el:
(semantic-minor-modes-format): New var to replace...
(semantic-minor-modes-status): Remove.
(semantic-mode-line-update): Construct a mode-line spec rather than
a static string so that mouse buttons can be used on individual minor
modes and so that semantic-mode-line-update only needs to be called
when global settings are changed.
(semantic-add-minor-mode, semantic-toggle-minor-mode-globally):
Call semantic-mode-line-update.
(semantic-toggle-minor-mode-globally): Don't assume mode is on
minor-mode-alist, check semantic-minor-mode-alist as well.
(semantic-stickyfunc-mode, semantic-show-parser-state-auto-marker)
(semantic-show-parser-state-marker, semantic-show-parser-state-mode)
(semantic-show-unmatched-syntax-mode, semantic-highlight-edits-mode):
* cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode):
* cedet/semantic/idle.el (semantic-idle-scheduler-mode)
(define-semantic-idle-service, semantic-idle-summary-mode):
* cedet/semantic/decorate/mode.el (semantic-decoration-mode):
Don't call semantic-mode-line-update any more.
2010-05-02 01:06:53 -04:00
Stefan Monnier
cb7f3653c8 Use define-minor-mode in CEDET where applicable.
* cedet/srecode/mode.el (srecode-minor-mode,global-srecode-minor-mode):
Use define-minor-mode.

* cedet/semantic/util-modes.el (semantic-add-minor-mode):
Remove unused arg `keymap' and code redundant with define-minor-mode.
(semantic-toggle-minor-mode-globally): Only handle arg -1 and 1.
(semantic-stickyfunc-mode, global-semantic-show-unmatched-syntax-mode)
(semantic-highlight-func-mode, global-semantic-show-parser-state-mode)
(global-semantic-highlight-edits-mode, semantic-highlight-edits-mode)
(semantic-show-unmatched-syntax-mode, semantic-show-parser-state-mode)
(global-semantic-stickyfunc-mode, global-semantic-highlight-func-mode):
Use define-minor-mode.
(semantic-stickyfunc-mode-setup, semantic-highlight-edits-mode-setup)
(semantic-show-unmatched-syntax-mode-setup)
(semantic-show-parser-state-mode-setup)
(semantic-highlight-func-mode-setup): Inline into sole caller.

* cedet/semantic/mru-bookmark.el (global-semantic-mru-bookmark-mode)
(semantic-mru-bookmark-mode): Use define-minor-mode.
(semantic-mru-bookmark-mode-setup): Inline into sole caller.

* cedet/semantic/idle.el (define-semantic-idle-service):
Use define-minor-mode and inline setup function into its sole caller.
(semantic-idle-scheduler-mode-setup)
(semantic-idle-summary-mode-setup): Inline into sole caller.
(global-semantic-idle-scheduler-mode, semantic-idle-scheduler-mode):
Use define-minor-mode.

* cedet/semantic/decorate/mode.el (global-semantic-decoration-mode)
(semantic-decoration-mode): Use define-minor-mode.
(semantic-decoration-mode-setup): Inline into sole caller.

* cedet/ede/dired.el (ede-dired-minor-mode): Initialize in declaration.
(ede-dired-minor-mode): Use define-minor-mode and derived-mode-p.
(ede-dired-add-to-target): Use dolist.
2010-05-01 23:38:19 -04:00
Chong Yidong
3a07ffce2f * minibuffer.el (tags-completion-at-point-function): New function.
(completion-at-point-functions): Use it.

* cedet/semantic.el (semantic-completion-at-point-function): New function.
(semantic-mode): Use semantic-completion-at-point-function for
completion-at-point-functions instead.

* progmodes/etags.el (complete-tag): Revert last change.
2010-04-29 11:32:11 -04:00
Chong Yidong
48111a8571 Unify complete-symbol with completion-at-point.
* bindings.el (complete-symbol): Move into minibuffer.el.

* minibuffer.el (complete-tag): Move from etags.el.  If tags
completion cannot be performed, return nil instead of signalling
an error.
(completion-at-point): Make it an alias for complete-symbol.
(complete-symbol): Move from bindings.el, and replace with the
body of completion-at-point.

* progmodes/etags.el (complete-tag): Move to minibuffer.el.

* cedet/semantic.el (semantic-mode): When enabled, add
semantic-ia-complete-symbol to completion-at-point-functions.

* cedet/semantic/ia.el (semantic-ia-complete-symbol): Return nil
if Semantic is not active.
2010-04-28 15:04:16 -04:00
Stefan Monnier
6e104790e7 Merge from emacs-23 2010-04-19 11:07:52 -04:00
Chong Yidong
137327efbd Bugfix for ede-proj-makefile-insert-variables.
* cedet/ede/pmake.el (ede-proj-makefile-insert-variables): Don't
destroy list before using it.
2010-04-18 17:40:10 -04:00
Stefan Monnier
2912322b80 Merge from emacs-23 2010-04-02 21:54:24 -04:00
Chong Yidong
d86d8ea85a Bump version to 23.1.95. 2010-04-02 20:42:10 -04:00
Juanma Barranquero
e4b204d75f Fix typos in semantic/imenu.el.
* cedet/semantic/imenu.el (semantic-imenu-bucketize-type-members)
  (semantic-create-imenu-directory-index): Fix typos in docstrings.
  (semantic-imenu-goto-function): Reflow docstring.
2010-04-02 04:25:19 +02:00
Stefan Monnier
e867cb5d30 Merge from `emacs-23'. 2010-03-24 14:02:56 -04:00
Glenn Morris
7bbe8d5a11 * cedet/ede/project-am.el (ede-shell-run-something): Declare. 2010-03-23 20:53:32 -07:00
Glenn Morris
1d94ebb00c * cedet/semantic/bovine/c.el (semantic-c-describe-environment):
Consistently check ede-object is bound throughout.
2010-03-23 20:19:15 -07:00
Juanma Barranquero
c6f3804c03 Fix typos.
* faces.el (set-face-attribute): Fix typo in docstring.
  (face-valid-attribute-values): Reflow docstring.

* cedet/srecode/table.el (srecode-template-table): Fix docstring typo.
2010-03-24 01:17:31 +01:00
Glenn Morris
658338ef72 * cedet/semantic/imenu.el: Fix typo in copyright header. 2010-03-13 11:55:44 -08:00
Chong Yidong
6408fd427b * cedet/semantic/imenu.el: New file from the CEDET repository (Bug#5412). 2010-03-13 10:49:54 -05:00
Glenn Morris
d40a757070 Update some cedet template copyrights to GPLv3+.
* etc/srecode/default.srt (COPYRIGHT):
* lisp/cedet/semantic/grammar.el (semantic-grammar-header-template):
Update template copyright to GPLv3+.
2010-03-05 19:06:37 -08:00
Chong Yidong
de3a1fe935 Fix more save-excursion warnings.
* textmodes/reftex-toc.el (reftex-toc-promote-prepare):
* emacs-lisp/elint.el (elint-add-required-env):
* cedet/semantic/db-find.el (semanticdb-find-translate-path-brutish-default):
* cedet/ede/make.el (ede-make-check-version):
* calendar/icalendar.el (icalendar--add-diary-entry):
* calc/calcalg2.el (math-tracing-integral): Use with-current-buffer instead of save-excursion.
2010-02-27 20:22:44 -05:00
Chong Yidong
6583ba0ea5 * javascript.el (wisent-javascript-jv-expand-tag): Avoid c(ad)ddr
and use c(ad)r of cddr (Bug#5640).
2010-02-24 10:12:17 -05:00
Chong Yidong
ff90f4b003 Minor tweaks to custom groups.
* cus-edit.el (hardware): Doc fix.

* man.el (man): Add to external custom group.

* delim-col.el (columns): Move to wp custom group.

* doc-view.el (doc-view): Add to data custom group.

* cedet/data-debug.el (data-debug): Move to extensions group.

* cedet/ede.el (ede):
* cedet/srecode.el (srecode):
* cedet/semantic.el (semantic): Put in tools and extensions group.

* nxml/nxml-mode.el (nxml-faces): Remove from font-lock-faces group.
2010-02-16 09:35:45 -05:00
Juanma Barranquero
737b5223e1 Fix typos in comments. 2010-02-14 18:32:16 +01:00
Juanma Barranquero
fa5f7c5f63 Fix typos in docstrings.
* outline.el (outline-head-from-level):
* simple.el (with-wrapper-hook):
* cedet/ede.el (ede-run-target, project-delete-target)
  (project-dist-files, ede-name, ede-documentation, ede-parent-project)
  (ede-adebug-project, ede-adebug-project-parent)
  (ede-adebug-project-root):
* emacs-lisp/elint.el (elint-extra-errors, elint-current-buffer)
  (elint-defun, elint-buffer-env, elint-top-form-logged)
  (elint-unbound-variable):
* textmodes/reftex-toc.el (reftex-toc-newhead-from-alist):
2010-02-14 18:28:10 +01:00
Juanma Barranquero
db9e401b3b Fix typos in docstrings, error messages, etc. 2010-01-18 05:39:40 +01:00
Juanma Barranquero
33972e8014 Fix typos in comments. 2010-01-18 04:58:35 +01:00
Glenn Morris
44e82a0bd6 (semantic-idle-work-for-one-buffer): Doc fix. 2010-01-16 18:54:35 -08:00
Juanma Barranquero
4963739e1d Fix typos in docstrings. 2010-01-17 03:25:53 +01:00
Juanma Barranquero
66aa4eb37d Fix typos in comments. 2010-01-17 03:24:22 +01:00
Mario Lang
045b9da787 Mario Lang <mlang@delysid.org>: Remove some duplicated words.
* cedet/ede/cpp-root.el (ede-cpp-root-project):
* cedet/ede/files.el (ede-expand-filename):
* cedet/ede/simple.el (ede-simple-project):
* cedet/semantic/complete.el (semantic-complete-read-tag-engine)
(semantic-complete-inline-tag-engine):
* cedet/semantic/db-el.el (semanticdb-equivalent-mode):
* cedet/semantic/db-global.el (semanticdb-equivalent-mode):
* cedet/semantic/db-javascript.el (semanticdb-equivalent-mode):
* cedet/semantic/db.el (semanticdb-equivalent-mode):
* cedet/semantic/decorate/include.el (semantic-decoration-unknown-include-describe):
* cedet/semantic/idle.el (semantic-idle-work-for-one-buffer):
* emacs-lisp/chart.el (chart-translate-namezone):
* textmodes/artist.el (artist-compute-popup-menu-table):
Remove duplicated words in doc-strings.

* srecode/doc-cpp.srt, srecode/doc-default.srt:
* srecode/doc-java.srt: Remove duplicated words.

* ede.texi (ede-target):
* org.texi (Refiling notes): Remove duplicated words.
2010-01-15 18:51:50 -08:00
Juanma Barranquero
d1f18ec092 Fix typos in docstrings. 2010-01-14 19:59:31 +01:00
Juanma Barranquero
5a89f0a793 Fix typos in comments. 2010-01-14 19:37:23 +01:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Juanma Barranquero
2f27e6d43e * cedet/data-debug.el (data-debug): Fix customization group reference. 2010-01-12 05:58:01 +01:00
Juanma Barranquero
91abaf51b3 Fix typos in CEDET docstrings.
* cedet/semantic/analyze.el (semantic-analyze-push-error)
  (semantic-analyze-context, semantic-analyze-context-assignment)
  (semantic-analyze-find-tag-sequence, semantic-analyze-find-tag):
* cedet/semantic/java.el (java-mode, semantic-tag-include-filename)
  (semantic-java-doc-keywords-map):
* cedet/semantic/bovine/c.el (c-mode, semantic-c-member-of-autocast)
  (semantic-lex-c-nested-namespace-ignore-second, semantic-parse-region)
  (semantic-c-parse-lexical-token, semantic-c-debug-mode-init-pch)
  (semantic-c-classname, semantic-format-tag-uml-prototype)
  (semantic-c-dereference-namespace, semantic-analyze-type-constants):
* cedet/semantic/bovine/el.el (semantic-elisp-form-to-doc-string)
  (semantic-emacs-lisp-obsoleted-doc, semantic-up-context)
  (semantic-get-local-variables, semantic-end-of-command)
  (semantic-beginning-of-command, semantic-ctxt-current-class-list)
  (lisp-mode):
* cedet/semantic/bovine/make.el (makefile-mode):
* cedet/semantic/wisent/python.el (wisent-python-string-re)
  (wisent-python-implicit-line-joining-p, wisent-python-forward-string)
  (wisent-python-lex-beginning-of-line, wisent-python-lex-end-of-line)
  (semantic-lex, semantic-get-local-variables, python-mode):
* cedet/semantic/wisent/python-wy.el (wisent-python-wy--keyword-table):
* cedet/srecode/extract.el (srecode-extract-state-set)
  (srecode-extract-method): Fix typos in docstrings.
2010-01-12 05:51:26 +01:00
Chong Yidong
52bee098ba Add Semantic parsers for Python.
* cedet/semantic.el (semantic-new-buffer-setup-functions): Add python parser.
* cedet/semantic/wisent/python-wy.el, cedet/semantic/wisent/python.el: New files.
2010-01-09 19:38:07 -05:00
Juanma Barranquero
0472835ff2 lisp/*: Fix typos in docstrings and messages. 2010-01-02 02:05:44 +01:00
Chong Yidong
f192624c76 * cedet/semantic/mru-bookmark.el (global-semantic-mru-bookmark-mode)
(semantic-mru-bookmark-mode): Doc fixes.

* cedet/semantic/db.el (semanticdb-cache-get): Use error instead
of assert.
2009-12-14 04:17:00 +00:00
Chong Yidong
bd7705929b Add commentary about how to use Semantic. 2009-12-13 01:55:09 +00:00
Chong Yidong
9a594ee6ea * bindings.el (complete-symbol): Call semantic-ia-complete-symbol if
possible.

* cedet/semantic/ia.el (semantic-ia-complete-symbol): Make argument
optional.
2009-12-05 22:01:00 +00:00
Chong Yidong
1dc5c6f318 * cedet/semantic/bovine/c.el (semantic-c-describe-environment):
Describe project macro symbols.

* cedet/semantic/complete.el (semantic-complete-do-completion):
Don't call semantic-collector-current-exact-match.

* cedet/ede.el (ede-apply-preprocessor-map): Accept lists of
ede-objects as targets.

* cedet/ede/pmake.el (ede-proj-makefile-insert-variables): Output
a target's object list even if compiler vars are already in the
Makefile.

* cedet/ede/emacs.el (ede-preprocessor-map): Add config.h to the
list of headers producing necessary macros.
2009-12-05 19:10:42 +00:00
Glenn Morris
65235b0a38 (global-semantic-idle-scheduler-mode): Move after definition of
global-semantic-idle-tag-highlight-mode.
2009-11-24 02:38:08 +00:00
Chong Yidong
2054a44ca6 * cedet/srecode/map.el (srecode-get-maps):
* cedet/semantic/wisent/wisent.el (wisent-parse-toggle-verbose-flag):
* cedet/semantic/wisent/comp.el (wisent-toggle-verbose-flag):
* cedet/semantic/decorate/mode.el (semantic-decoration-mode)
(semantic-toggle-decoration-style):
* cedet/semantic/decorate/include.el
(semantic-decoration-include-describe)
(semantic-decoration-unknown-include-describe)
(semantic-decoration-unparsed-include-describe)
(semantic-decoration-all-include-summary):
* cedet/semantic/bovine/c.el (semantic-c-debug-mode-init):
* cedet/semantic/analyze/complete.el
(semantic-analyze-possible-completions):
* cedet/semantic/util-modes.el (semantic-highlight-edits-mode)
(semantic-show-unmatched-syntax-mode)
(semantic-show-parser-state-mode, semantic-stickyfunc-mode)
(semantic-highlight-func-mode):
* cedet/semantic/util.el (semantic-describe-buffer):
* cedet/semantic/symref.el (semantic-symref-find-references-by-name)
(semantic-symref-find-tags-by-name)
(semantic-symref-find-tags-by-regexp)
(semantic-symref-find-tags-by-completion)
(semantic-symref-find-file-references-by-name)
(semantic-symref-find-text):
* cedet/semantic/senator.el (senator-copy-tag, senator-kill-tag)
(senator-yank-tag):
* cedet/semantic/scope.el (semantic-calculate-scope):
* cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode):
* cedet/semantic/idle.el (semantic-idle-scheduler-mode)
(define-semantic-idle-service):
* cedet/semantic/complete.el (semantic-complete-analyze-inline)
(semantic-complete-analyze-inline-idle):
* cedet/semantic/analyze.el (semantic-analyze-current-context):
* cedet/mode-local.el (describe-mode-local-bindings)
(describe-mode-local-bindings-in-mode):
* cedet/ede/make.el (ede-make-check-version):
* cedet/ede/locate.el (ede-enable-locate-on-project):
* cedet/cedet-idutils.el (cedet-idutils-expand-filename)
(cedet-idutils-version-check):
* cedet/cedet-global.el (cedet-gnu-global-expand-filename)
(cedet-gnu-global-version-check):
* cedet/cedet-cscope.el (cedet-cscope-expand-filename)
(cedet-cscope-version-check): Use called-interactively-p instead
of interactive-p.
2009-11-22 23:49:13 +00:00
Chong Yidong
e96ec425b5 * cedet/semantic/ia.el (semantic-ia-completion-format-tag-function):
Use semantic-format-tag-prototype.
2009-11-22 23:09:17 +00:00
Chong Yidong
ab2c15d4e2 * cedet/semantic/complete.el (semantic-complete-read-tag-engine)
(semantic-complete-jump-local, semantic-complete-jump): Improve
prompt string.
2009-11-21 20:18:37 +00:00
Chong Yidong
acfad775d2 * cedet/semantic/complete.el (semantic-complete-inline-map): Doc
fix.

* cedet/semantic/idle.el (define-semantic-idle-service)
(semantic-idle-summary-mode, semantic-idle-completions): Doc fix.
2009-11-20 15:11:16 +00:00
Chong Yidong
725bff063e * cedet/cedet.el (cedet-menu-map): Re-order menu items.
* cedet/semantic.el: Enable idle-mode menu items only if
global-semantic-idle-scheduler-mode is enabled.
(semantic-default-submodes): Doc fix.

* cedet/semantic/idle.el (global-semantic-idle-scheduler-mode):
When turning off, disable other idle modes.
2009-11-20 01:35:49 +00:00
Chong Yidong
50d1a4ac3f Remove unneeded declare-function calls. 2009-11-16 15:34:19 +00:00
Chong Yidong
4cf1d7e39c * register.el (jump-to-register, insert-register): Handle Semantic
tags.  From commented-out advice in semantic/senator.el.
2009-11-15 23:54:21 +00:00