Mercurial > emacs
diff lisp/cedet/semantic/edit.el @ 104513:a6a812dd2d88
* 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 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.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 26 Sep 2009 17:47:11 +0000 |
parents | 552b3b560245 |
children | beb4db733a34 |
line wrap: on
line diff
--- a/lisp/cedet/semantic/edit.el Mon Sep 21 19:05:56 2009 +0000 +++ b/lisp/cedet/semantic/edit.el Sat Sep 26 17:47:11 2009 +0000 @@ -62,7 +62,7 @@ ;;; Code: (defvar semantic-after-partial-cache-change-hook nil - "Hooks run after the buffer cache has been updated. + "Normal hook run after the buffer cache has been updated. This hook will run when the cache has been partially reparsed. Partial reparses are incurred when a user edits a buffer, and only the @@ -74,7 +74,7 @@ For language specific hooks, make sure you define this as a local hook.") (defvar semantic-change-hooks nil - "Hooks run when semantic detects a change in a buffer. + "Abnormal hook run when semantic detects a change in a buffer. Each hook function must take three arguments, identical to the common hook `after-change-functions'.") @@ -92,27 +92,27 @@ Not used yet; part of the next generation reparse mechanism.") (defvar semantic-edits-new-change-hooks nil - "Hooks run when a new change is found. + "Abnormal hook run when a new change is found. Functions must take one argument representing an overlay on that change.") (defvar semantic-edits-delete-change-hooks nil - "Hooks run before a change overlay is deleted. + "Abnormal hook run before a change overlay is deleted. Deleted changes occur when multiple changes are merged. Functions must take one argument representing an overlay being deleted.") -(defvar semantic-edits-move-change-hooks nil - "Hooks run after a change overlay is moved. +(defvar semantic-edits-move-change-hook nil + "Abnormal hook run after a change overlay is moved. Changes move when a new change overlaps an old change. The old change will be moved. Functions must take one argument representing an overlay being moved.") (defvar semantic-edits-reparse-change-hooks nil - "Hooks run after a change results in a reparse. + "Abnormal hook run after a change results in a reparse. Functions are called before the overlay is deleted, and after the incremental reparse.") (defvar semantic-edits-incremental-reparse-failed-hooks nil - "Hooks run after the incremental parser fails. + "Abnormal hook run after the incremental parser fails. When this happens, the buffer is marked as needing a full reprase.") (defcustom semantic-edits-verbose-flag nil