Mercurial > emacs
comparison lisp/cedet/semantic/idle.el @ 104447:273e528a9f9b
* emacs-lisp/autoload.el (generated-autoload-load-name): New var.
(autoload-generate-file-autoloads): Use it.
(make-autoload): Handle define-overloadable-function.
* emacs-lisp/lisp-mode.el (define-overloadable-function): Add
doc-string-elt property for define-overloadable-function.
lisp/cedet/semantic/analyze.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/ctxt.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/db.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/db-file.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/db-mode.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/db-typecache.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/doc.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/find.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/format.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/lex.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/sb.el: Require semantic/format.
lisp/cedet/semantic/sort.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/tag.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/tag-file.el: Add generated-autoload-load-name var.
lisp/cedet/semantic/tag-ls.el: Add generated-autoload-load-name var.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 05 Sep 2009 01:00:36 +0000 |
parents | df08b7ab0ba0 |
children | e4842bf0f303 |
comparison
equal
deleted
inserted
replaced
104446:df08b7ab0ba0 | 104447:273e528a9f9b |
---|---|
37 ;; automatically caches the created context, so it is shared amongst | 37 ;; automatically caches the created context, so it is shared amongst |
38 ;; all idle modes that will need it. | 38 ;; all idle modes that will need it. |
39 | 39 |
40 (require 'semantic) | 40 (require 'semantic) |
41 (require 'semantic/ctxt) | 41 (require 'semantic/ctxt) |
42 (require 'semantic/format) | |
42 (require 'semantic/tag) | 43 (require 'semantic/tag) |
43 ;(require 'semantic/util-modes) | 44 ;(require 'semantic/util-modes) |
44 (require 'timer) | 45 (require 'timer) |
45 | 46 |
46 ;; For the semantic-find-tags-by-name macro. | 47 ;; For the semantic-find-tags-by-name macro. |
48 | 49 |
49 (declare-function eldoc-message "eldoc") | 50 (declare-function eldoc-message "eldoc") |
50 (declare-function semantic-analyze-interesting-tag "semantic/analyze") | 51 (declare-function semantic-analyze-interesting-tag "semantic/analyze") |
51 (declare-function semantic-complete-analyze-inline-idle "semantic/complete") | 52 (declare-function semantic-complete-analyze-inline-idle "semantic/complete") |
52 (declare-function semanticdb-deep-find-tags-by-name "semantic/db-find") | 53 (declare-function semanticdb-deep-find-tags-by-name "semantic/db-find") |
53 (declare-function semanticdb-minor-mode-p "semantic/db-mode") | |
54 (declare-function semanticdb-save-all-db-idle "semantic/db") | 54 (declare-function semanticdb-save-all-db-idle "semantic/db") |
55 (declare-function semanticdb-typecache-refresh-for-buffer "semantic/db-typecache") | 55 (declare-function semanticdb-typecache-refresh-for-buffer "semantic/db-typecache") |
56 (declare-function semantic-decorate-flush-pending-decorations | 56 (declare-function semantic-decorate-flush-pending-decorations |
57 "semantic/decorate/mode") | 57 "semantic/decorate/mode") |
58 (declare-function pulse-momentary-highlight-region "pulse") | 58 (declare-function pulse-momentary-highlight-region "pulse") |
364 ;; Force all our include files to get read in so we | 364 ;; Force all our include files to get read in so we |
365 ;; are ready to provide good smart completion and idle | 365 ;; are ready to provide good smart completion and idle |
366 ;; summary information | 366 ;; summary information |
367 (semantic-safe "Idle Work Including Error: %S" | 367 (semantic-safe "Idle Work Including Error: %S" |
368 ;; Get the include related path. | 368 ;; Get the include related path. |
369 (when (and (featurep 'semantic/db) | 369 (when (and (featurep 'semantic/db) (semanticdb-minor-mode-p)) |
370 (require 'semantic/db-mode) | |
371 (semanticdb-minor-mode-p)) | |
372 (require 'semantic/db-find) | 370 (require 'semantic/db-find) |
373 (semanticdb-find-translate-path buffer nil) | 371 (semanticdb-find-translate-path buffer nil) |
374 ) | 372 ) |
375 t) | 373 t) |
376 | 374 |
416 (unless (semantic-idle-work-for-one-buffer (current-buffer)) | 414 (unless (semantic-idle-work-for-one-buffer (current-buffer)) |
417 (push (current-buffer) errbuf))) | 415 (push (current-buffer) errbuf))) |
418 )) | 416 )) |
419 ) | 417 ) |
420 | 418 |
421 (when (and (featurep 'semantic/db) | 419 (when (and (featurep 'semantic/db) (semanticdb-minor-mode-p)) |
422 (require 'semantic/db-mode) | |
423 (semanticdb-minor-mode-p)) | |
424 ;; Save everything. | 420 ;; Save everything. |
425 (semanticdb-save-all-db-idle) | 421 (semanticdb-save-all-db-idle) |
426 | 422 |
427 ;; Parse up files near our active buffer | 423 ;; Parse up files near our active buffer |
428 (when semantic-idle-work-parse-neighboring-files-flag | 424 (when semantic-idle-work-parse-neighboring-files-flag |