1. 02 May, 2010 1 commit
    • Stefan Monnier's avatar
      Use define-minor-mode in CEDET where applicable. · cb7f3653
      Stefan Monnier authored
      * 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.
      cb7f3653
  2. 13 Jan, 2010 1 commit
  3. 22 Nov, 2009 1 commit
    • Chong Yidong's avatar
      * cedet/srecode/map.el (srecode-get-maps): · 2054a44c
      Chong Yidong authored
      * 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.
      2054a44c
  4. 03 Nov, 2009 1 commit
    • Stefan Monnier's avatar
      * emacs-lisp/autoload.el (generated-autoload-feature): Remove. · fae4e5b9
      Stefan Monnier authored
      (autoload-rubric): Don't use any more.
      * cedet/semantic/fw.el (semantic/loaddefs):
      * cedet/srecode.el (srecode/loaddefs):
      * cedet/ede.el (ede/loaddefs): Load rather than require.
      * lisp/cedet/ede/cpp-root.el:
      * lisp/cedet/ede/emacs.el:
      * lisp/cedet/ede/files.el:
      * lisp/cedet/ede/linux.el:
      * lisp/cedet/ede/locate.el:
      * lisp/cedet/ede/make.el:
      * lisp/cedet/ede/shell.el:
      * lisp/cedet/ede/speedbar.el:
      * lisp/cedet/ede/system.el:
      * lisp/cedet/ede/util.el:
      * lisp/cedet/semantic/analyze.el:
      * lisp/cedet/semantic/bovine.el:
      * lisp/cedet/semantic/complete.el:
      * lisp/cedet/semantic/ctxt.el:
      * lisp/cedet/semantic/db-file.el:
      * lisp/cedet/semantic/db-find.el:
      * lisp/cedet/semantic/db-global.el:
      * lisp/cedet/semantic/db-mode.el:
      * lisp/cedet/semantic/db-typecache.el:
      * lisp/cedet/semantic/db.el:
      * lisp/cedet/semantic/debug.el:
      * lisp/cedet/semantic/dep.el:
      * lisp/cedet/semantic/doc.el:
      * lisp/cedet/semantic/edit.el:
      * lisp/cedet/semantic/find.el:
      * lisp/cedet/semantic/format.el:
      * lisp/cedet/semantic/html.el:
      * lisp/cedet/semantic/ia-sb.el:
      * lisp/cedet/semantic/ia.el:
      * lisp/cedet/semantic/idle.el:
      * lisp/cedet/semantic/lex-spp.el:
      * lisp/cedet/semantic/lex.el:
      * lisp/cedet/semantic/mru-bookmark.el:
      * lisp/cedet/semantic/scope.el:
      * lisp/cedet/semantic/senator.el:
      * lisp/cedet/semantic/sort.el:
      * lisp/cedet/semantic/symref.el:
      * lisp/cedet/semantic/tag-file.el:
      * lisp/cedet/semantic/tag-ls.el:
      * lisp/cedet/semantic/tag-write.el:
      * lisp/cedet/semantic/tag.el:
      * lisp/cedet/semantic/util-modes.el:
      * lisp/cedet/semantic/analyze/complete.el:
      * lisp/cedet/semantic/analyze/refs.el:
      * lisp/cedet/semantic/bovine/c.el:
      * lisp/cedet/semantic/bovine/gcc.el:
      * lisp/cedet/semantic/bovine/make.el:
      * lisp/cedet/semantic/bovine/scm.el:
      * lisp/cedet/semantic/decorate/include.el:
      * lisp/cedet/semantic/decorate/mode.el:
      * lisp/cedet/semantic/symref/cscope.el:
      * lisp/cedet/semantic/symref/global.el:
      * lisp/cedet/semantic/symref/grep.el:
      * lisp/cedet/semantic/symref/idutils.el:
      * lisp/cedet/semantic/symref/list.el:
      * lisp/cedet/semantic/wisent/java-tags.el:
      * lisp/cedet/semantic/wisent/javascript.el:
      * lisp/cedet/srecode/compile.el:
      * lisp/cedet/srecode/cpp.el:
      * lisp/cedet/srecode/document.el:
      * lisp/cedet/srecode/el.el:
      * lisp/cedet/srecode/expandproto.el:
      * lisp/cedet/srecode/getset.el:
      * lisp/cedet/srecode/insert.el:
      * lisp/cedet/srecode/java.el:
      * lisp/cedet/srecode/map.el:
      * lisp/cedet/srecode/mode.el:
      * lisp/cedet/srecode/template.el:
      * lisp/cedet/srecode/texi.el: Remove the file-local setting of
      generated-autoload-feature.
      fae4e5b9
  5. 28 Oct, 2009 1 commit
    • Stefan Monnier's avatar
      * cedet/mode-local.el (make-obsolete-overload): Add `when' argument. · 5a916e35
      Stefan Monnier authored
      (overload-docstring-extension): Use that info.
      * cedet/semantic/fw.el (semantic-alias-obsolete): Pass the `when' info.
      * cedet/semantic/idle.el (semantic-eldoc-current-symbol-info):
      * cedet/semantic/tag-ls.el (semantic-nonterminal-protection)
      (semantic-nonterminal-abstract, semantic-nonterminal-leaf)
      (semantic-nonterminal-full-name): Add the new `when' info.
      * cedet/semantic/decorate/mode.el (semantic/decorate): Require CL for `assert'.
      5a916e35
  6. 25 Oct, 2009 1 commit
    • Stefan Monnier's avatar
      * cedet/semantic/fw.el (semantic-alias-obsolete) · eefa91db
      Stefan Monnier authored
      (semantic-varalias-obsolete): Make the `when' arg mandatory.
      (define-mode-overload-implementation):
      * cedet/semantic/decorate/mode.el (semantic-decorate-pending-decoration-hooks):
      * cedet/semantic/wisent.el (wisent-lex-make-token-table):
      * cedet/semantic/util.el (semantic-file-token-stream)
      (semantic-something-to-stream):
      * cedet/semantic/tag.el (semantic-tag-make-assoc-list)
      (semantic-expand-nonterminal):
      * cedet/semantic/tag-file.el (semantic-find-nonterminal)
      (semantic-find-dependency, semantic-find-nonterminal)
      (semantic-find-dependency):
      * cedet/semantic/lex.el (semantic-flex-start, semantic-flex-end)
      (semantic-flex-text, semantic-flex-make-keyword-table)
      (semantic-flex-keyword-p, semantic-flex-keyword-put)
      (semantic-flex-keyword-get, semantic-flex-map-keywords)
      (semantic-flex-keywords, semantic-flex-buffer, semantic-flex-list):
      * cedet/semantic/java.el (semantic-java-prototype-nonterminal):
      * cedet/semantic/idle.el (semantic-before-idle-scheduler-reparse-hooks)
      (semantic-after-idle-scheduler-reparse-hooks):
      * cedet/semantic/edit.el (semantic-edits-incremental-reparse-failed-hooks):
      * cedet/semantic/db-mode.el (semanticdb-mode-hooks):
      * cedet/semantic.el (semantic-toplevel-bovine-table)
      (semantic-toplevel-bovine-cache)
      (semantic-before-toplevel-bovination-hook, semantic-init-hooks)
      (semantic-init-mode-hooks, semantic-init-db-hooks)
      (semantic-bovination-working-type): Provide the `when' arg.
      eefa91db
  7. 02 Oct, 2009 1 commit
  8. 29 Sep, 2009 1 commit
  9. 26 Sep, 2009 2 commits
    • Chong Yidong's avatar
      1ac9ebc8
    • Chong Yidong's avatar
      * cedet/semantic/lex.el (semantic-lex-reset-hooks): Doc fix. · 29e1a603
      Chong Yidong authored
      * 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.
      29e1a603
  10. 21 Sep, 2009 1 commit
    • Chong Yidong's avatar
      * menu-bar.el: Remove ediff-misc from Tools menu. · b82525f2
      Chong Yidong authored
      * 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.
      b82525f2
  11. 05 Sep, 2009 1 commit