(semantic-edits-move-change-hook)
(semantic-edits-reparse-change-hooks)
(semantic-edits-incremental-reparse-failed-hooks): Doc fixes.
+ (semantic-edits-incremental-reparse-failed-hook): Rename from
+ semantic-edits-incremental-reparse-failed-hooks.
+ (semantic-edits-incremental-fail): Use new var name.
* cedet/semantic/debug.el (semantic-debug-mode): Rename hook
symbols.
Functions are called before the overlay is deleted, and after the
incremental reparse.")
-(defvar semantic-edits-incremental-reparse-failed-hooks nil
- "Abnormal hook run after the incremental parser fails.
+(defvar semantic-edits-incremental-reparse-failed-hook nil
+ "Hook run after the incremental parser fails.
When this happens, the buffer is marked as needing a full reprase.")
+(semantic-varalias-obsolete 'semantic-edits-incremental-reparse-failed-hooks
+ 'semantic-edits-incremental-reparse-failed-hook)
+
(defcustom semantic-edits-verbose-flag nil
"Non-nil means the incremental perser is verbose.
If nil, errors are still displayed, but informative messages are not."
(when semantic-edits-verbose-flag
(message "Force full reparse (%s)"
(buffer-name (current-buffer))))
- (run-hooks 'semantic-edits-incremental-reparse-failed-hooks))
+ (run-hooks 'semantic-edits-incremental-reparse-failed-hook))
(defun semantic-edits-incremental-parser ()
"Incrementally reparse the current buffer.
(semantic-make-local-hook 'semantic-edits-new-change-hooks)
(add-hook 'semantic-edits-new-change-hooks
'semantic-show-parser-state-marker nil t)
- (semantic-make-local-hook 'semantic-edits-incremental-reparse-failed-hooks)
- (add-hook 'semantic-edits-incremental-reparse-failed-hooks
+ (semantic-make-local-hook 'semantic-edits-incremental-reparse-failed-hook)
+ (add-hook 'semantic-edits-incremental-reparse-failed-hook
'semantic-show-parser-state-marker nil t)
(semantic-make-local-hook 'semantic-after-partial-cache-change-hook)
(add-hook 'semantic-after-partial-cache-change-hook
;; Remove hooks
(remove-hook 'semantic-edits-new-change-hooks
'semantic-show-parser-state-marker t)
- (remove-hook 'semantic-edits-incremental-reparse-failed-hooks
+ (remove-hook 'semantic-edits-incremental-reparse-failed-hook
'semantic-show-parser-state-marker t)
(remove-hook 'semantic-after-partial-cache-change-hook
'semantic-show-parser-state-marker t)