Mercurial > emacs
comparison lisp/cedet/semantic/debug.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 | 6ccad1511df1 |
children | 108a3a6d8be0 |
comparison
equal
deleted
inserted
replaced
104512:aa2a07e5db2f | 104513:a6a812dd2d88 |
---|---|
317 ;; Use our map in the source buffer also | 317 ;; Use our map in the source buffer also |
318 (use-local-map semantic-debug-mode-map) | 318 (use-local-map semantic-debug-mode-map) |
319 ;; Make the buffer read only | 319 ;; Make the buffer read only |
320 (toggle-read-only 1) | 320 (toggle-read-only 1) |
321 ;; Hooks | 321 ;; Hooks |
322 (run-hooks 'semantic-debug-mode-hooks) | 322 (run-hooks 'semantic-debug-mode-hook) |
323 ) | 323 ) |
324 ;; Restore old mode information | 324 ;; Restore old mode information |
325 (save-excursion | 325 (save-excursion |
326 (set-buffer | 326 (set-buffer |
327 (oref semantic-debug-current-interface parser-buffer)) | 327 (oref semantic-debug-current-interface parser-buffer)) |
332 (set-buffer | 332 (set-buffer |
333 (oref semantic-debug-current-interface source-buffer)) | 333 (oref semantic-debug-current-interface source-buffer)) |
334 (use-local-map | 334 (use-local-map |
335 (oref semantic-debug-current-interface source-local-map)) | 335 (oref semantic-debug-current-interface source-local-map)) |
336 ) | 336 ) |
337 (run-hooks 'semantic-debug-exit-hooks) | 337 (run-hooks 'semantic-debug-exit-hook) |
338 ))) | 338 ))) |
339 | 339 |
340 (defun semantic-debug () | 340 (defun semantic-debug () |
341 "Parse the current buffer and run in debug mode." | 341 "Parse the current buffer and run in debug mode." |
342 (interactive) | 342 (interactive) |