diff options
| author | Chong Yidong | 2009-09-21 02:14:58 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-09-21 02:14:58 +0000 |
| commit | b82525f29a46897b1583919818d174d6f778e2bd (patch) | |
| tree | 5511f4ab7485018d22b9953c91735bc006c8f6e5 | |
| parent | 826608a5fd403acf8a9ae40884fac604b31b0843 (diff) | |
| download | emacs-b82525f29a46897b1583919818d174d6f778e2bd.tar.gz emacs-b82525f29a46897b1583919818d174d6f778e2bd.zip | |
* menu-bar.el: Remove ediff-misc from Tools menu.
* 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.
| -rw-r--r-- | lisp/ChangeLog | 37 | ||||
| -rw-r--r-- | lisp/cedet/ede/cpp-root.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/ede/pmake.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/semantic.el | 132 | ||||
| -rw-r--r-- | lisp/cedet/semantic/bovine/c.el | 5 | ||||
| -rw-r--r-- | lisp/cedet/semantic/bovine/make.el | 3 | ||||
| -rw-r--r-- | lisp/cedet/semantic/bovine/scm.el | 3 | ||||
| -rw-r--r-- | lisp/cedet/semantic/decorate/mode.el | 8 | ||||
| -rw-r--r-- | lisp/cedet/semantic/html.el | 3 | ||||
| -rw-r--r-- | lisp/cedet/semantic/wisent/java-tags.el | 3 | ||||
| -rw-r--r-- | lisp/cedet/semantic/wisent/javascript.el | 5 | ||||
| -rw-r--r-- | lisp/cedet/srecode/compile.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/srecode/insert.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/srecode/mode.el | 2 | ||||
| -rw-r--r-- | lisp/ediff-hook.el | 7 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 2 |
16 files changed, 166 insertions, 52 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 200ff032de9..3f4b8f705ae 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,40 @@ | |||
| 1 | 2009-09-21 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * menu-bar.el: Remove ediff-misc from Tools menu. | ||
| 4 | |||
| 5 | * cedet/semantic.el (semantic-init-hook) | ||
| 6 | (semantic-init-mode-hook, semantic-init-db-hook): Rename | ||
| 7 | from *-hooks, to follow hook naming conventions. | ||
| 8 | (semantic-submode-list, semantic-default-submodes): New vars. | ||
| 9 | (semantic-mode): New mode. | ||
| 10 | (semantic-parser-working-message): Add ellipses to parse message. | ||
| 11 | |||
| 12 | * cedet/semantic/bovine/c.el: | ||
| 13 | * cedet/semantic/bovine/make.el: | ||
| 14 | * cedet/semantic/bovine/scm.el: | ||
| 15 | * cedet/semantic/wisent/java-tags.el: | ||
| 16 | * cedet/semantic/wisent/javascript.el: Don't set hooks directly. | ||
| 17 | This is now done in semantic-mode. | ||
| 18 | |||
| 19 | * cedet/semantic/decorate/mode.el (global-semantic-decoration-mode): | ||
| 20 | Autoload. | ||
| 21 | |||
| 22 | * cedet/srecode/compile.el: | ||
| 23 | * cedet/srecode/insert.el: | ||
| 24 | * cedet/srecode/mode.el: Fix require statements. | ||
| 25 | |||
| 1 | 2009-09-20 Chong Yidong <cyd@stupidchicken.com> | 26 | 2009-09-20 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 27 | ||
| 28 | * cedet/semantic/decorate/mode.el (global-semantic-decoration-mode): | ||
| 29 | Autoload. | ||
| 30 | |||
| 31 | * cedet/ede/cpp-root.el (ede-set-project-variables): Fix featurep. | ||
| 32 | |||
| 33 | * cedet/srecode/mode.el (global-srecode-minor-mode): Fix require. | ||
| 34 | |||
| 35 | * cedet/srecode/insert.el (srecode--insert-into-buffer): Fix | ||
| 36 | require. | ||
| 37 | |||
| 3 | * cedet/cedet.el: Require srecode. | 38 | * cedet/cedet.el: Require srecode. |
| 4 | 39 | ||
| 5 | * cedet/ede/system.el: Add local vars for autoloading. | 40 | * cedet/ede/system.el: Add local vars for autoloading. |
| @@ -7,9 +42,11 @@ | |||
| 7 | 42 | ||
| 8 | * cedet/ede/pmake.el (ede-proj-makefile-create): Require | 43 | * cedet/ede/pmake.el (ede-proj-makefile-create): Require |
| 9 | ede/srecode. | 44 | ede/srecode. |
| 45 | (ede-proj-makefile-create): Fix require. | ||
| 10 | 46 | ||
| 11 | * cedet/srecode/compile.el (srecode-compile-split-code) | 47 | * cedet/srecode/compile.el (srecode-compile-split-code) |
| 12 | (srecode-compile-parse-inserter): Fix compiler warning. | 48 | (srecode-compile-parse-inserter): Fix compiler warning. |
| 49 | (srecode-compile-templates): Fix require. | ||
| 13 | 50 | ||
| 14 | 2009-09-20 Chong Yidong <cyd@stupidchicken.com> | 51 | 2009-09-20 Chong Yidong <cyd@stupidchicken.com> |
| 15 | 52 | ||
diff --git a/lisp/cedet/ede/cpp-root.el b/lisp/cedet/ede/cpp-root.el index 02f86d2c856..a922cc15782 100644 --- a/lisp/cedet/ede/cpp-root.el +++ b/lisp/cedet/ede/cpp-root.el | |||
| @@ -467,7 +467,7 @@ This is for project include paths and spp source files." | |||
| 467 | "Set variables local to PROJECT in BUFFER. | 467 | "Set variables local to PROJECT in BUFFER. |
| 468 | Also set up the lexical preprocessor map." | 468 | Also set up the lexical preprocessor map." |
| 469 | (call-next-method) | 469 | (call-next-method) |
| 470 | (when (and (featurep 'semantic-c) (featurep 'semantic-lex-spp)) | 470 | (when (and (featurep 'semantic/c) (featurep 'semantic/lex-spp)) |
| 471 | (setq semantic-lex-spp-project-macro-symbol-obarray | 471 | (setq semantic-lex-spp-project-macro-symbol-obarray |
| 472 | (semantic-lex-make-spp-table (oref project spp-table))) | 472 | (semantic-lex-make-spp-table (oref project spp-table))) |
| 473 | )) | 473 | )) |
diff --git a/lisp/cedet/ede/pmake.el b/lisp/cedet/ede/pmake.el index 302de420543..348bc3e302b 100644 --- a/lisp/cedet/ede/pmake.el +++ b/lisp/cedet/ede/pmake.el | |||
| @@ -204,7 +204,7 @@ MFILENAME is the makefile to generate." | |||
| 204 | ((eq (oref this makefile-type) 'Makefile.in) | 204 | ((eq (oref this makefile-type) 'Makefile.in) |
| 205 | (error "Makefile.in is not supported")) | 205 | (error "Makefile.in is not supported")) |
| 206 | ((eq (oref this makefile-type) 'Makefile.am) | 206 | ((eq (oref this makefile-type) 'Makefile.am) |
| 207 | (require 'ede-pconf) | 207 | (require 'ede/pconf) |
| 208 | ;; Distribution variables | 208 | ;; Distribution variables |
| 209 | (let ((targ (if isdist (oref this targets) mt))) | 209 | (let ((targ (if isdist (oref this targets) mt))) |
| 210 | (ede-compiler-begin-unique | 210 | (ede-compiler-begin-unique |
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el index 2d38103f9ee..5596bda981b 100644 --- a/lisp/cedet/semantic.el +++ b/lisp/cedet/semantic.el | |||
| @@ -255,19 +255,26 @@ setup to use Semantic." | |||
| 255 | :group 'semantic | 255 | :group 'semantic |
| 256 | :type 'hook) | 256 | :type 'hook) |
| 257 | 257 | ||
| 258 | (defvar semantic-init-hooks nil | 258 | (defvar semantic-init-hook nil |
| 259 | "*Hooks run when a buffer is initialized with a parsing table.") | 259 | "Hook run when a buffer is initialized with a parsing table.") |
| 260 | 260 | ||
| 261 | (defvar semantic-init-mode-hooks nil | 261 | (defvar semantic-init-mode-hook nil |
| 262 | "*Hooks run when a buffer of a particular mode is initialized.") | 262 | "Hook run when a buffer of a particular mode is initialized.") |
| 263 | (make-variable-buffer-local 'semantic-init-mode-hooks) | 263 | (make-variable-buffer-local 'semantic-init-mode-hook) |
| 264 | 264 | ||
| 265 | (defvar semantic-init-db-hooks nil | 265 | (defvar semantic-init-db-hook nil |
| 266 | "Hooks run when a buffer is initialized with a parsing table for DBs. | 266 | "Hook run when a buffer is initialized with a parsing table for DBs. |
| 267 | This hook is for database functions which intend to swap in a tag table. | 267 | This hook is for database functions which intend to swap in a tag table. |
| 268 | This guarantees that the DB will go before other modes that require | 268 | This guarantees that the DB will go before other modes that require |
| 269 | a parse of the buffer.") | 269 | a parse of the buffer.") |
| 270 | 270 | ||
| 271 | (define-obsolete-variable-alias 'semantic-init-hooks | ||
| 272 | 'semantic-init-hook "23.2") | ||
| 273 | (define-obsolete-variable-alias 'semantic-init-mode-hooks | ||
| 274 | 'semantic-init-mode-hook "23.2") | ||
| 275 | (define-obsolete-variable-alias 'semantic-init-db-hooks | ||
| 276 | 'semantic-init-db-hook "23.2") | ||
| 277 | |||
| 271 | (defvar semantic-new-buffer-fcn-was-run nil | 278 | (defvar semantic-new-buffer-fcn-was-run nil |
| 272 | "Non nil after `semantic-new-buffer-fcn' has been executed.") | 279 | "Non nil after `semantic-new-buffer-fcn' has been executed.") |
| 273 | (make-variable-buffer-local 'semantic-new-buffer-fcn-was-run) | 280 | (make-variable-buffer-local 'semantic-new-buffer-fcn-was-run) |
| @@ -306,17 +313,11 @@ to use Semantic, and `semantic-init-hook' is run." | |||
| 306 | ;; Force this buffer to have its cache refreshed. | 313 | ;; Force this buffer to have its cache refreshed. |
| 307 | (semantic-clear-toplevel-cache) | 314 | (semantic-clear-toplevel-cache) |
| 308 | ;; Call DB hooks before regular init hooks | 315 | ;; Call DB hooks before regular init hooks |
| 309 | (run-hooks 'semantic-init-db-hooks) | 316 | (run-hooks 'semantic-init-db-hook) |
| 310 | ;; Set up semantic modes | 317 | ;; Set up semantic modes |
| 311 | (run-hooks 'semantic-init-hooks) | 318 | (run-hooks 'semantic-init-hook) |
| 312 | ;; Set up major-mode specific semantic modes | 319 | ;; Set up major-mode specific semantic modes |
| 313 | (run-hooks 'semantic-init-mode-hooks) | 320 | (run-hooks 'semantic-init-mode-hook))) |
| 314 | )) | ||
| 315 | |||
| 316 | (add-hook 'mode-local-init-hook 'semantic-new-buffer-fcn) | ||
| 317 | |||
| 318 | ;; Test the above hook. | ||
| 319 | ;;(add-hook 'semantic-init-hooks (lambda () (message "init for semantic"))) | ||
| 320 | 321 | ||
| 321 | (defun semantic-fetch-tags-fast () | 322 | (defun semantic-fetch-tags-fast () |
| 322 | "For use in a hook. When only a partial reparse is needed, reparse." | 323 | "For use in a hook. When only a partial reparse is needed, reparse." |
| @@ -325,9 +326,6 @@ to use Semantic, and `semantic-init-hook' is run." | |||
| 325 | (semantic-fetch-tags)) | 326 | (semantic-fetch-tags)) |
| 326 | (error nil)) | 327 | (error nil)) |
| 327 | semantic--buffer-cache) | 328 | semantic--buffer-cache) |
| 328 | |||
| 329 | (if (boundp 'eval-defun-hooks) | ||
| 330 | (add-hook 'eval-defun-hooks 'semantic-fetch-tags-fast)) | ||
| 331 | 329 | ||
| 332 | ;;; Parsing Commands | 330 | ;;; Parsing Commands |
| 333 | ;; | 331 | ;; |
| @@ -528,7 +526,7 @@ Bufferse larger than this will display the working progress bar.") | |||
| 528 | If optional argument ARG is non-nil it is appended to the message | 526 | If optional argument ARG is non-nil it is appended to the message |
| 529 | string." | 527 | string." |
| 530 | (if semantic-parser-name | 528 | (if semantic-parser-name |
| 531 | (format "%s/%s" semantic-parser-name (or arg "")) | 529 | (format "%s/%s..." semantic-parser-name (or arg "")) |
| 532 | (format "%s" (or arg "")))) | 530 | (format "%s" (or arg "")))) |
| 533 | 531 | ||
| 534 | ;;; Application Parser Entry Points | 532 | ;;; Application Parser Entry Points |
| @@ -817,10 +815,104 @@ a START and END part." | |||
| 817 | (make-obsolete 'semantic-bovinate-from-nonterminal-full | 815 | (make-obsolete 'semantic-bovinate-from-nonterminal-full |
| 818 | 'semantic-parse-region) | 816 | 'semantic-parse-region) |
| 819 | 817 | ||
| 818 | ;;; User interface | ||
| 819 | |||
| 820 | ;; The `semantic-mode' command, in conjuction with the | ||
| 821 | ;; `semantic-default-submodes' variable, are used to collectively | ||
| 822 | ;; toggle Semantic's various auxilliary minor modes. | ||
| 823 | |||
| 824 | (defvar semantic-load-system-cache-loaded nil | ||
| 825 | "Non nil when the Semantic system caches have been loaded. | ||
| 826 | Prevent this load system from loading files in twice.") | ||
| 827 | |||
| 828 | (defconst semantic-submode-list | ||
| 829 | '(global-semantic-highlight-func-mode | ||
| 830 | global-semantic-decoration-mode | ||
| 831 | global-semantic-stickyfunc-mode | ||
| 832 | global-semantic-idle-completions-mode | ||
| 833 | global-semantic-idle-scheduler-mode | ||
| 834 | global-semanticdb-minor-mode | ||
| 835 | global-semantic-idle-summary-mode | ||
| 836 | global-semantic-mru-bookmark-mode) | ||
| 837 | "List of auxilliary minor modes in the Semantic package.") | ||
| 838 | |||
| 839 | ;;;###autoload | ||
| 840 | (defcustom semantic-default-submodes | ||
| 841 | '(global-semantic-idle-scheduler-mode global-semanticdb-minor-mode) | ||
| 842 | "List of auxilliary Semantic minor modes enabled by `semantic-mode'. | ||
| 843 | The possible elements of this list include the following: | ||
| 844 | |||
| 845 | `semantic-highlight-func-mode' - Highlight the current tag. | ||
| 846 | `semantic-decoration-mode' - Decorate tags based on various attributes. | ||
| 847 | `semantic-stickyfunc-mode' - Track current function in the header-line. | ||
| 848 | `semantic-idle-completions-mode' - Provide smart symbol completion | ||
| 849 | automatically when idle. | ||
| 850 | `semantic-idle-scheduler-mode' - Keep a buffer's parse tree up to date. | ||
| 851 | `semanticdb-minor-mode' - Store tags when a buffer is not in memory. | ||
| 852 | `semantic-idle-summary-mode' - Show a summary for the code at point. | ||
| 853 | `semantic-mru-bookmark-mode' - Provide `switch-to-buffer'-like | ||
| 854 | keybinding for tag names." | ||
| 855 | :group 'semantic | ||
| 856 | :type `(set ,@(mapcar (lambda (c) (list 'const c)) | ||
| 857 | semantic-submode-list))) | ||
| 858 | |||
| 859 | ;;;###autoload | ||
| 860 | (define-minor-mode semantic-mode | ||
| 861 | "Toggle Semantic mode. | ||
| 862 | With ARG, turn Semantic mode on if ARG is positive, off otherwise. | ||
| 863 | |||
| 864 | In Semantic mode, Emacs parses the buffers you visit for their | ||
| 865 | semantic content. This information is used by a variety of | ||
| 866 | auxilliary minor modes, listed in `semantic-default-submodes'; | ||
| 867 | all the minor modes in this list are also enabled when you enable | ||
| 868 | Semantic mode." | ||
| 869 | :group 'semantic | ||
| 870 | (if semantic-mode | ||
| 871 | ;; Turn on Semantic mode | ||
| 872 | (progn | ||
| 873 | (dolist (mode semantic-submode-list) | ||
| 874 | (if (memq mode semantic-default-submodes) | ||
| 875 | (funcall mode 1))) | ||
| 876 | (unless semantic-load-system-cache-loaded | ||
| 877 | (setq semantic-load-system-cache-loaded t) | ||
| 878 | (when (and (boundp 'semanticdb-default-system-save-directory) | ||
| 879 | (stringp semanticdb-default-system-save-directory) | ||
| 880 | (file-exists-p semanticdb-default-system-save-directory)) | ||
| 881 | (semanticdb-load-ebrowse-caches))) | ||
| 882 | (add-hook 'mode-local-init-hook 'semantic-new-buffer-fcn) | ||
| 883 | ;; Add mode-local hooks | ||
| 884 | (add-hook 'javascript-mode-hook 'wisent-javascript-setup-parser) | ||
| 885 | (add-hook 'ecmascript-mode-hook 'wisent-javascript-setup-parser) | ||
| 886 | (add-hook 'java-mode-hook 'wisent-java-default-setup) | ||
| 887 | (add-hook 'scheme-mode-hook 'semantic-default-scheme-setup) | ||
| 888 | (add-hook 'makefile-mode-hook 'semantic-default-make-setup) | ||
| 889 | (add-hook 'c-mode-hook 'semantic-default-c-setup) | ||
| 890 | (add-hook 'c++-mode-hook 'semantic-default-c-setup) | ||
| 891 | (add-hook 'html-mode-hook 'semantic-default-html-setup)) | ||
| 892 | ;; Disable all Semantic features. | ||
| 893 | (remove-hook 'mode-local-init-hook 'semantic-new-buffer-fcn) | ||
| 894 | (remove-hook 'javascript-mode-hook 'wisent-javascript-setup-parser) | ||
| 895 | (remove-hook 'ecmascript-mode-hook 'wisent-javascript-setup-parser) | ||
| 896 | (remove-hook 'java-mode-hook 'wisent-java-default-setup) | ||
| 897 | (remove-hook 'scheme-mode-hook 'semantic-default-scheme-setup) | ||
| 898 | (remove-hook 'makefile-mode-hook 'semantic-default-make-setup) | ||
| 899 | (remove-hook 'c-mode-hook 'semantic-default-c-setup) | ||
| 900 | (remove-hook 'c++-mode-hook 'semantic-default-c-setup) | ||
| 901 | (remove-hook 'html-mode-hook 'semantic-default-html-setup) | ||
| 902 | |||
| 903 | ;; FIXME: handle semanticdb-load-ebrowse-caches | ||
| 904 | |||
| 905 | (dolist (mode semantic-submode-list) | ||
| 906 | (if (and (boundp mode) (eval mode)) | ||
| 907 | (funcall mode -1))))) | ||
| 908 | |||
| 909 | |||
| 820 | (provide 'semantic) | 910 | (provide 'semantic) |
| 821 | 911 | ||
| 822 | ;; Semantic-util is a part of the semantic API. Include it last | 912 | ;; Semantic-util is a part of the semantic API. Include it last |
| 823 | ;; because it depends on semantic. | 913 | ;; because it depends on semantic. |
| 824 | (require 'semantic/util) | 914 | (require 'semantic/util) |
| 825 | 915 | ||
| 916 | ;; (require 'semantic/load) | ||
| 917 | |||
| 826 | ;;; semantic.el ends here | 918 | ;;; semantic.el ends here |
diff --git a/lisp/cedet/semantic/bovine/c.el b/lisp/cedet/semantic/bovine/c.el index 5ab658d6af7..f49d569c43e 100644 --- a/lisp/cedet/semantic/bovine/c.el +++ b/lisp/cedet/semantic/bovine/c.el | |||
| @@ -1629,11 +1629,6 @@ DO NOT return the list of tags encompassing point." | |||
| 1629 | (semantic-c-reset-preprocessor-symbol-map) | 1629 | (semantic-c-reset-preprocessor-symbol-map) |
| 1630 | ) | 1630 | ) |
| 1631 | 1631 | ||
| 1632 | ;;;###autoload | ||
| 1633 | (add-hook 'c-mode-hook 'semantic-default-c-setup) | ||
| 1634 | ;;;###autoload | ||
| 1635 | (add-hook 'c++-mode-hook 'semantic-default-c-setup) | ||
| 1636 | |||
| 1637 | ;;; SETUP QUERY | 1632 | ;;; SETUP QUERY |
| 1638 | ;; | 1633 | ;; |
| 1639 | (defun semantic-c-describe-environment () | 1634 | (defun semantic-c-describe-environment () |
diff --git a/lisp/cedet/semantic/bovine/make.el b/lisp/cedet/semantic/bovine/make.el index 1686ef2aa15..ac7d084a384 100644 --- a/lisp/cedet/semantic/bovine/make.el +++ b/lisp/cedet/semantic/bovine/make.el | |||
| @@ -230,9 +230,6 @@ Uses default implementation, and also gets a list of filenames." | |||
| 230 | (setq semantic-lex-analyzer #'semantic-make-lexer) | 230 | (setq semantic-lex-analyzer #'semantic-make-lexer) |
| 231 | ) | 231 | ) |
| 232 | 232 | ||
| 233 | ;;;###autoload | ||
| 234 | (add-hook 'makefile-mode-hook 'semantic-default-make-setup) | ||
| 235 | |||
| 236 | (provide 'semantic/bovine/make) | 233 | (provide 'semantic/bovine/make) |
| 237 | 234 | ||
| 238 | ;; Local variables: | 235 | ;; Local variables: |
diff --git a/lisp/cedet/semantic/bovine/scm.el b/lisp/cedet/semantic/bovine/scm.el index 3558062d61d..091486cc382 100644 --- a/lisp/cedet/semantic/bovine/scm.el +++ b/lisp/cedet/semantic/bovine/scm.el | |||
| @@ -110,9 +110,6 @@ syntax as specified by the syntax table." | |||
| 110 | (setq semantic-lex-analyzer #'semantic-scheme-lexer) | 110 | (setq semantic-lex-analyzer #'semantic-scheme-lexer) |
| 111 | ) | 111 | ) |
| 112 | 112 | ||
| 113 | ;;;###autoload | ||
| 114 | (add-hook 'scheme-mode-hook 'semantic-default-scheme-setup) | ||
| 115 | |||
| 116 | (provide 'semantic/bovine/scm) | 113 | (provide 'semantic/bovine/scm) |
| 117 | 114 | ||
| 118 | ;; Local variables: | 115 | ;; Local variables: |
diff --git a/lisp/cedet/semantic/decorate/mode.el b/lisp/cedet/semantic/decorate/mode.el index a02d4c388fb..c35df575812 100644 --- a/lisp/cedet/semantic/decorate/mode.el +++ b/lisp/cedet/semantic/decorate/mode.el | |||
| @@ -234,6 +234,7 @@ When this mode is activated, decorations specified by | |||
| 234 | :set (lambda (sym val) | 234 | :set (lambda (sym val) |
| 235 | (global-semantic-decoration-mode (if val 1 -1)))) | 235 | (global-semantic-decoration-mode (if val 1 -1)))) |
| 236 | 236 | ||
| 237 | ;;;###autoload | ||
| 237 | (defun global-semantic-decoration-mode (&optional arg) | 238 | (defun global-semantic-decoration-mode (&optional arg) |
| 238 | "Toggle global use of option `semantic-decoration-mode'. | 239 | "Toggle global use of option `semantic-decoration-mode'. |
| 239 | Decoration mode turns on all active decorations as specified | 240 | Decoration mode turns on all active decorations as specified |
| @@ -558,5 +559,10 @@ Use a primary decoration." | |||
| 558 | 559 | ||
| 559 | (provide 'semantic/decorate/mode) | 560 | (provide 'semantic/decorate/mode) |
| 560 | 561 | ||
| 561 | ;;; semantic/decorate/mode.el ends here | 562 | ;; Local variables: |
| 563 | ;; generated-autoload-file: "../loaddefs.el" | ||
| 564 | ;; generated-autoload-feature: semantic/loaddefs | ||
| 565 | ;; generated-autoload-load-name: "semantic/decorate/mode" | ||
| 566 | ;; End: | ||
| 562 | 567 | ||
| 568 | ;;; semantic/decorate/mode.el ends here | ||
diff --git a/lisp/cedet/semantic/html.el b/lisp/cedet/semantic/html.el index 5ed7908f893..0ce3ed710b0 100644 --- a/lisp/cedet/semantic/html.el +++ b/lisp/cedet/semantic/html.el | |||
| @@ -254,9 +254,6 @@ tag with greater section value than LEVEL is found." | |||
| 254 | t) | 254 | t) |
| 255 | ) | 255 | ) |
| 256 | 256 | ||
| 257 | ;;;###autoload | ||
| 258 | (add-hook 'html-mode-hook 'semantic-default-html-setup) | ||
| 259 | |||
| 260 | (define-child-mode html-helper-mode html-mode | 257 | (define-child-mode html-helper-mode html-mode |
| 261 | "`html-helper-mode' needs the same semantic support as `html-mode'.") | 258 | "`html-helper-mode' needs the same semantic support as `html-mode'.") |
| 262 | 259 | ||
diff --git a/lisp/cedet/semantic/wisent/java-tags.el b/lisp/cedet/semantic/wisent/java-tags.el index ff5e0634d96..5a9d8c398b4 100644 --- a/lisp/cedet/semantic/wisent/java-tags.el +++ b/lisp/cedet/semantic/wisent/java-tags.el | |||
| @@ -111,9 +111,6 @@ Use the alternate LALR(1) parser." | |||
| 111 | ;; Setup javadoc stuff | 111 | ;; Setup javadoc stuff |
| 112 | (semantic-java-doc-setup)) | 112 | (semantic-java-doc-setup)) |
| 113 | 113 | ||
| 114 | ;;;###autoload | ||
| 115 | (add-hook 'java-mode-hook 'wisent-java-default-setup) | ||
| 116 | |||
| 117 | (provide 'semantic/wisent/java-tags) | 114 | (provide 'semantic/wisent/java-tags) |
| 118 | 115 | ||
| 119 | ;; Local variables: | 116 | ;; Local variables: |
diff --git a/lisp/cedet/semantic/wisent/javascript.el b/lisp/cedet/semantic/wisent/javascript.el index 184f1eaf546..892f76be4f0 100644 --- a/lisp/cedet/semantic/wisent/javascript.el +++ b/lisp/cedet/semantic/wisent/javascript.el | |||
| @@ -92,11 +92,6 @@ This function overrides `get-local-variables'." | |||
| 92 | semantic-command-separation-character ";" | 92 | semantic-command-separation-character ";" |
| 93 | )) | 93 | )) |
| 94 | 94 | ||
| 95 | ;;;###autoload | ||
| 96 | (add-hook 'javascript-mode-hook 'wisent-javascript-setup-parser) | ||
| 97 | ;;;###autoload | ||
| 98 | (add-hook 'ecmascript-mode-hook 'wisent-javascript-setup-parser) | ||
| 99 | |||
| 100 | (provide 'semantic/wisent/javascript-jv) | 95 | (provide 'semantic/wisent/javascript-jv) |
| 101 | 96 | ||
| 102 | ;; Local variables: | 97 | ;; Local variables: |
diff --git a/lisp/cedet/srecode/compile.el b/lisp/cedet/srecode/compile.el index 769c0137e68..5b3d8fb50fc 100644 --- a/lisp/cedet/srecode/compile.el +++ b/lisp/cedet/srecode/compile.el | |||
| @@ -197,7 +197,7 @@ Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use." | |||
| 197 | (defun srecode-compile-templates () | 197 | (defun srecode-compile-templates () |
| 198 | "Compile a semantic recode template file into a mode-local variable." | 198 | "Compile a semantic recode template file into a mode-local variable." |
| 199 | (interactive) | 199 | (interactive) |
| 200 | (require 'srecode-insert) | 200 | (require 'srecode/insert) |
| 201 | (message "Compiling template %s..." | 201 | (message "Compiling template %s..." |
| 202 | (file-name-nondirectory (buffer-file-name))) | 202 | (file-name-nondirectory (buffer-file-name))) |
| 203 | (let ((tags (semantic-fetch-tags)) | 203 | (let ((tags (semantic-fetch-tags)) |
diff --git a/lisp/cedet/srecode/insert.el b/lisp/cedet/srecode/insert.el index 743c8e8e652..e1772b3c578 100644 --- a/lisp/cedet/srecode/insert.el +++ b/lisp/cedet/srecode/insert.el | |||
| @@ -159,7 +159,7 @@ Buffer based features related to change hooks is handled one level up." | |||
| 159 | ;; while the field insert tool is loaded via autoloads during | 159 | ;; while the field insert tool is loaded via autoloads during |
| 160 | ;; the insert. | 160 | ;; the insert. |
| 161 | (when (eq srecode-insert-ask-variable-method 'field) | 161 | (when (eq srecode-insert-ask-variable-method 'field) |
| 162 | (require 'srecode-fields)) | 162 | (require 'srecode/fields)) |
| 163 | 163 | ||
| 164 | (let ((srecode-field-archive nil) ; Prevent field leaks during insert | 164 | (let ((srecode-field-archive nil) ; Prevent field leaks during insert |
| 165 | (start (point)) ; Beginning of the region. | 165 | (start (point)) ; Beginning of the region. |
diff --git a/lisp/cedet/srecode/mode.el b/lisp/cedet/srecode/mode.el index 3100a392cf2..f8493138e49 100644 --- a/lisp/cedet/srecode/mode.el +++ b/lisp/cedet/srecode/mode.el | |||
| @@ -42,7 +42,7 @@ | |||
| 42 | "Non-nil in buffers with Semantic Recoder macro keybindings." | 42 | "Non-nil in buffers with Semantic Recoder macro keybindings." |
| 43 | :group 'srecode | 43 | :group 'srecode |
| 44 | :type 'boolean | 44 | :type 'boolean |
| 45 | :require 'srecode-mode | 45 | :require 'srecode/mode |
| 46 | :initialize 'custom-initialize-default | 46 | :initialize 'custom-initialize-default |
| 47 | :set (lambda (sym val) | 47 | :set (lambda (sym val) |
| 48 | (global-srecode-minor-mode (if val 1 -1)))) | 48 | (global-srecode-minor-mode (if val 1 -1)))) |
diff --git a/lisp/ediff-hook.el b/lisp/ediff-hook.el index 00525b6fe44..f2b3e0d437f 100644 --- a/lisp/ediff-hook.el +++ b/lisp/ediff-hook.el | |||
| @@ -123,7 +123,7 @@ | |||
| 123 | :style toggle | 123 | :style toggle |
| 124 | :selected (if (featurep 'ediff-tbar) | 124 | :selected (if (featurep 'ediff-tbar) |
| 125 | (ediff-use-toolbar-p))])) | 125 | (ediff-use-toolbar-p))])) |
| 126 | 126 | ||
| 127 | ;; put these menus before Object-Oriented-Browser in Tools menu | 127 | ;; put these menus before Object-Oriented-Browser in Tools menu |
| 128 | (if (and (featurep 'menubar) (not (featurep 'infodock)) | 128 | (if (and (featurep 'menubar) (not (featurep 'infodock)) |
| 129 | (not (featurep 'ediff-hook))) | 129 | (not (featurep 'ediff-hook))) |
| @@ -141,8 +141,11 @@ | |||
| 141 | (symbol-value 'menu-bar-ediff-merge-menu)) | 141 | (symbol-value 'menu-bar-ediff-merge-menu)) |
| 142 | (defvar menu-bar-ediff-menu (make-sparse-keymap "Compare")) | 142 | (defvar menu-bar-ediff-menu (make-sparse-keymap "Compare")) |
| 143 | (fset 'menu-bar-ediff-menu (symbol-value 'menu-bar-ediff-menu)) | 143 | (fset 'menu-bar-ediff-menu (symbol-value 'menu-bar-ediff-menu)) |
| 144 | 144 | ||
| 145 | ;; define ediff compare menu | 145 | ;; define ediff compare menu |
| 146 | (define-key menu-bar-ediff-menu [ediff-misc] | ||
| 147 | (list 'menu-item "Ediff Miscellanea" menu-bar-ediff-misc-menu)) | ||
| 148 | (define-key menu-bar-ediff-menu [separator-ediff-misc] '("--")) | ||
| 146 | (define-key menu-bar-ediff-menu [window] | 149 | (define-key menu-bar-ediff-menu [window] |
| 147 | '(menu-item "This Window and Next Window" compare-windows | 150 | '(menu-item "This Window and Next Window" compare-windows |
| 148 | :help "Compare the current window and the next window")) | 151 | :help "Compare the current window and the next window")) |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 24fd88e6819..e3aa7bc04b8 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1312,8 +1312,6 @@ mail status in mode line")) | |||
| 1312 | (define-key menu-bar-tools-menu [separator-compare] | 1312 | (define-key menu-bar-tools-menu [separator-compare] |
| 1313 | '("--")) | 1313 | '("--")) |
| 1314 | 1314 | ||
| 1315 | (define-key menu-bar-tools-menu [ediff-misc] | ||
| 1316 | '(menu-item "Ediff Miscellanea" menu-bar-ediff-misc-menu)) | ||
| 1317 | (define-key menu-bar-tools-menu [epatch] | 1315 | (define-key menu-bar-tools-menu [epatch] |
| 1318 | '(menu-item "Apply Patch" menu-bar-epatch-menu)) | 1316 | '(menu-item "Apply Patch" menu-bar-epatch-menu)) |
| 1319 | (define-key menu-bar-tools-menu [ediff-merge] | 1317 | (define-key menu-bar-tools-menu [ediff-merge] |